Свойство | Тип | Описание | |
---|---|---|---|
$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 getAddress1 ( ) : string | ||
Результат | string |
public getAddress2 ( ) : string | ||
Результат | string |
public getBillingAddress1 ( ) : string | ||
Результат | string |
public getBillingAddress2 ( ) : string | ||
Результат | string |
public getBillingCity ( ) : string | ||
Результат | string |
public getBillingCompany ( ) : string | ||
Результат | string |
public getBillingCountry ( ) : string | ||
Результат | string |
public getBillingFax ( ) : string | ||
Результат | string |
public getBillingFirstName ( ) : string | ||
Результат | string |
public getBillingLastName ( ) : string | ||
Результат | string |
public getBillingName ( ) : string | ||
Результат | string |
public getBillingPhone ( ) : string | ||
Результат | string |
public getBillingPhoneExtension ( ) : string | ||
Результат | string |
public getBillingPostcode ( ) : string | ||
Результат | string |
public getBillingState ( ) : string | ||
Результат | string |
public getBillingTitle ( ) : string | ||
Результат | string |
public getBirthday ( $format = 'Y-m-d' ) : string | ||
Результат | string |
public getCompany ( ) : string | ||
Результат | string |
public getCountry ( ) : string | ||
Результат | string |
public getExpiryDate ( string $format ) : string | ||
$format | string | |
Результат | string |
public getExpiryMonth ( ) : integer | ||
Результат | integer |
public getExpiryYear ( ) : integer | ||
Результат | integer |
public getFirstName ( ) : string | ||
Результат | string |
public getIssueNumber ( ) : 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 getPostcode ( ) : string | ||
Результат | string |
public getShippingAddress1 ( ) : string | ||
Результат | string |
public getShippingAddress2 ( ) : string | ||
Результат | string |
public getShippingCity ( ) : string | ||
Результат | string |
public getShippingCompany ( ) : string | ||
Результат | string |
public getShippingCountry ( ) : string | ||
Результат | string |
public getShippingFax ( ) : string | ||
Результат | string |
public getShippingFirstName ( ) : string | ||
Результат | string |
public getShippingLastName ( ) : string | ||
Результат | string |
public getShippingName ( ) : string | ||
Результат | string |
public getShippingPhone ( ) : string | ||
Результат | string |
public getShippingPhoneExtension ( ) : string | ||
Результат | string |
public getShippingPostcode ( ) : string | ||
Результат | string |
public getShippingState ( ) : string | ||
Результат | string |
public getShippingTitle ( ) : string | ||
Результат | string |
public getStartDate ( string $format ) : string | ||
$format | string | |
Результат | string |
public getStartMonth ( ) : string | ||
Результат | string |
public getStartYear ( ) : integer | ||
Результат | integer |
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 |