프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$parameters | Symfony\Component\HttpFoundation\ParameterBag | Internal storage of all of the card parameters. | |
$supported_cards |
메소드 | 설명 | |
---|---|---|
__construct ( array $parameters = null ) | Create a new CreditCard object using the specified parameters | |
addSupportedBrand ( string $name, string $expression ) : boolean | Set a custom supported card brand with a regular expression to match it. | |
getAddress1 ( ) : string | Get the billing address, line 1. | |
getAddress2 ( ) : string | Get the billing address, line 2. | |
getBillingAddress1 ( ) : string | Get the billing address, line 1. | |
getBillingAddress2 ( ) : string | Get the billing address, line 2. | |
getBillingCity ( ) : string | Get the billing city. | |
getBillingCompany ( ) : string | Get the billing company name. | |
getBillingCountry ( ) : string | Get the billing country name. | |
getBillingFax ( ) : string | Get the billing fax number. | |
getBillingFirstName ( ) : string | Get the first part of the card billing name. | |
getBillingLastName ( ) : string | Get the last part of the card billing name. | |
getBillingName ( ) : string | Get the card billing name. | |
getBillingPhone ( ) : string | Get the billing phone number. | |
getBillingPhoneExtension ( ) : string | Get the billing phone number extension. | |
getBillingPostcode ( ) : string | Get the billing postcode. | |
getBillingState ( ) : string | Get the billing state. | |
getBillingTitle ( ) : string | Get the card billing title. | |
getBirthday ( $format = 'Y-m-d' ) : string | Get the cardholder's birthday. | |
getBrand ( ) : string | Credit Card Brand | |
getCity ( ) : string | Get the billing city. | |
getCompany ( ) : string | Get the card billing company name. | |
getCountry ( ) : string | Get the billing country. | |
getCvv ( ) : string | Get the card CVV. | |
getEmail ( ) : string | Get the cardholder's email address. | |
getExpiryDate ( string $format ) : string | Get the card expiry date, using the specified date format string. | |
getExpiryMonth ( ) : integer | Get the card expiry month. | |
getExpiryYear ( ) : integer | Get the card expiry year. | |
getFax ( ) : string | Get the billing fax number. | |
getFirstName ( ) : string | Get Card First Name. | |
getGender ( ) : string | Get the cardholder's gender. | |
getIssueNumber ( ) : string | Get the card issue number. | |
getLastName ( ) : string | Get Card Last Name. | |
getName ( ) : string | Get Card Name. | |
getNumber ( ) : string | Get Card Number. | |
getNumberLastFour ( ) : string | Get the last 4 digits of the card number. | |
getNumberMasked ( string $mask = 'X' ) : string | Returns a masked credit card number with only the last 4 chars visible | |
getParameters ( ) : array | Get all parameters. | |
getPhone ( ) : string | Get the billing phone number. | |
getPhoneExtension ( ) : string | Get the billing phone number extension. | |
getPostcode ( ) : string | Get the billing postcode. | |
getShippingAddress1 ( ) : string | Get the shipping address, line 1. | |
getShippingAddress2 ( ) : string | Get the shipping address, line 2. | |
getShippingCity ( ) : string | Get the shipping city. | |
getShippingCompany ( ) : string | Get the shipping company name. | |
getShippingCountry ( ) : string | Get the shipping country. | |
getShippingFax ( ) : string | Get the shipping fax number. | |
getShippingFirstName ( ) : string | Get the first part of the card shipping name. | |
getShippingLastName ( ) : string | Get the last part of the card shipping name. | |
getShippingName ( ) : string | Get the card shipping name. | |
getShippingPhone ( ) : string | Get the shipping phone number. | |
getShippingPhoneExtension ( ) : string | Get the shipping phone number extension. | |
getShippingPostcode ( ) : string | Get the shipping postcode. | |
getShippingState ( ) : string | Get the shipping state. | |
getShippingTitle ( ) : string | Get the title of the card shipping name. | |
getStartDate ( string $format ) : string | Get the card start date, using the specified date format string | |
getStartMonth ( ) : string | Get the card start month. | |
getStartYear ( ) : integer | Get the card start year. | |
getState ( ) : string | Get the billing state. | |
getSupportedBrands ( ) : array | All known/supported card brands, and a regular expression to match them. | |
getTitle ( ) : string | Get Card Title. | |
getTrack1 ( ) : string | Get raw data for track 1 on the credit card magnetic strip. | |
getTrack2 ( ) : string | Get raw data for track 2 on the credit card magnetic strip. | |
getTracks ( ) : string | Get raw data for all tracks on the credit card magnetic strip. | |
initialize ( array $parameters = null ) : |
Initialize the object with parameters. | |
setAddress1 ( string $value ) : |
Sets the billing and shipping address, line 1. | |
setAddress2 ( string $value ) : |
Sets the billing and shipping address, line 2. | |
setBillingAddress1 ( string $value ) : |
Sets the billing address, line 1. | |
setBillingAddress2 ( string $value ) : |
Sets the billing address, line 2. | |
setBillingCity ( string $value ) : |
Sets billing city. | |
setBillingCompany ( string $value ) : |
Sets the billing company name. | |
setBillingCountry ( string $value ) : |
Sets the billing country name. | |
setBillingFax ( string $value ) : |
Sets the billing fax number. | |
setBillingFirstName ( string $value ) : |
Sets the first part of the card billing name. | |
setBillingLastName ( string $value ) : |
Sets the last part of the card billing name. | |
setBillingName ( string $value ) : |
Sets the card billing name. | |
setBillingPhone ( string $value ) : |
Sets the billing phone number. | |
setBillingPhoneExtension ( string $value ) : |
Sets the billing phone number extension. | |
setBillingPostcode ( string $value ) : |
Sets the billing postcode. | |
setBillingState ( string $value ) : |
Sets the billing state. | |
setBillingTitle ( string $value ) : |
Sets the card billing title. | |
setBirthday ( string $value ) : |
Sets the cardholder's birthday. | |
setCity ( string $value ) : |
Sets the billing and shipping city. | |
setCompany ( string $value ) : |
Sets the billing and shipping company name. | |
setCountry ( string $value ) : |
Sets the billing and shipping country. | |
setCvv ( string $value ) : |
Sets the card CVV. | |
setEmail ( string $value ) : |
Sets the cardholder's email address. | |
setExpiryMonth ( string $value ) : |
Sets the card expiry month. | |
setExpiryYear ( string $value ) : |
Sets the card expiry year. | |
setFax ( string $value ) : |
Sets the billing and shipping fax number. | |
setFirstName ( string $value ) : |
Set Card First Name (Billing and Shipping). | |
setGender ( string $value ) : |
Sets the cardholder's gender. | |
setIssueNumber ( string $value ) : |
Sets the card issue number. | |
setLastName ( string $value ) : |
Set Card Last Name (Billing and Shipping). | |
setName ( string $value ) : |
Set Card Name (Billing and Shipping). | |
setNumber ( string $value ) : |
Set Card Number | |
setPhone ( string $value ) : |
Sets the billing and shipping phone number. | |
setPhoneExtension ( string $value ) : |
Sets the billing and shipping phone number extension. | |
setPostcode ( string $value ) : |
Sets the billing and shipping postcode. | |
setShippingAddress1 ( string $value ) : |
Sets the shipping address, line 1. | |
setShippingAddress2 ( string $value ) : |
Sets the shipping address, line 2. | |
setShippingCity ( string $value ) : |
Sets the shipping city. | |
setShippingCompany ( string $value ) : |
Sets the shipping company name. | |
setShippingCountry ( string $value ) : |
Sets the shipping country. | |
setShippingFax ( string $value ) : |
Sets the shipping fax number. | |
setShippingFirstName ( string $value ) : |
Sets the first part of the card shipping name. | |
setShippingLastName ( string $value ) : |
Sets the last part of the card shipping name. | |
setShippingName ( string $value ) : |
Sets the card shipping name. | |
setShippingPhone ( string $value ) : |
Sets the shipping phone number. | |
setShippingPhoneExtension ( string $value ) : |
Sets the shipping phone number extension. | |
setShippingPostcode ( string $value ) : |
Sets the shipping postcode. | |
setShippingState ( string $value ) : |
Sets the shipping state. | |
setShippingTitle ( string $value ) : |
Sets the title of the card shipping name. | |
setStartMonth ( string $value ) : |
Sets the card start month. | |
setStartYear ( string $value ) : |
Sets the card start year. | |
setState ( string $value ) : |
Sets the billing and shipping state. | |
setTitle ( string $value ) : |
Set Card Title. | |
setTracks ( $value ) : |
Sets raw data from all tracks on the credit card magnetic strip. Used by gateways that support card-present transactions. | |
validate ( ) : void | Validate this credit card. If the card is invalid, InvalidCreditCardException is thrown. |
메소드 | 설명 | |
---|---|---|
getParameter ( $key ) : mixed | Get one parameter. | |
setParameter ( string $key, mixed $value ) : |
Set one parameter. | |
setYearParameter ( string $key, mixed $value ) : |
Set the credit card year. |
public __construct ( array $parameters = null ) | ||
$parameters | array | An array of parameters to set on the new object |
public getBillingAddress1 ( ) : string | ||
리턴 | string |
public getBillingAddress2 ( ) : string | ||
리턴 | string |
public getBillingCompany ( ) : string | ||
리턴 | string |
public getBillingCountry ( ) : string | ||
리턴 | string |
public getBillingFirstName ( ) : string | ||
리턴 | string |
public getBillingLastName ( ) : string | ||
리턴 | string |
public getBillingPhone ( ) : string | ||
리턴 | string |
public getBillingPhoneExtension ( ) : string | ||
리턴 | string |
public getBillingPostcode ( ) : string | ||
리턴 | string |
public getBirthday ( $format = 'Y-m-d' ) : string | ||
리턴 | string |
public getExpiryDate ( string $format ) : string | ||
$format | string | |
리턴 | string |
public getNumberLastFour ( ) : string | ||
리턴 | string |
public getNumberMasked ( string $mask = 'X' ) : string | ||
$mask | string | Character to use in place of numbers |
리턴 | string |
protected getParameter ( $key ) : mixed | ||
리턴 | mixed | A single parameter value. |
public getParameters ( ) : array | ||
리턴 | array | An associative array of parameters. |
public getPhoneExtension ( ) : string | ||
리턴 | string |
public getShippingAddress1 ( ) : string | ||
리턴 | string |
public getShippingAddress2 ( ) : string | ||
리턴 | string |
public getShippingCompany ( ) : string | ||
리턴 | string |
public getShippingCountry ( ) : string | ||
리턴 | string |
public getShippingFirstName ( ) : string | ||
리턴 | string |
public getShippingLastName ( ) : string | ||
리턴 | string |
public getShippingPhone ( ) : string | ||
리턴 | string |
public getShippingPhoneExtension ( ) : string | ||
리턴 | string |
public getShippingPostcode ( ) : string | ||
리턴 | string |
public getShippingTitle ( ) : string | ||
리턴 | string |
public getStartDate ( string $format ) : string | ||
$format | string | |
리턴 | string |
public getSupportedBrands ( ) : array | ||
리턴 | array |
public initialize ( array $parameters = null ) : |
||
$parameters | array | An associative array of parameters |
리턴 | provides a fluent interface. |
public setAddress1 ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setAddress2 ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingAddress1 ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingAddress2 ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingCity ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingCompany ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingCountry ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingFax ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingFirstName ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingLastName ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingName ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingPhone ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingPhoneExtension ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingPostcode ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingState ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBillingTitle ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setBirthday ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setCompany ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setCountry ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setExpiryMonth ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setExpiryYear ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setFirstName ( string $value ) : |
||
$value | string | Parameter value |
리턴 | provides a fluent interface. |
public setIssueNumber ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setLastName ( string $value ) : |
||
$value | string | Parameter value |
리턴 | provides a fluent interface. |
protected setParameter ( string $key, mixed $value ) : |
||
$key | string | Parameter key |
$value | mixed | Parameter value |
리턴 | provides a fluent interface. |
public setPhoneExtension ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setPostcode ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingAddress1 ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingAddress2 ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingCity ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingCompany ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingCountry ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingFax ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingFirstName ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingLastName ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingName ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingPhone ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingPhoneExtension ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingPostcode ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingState ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setShippingTitle ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setStartMonth ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setStartYear ( string $value ) : |
||
$value | string | |
리턴 | provides a fluent interface. |
public setTracks ( $value ) : |
||
$value | ||
리턴 |
protected setYearParameter ( string $key, mixed $value ) : |
||
$key | string | Parameter key, e.g. 'expiryYear' |
$value | mixed | Parameter value |
리턴 | provides a fluent interface. |
protected ParameterBag,Symfony\Component\HttpFoundation $parameters | ||
리턴 | Symfony\Component\HttpFoundation\ParameterBag |