PHP 클래스 Omnipay\Common\CreditCard

This class defines and abstracts all of the credit card types used throughout the Omnipay system.
파일 보기 프로젝트 열기: omnipay/common 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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 ) : CreditCard Initialize the object with parameters.
setAddress1 ( string $value ) : CreditCard Sets the billing and shipping address, line 1.
setAddress2 ( string $value ) : CreditCard Sets the billing and shipping address, line 2.
setBillingAddress1 ( string $value ) : CreditCard Sets the billing address, line 1.
setBillingAddress2 ( string $value ) : CreditCard Sets the billing address, line 2.
setBillingCity ( string $value ) : CreditCard Sets billing city.
setBillingCompany ( string $value ) : CreditCard Sets the billing company name.
setBillingCountry ( string $value ) : CreditCard Sets the billing country name.
setBillingFax ( string $value ) : CreditCard Sets the billing fax number.
setBillingFirstName ( string $value ) : CreditCard Sets the first part of the card billing name.
setBillingLastName ( string $value ) : CreditCard Sets the last part of the card billing name.
setBillingName ( string $value ) : CreditCard Sets the card billing name.
setBillingPhone ( string $value ) : CreditCard Sets the billing phone number.
setBillingPhoneExtension ( string $value ) : CreditCard Sets the billing phone number extension.
setBillingPostcode ( string $value ) : CreditCard Sets the billing postcode.
setBillingState ( string $value ) : CreditCard Sets the billing state.
setBillingTitle ( string $value ) : CreditCard Sets the card billing title.
setBirthday ( string $value ) : CreditCard Sets the cardholder's birthday.
setCity ( string $value ) : CreditCard Sets the billing and shipping city.
setCompany ( string $value ) : CreditCard Sets the billing and shipping company name.
setCountry ( string $value ) : CreditCard Sets the billing and shipping country.
setCvv ( string $value ) : CreditCard Sets the card CVV.
setEmail ( string $value ) : CreditCard Sets the cardholder's email address.
setExpiryMonth ( string $value ) : CreditCard Sets the card expiry month.
setExpiryYear ( string $value ) : CreditCard Sets the card expiry year.
setFax ( string $value ) : CreditCard Sets the billing and shipping fax number.
setFirstName ( string $value ) : CreditCard Set Card First Name (Billing and Shipping).
setGender ( string $value ) : CreditCard Sets the cardholder's gender.
setIssueNumber ( string $value ) : CreditCard Sets the card issue number.
setLastName ( string $value ) : CreditCard Set Card Last Name (Billing and Shipping).
setName ( string $value ) : CreditCard Set Card Name (Billing and Shipping).
setNumber ( string $value ) : CreditCard Set Card Number
setPhone ( string $value ) : CreditCard Sets the billing and shipping phone number.
setPhoneExtension ( string $value ) : CreditCard Sets the billing and shipping phone number extension.
setPostcode ( string $value ) : CreditCard Sets the billing and shipping postcode.
setShippingAddress1 ( string $value ) : CreditCard Sets the shipping address, line 1.
setShippingAddress2 ( string $value ) : CreditCard Sets the shipping address, line 2.
setShippingCity ( string $value ) : CreditCard Sets the shipping city.
setShippingCompany ( string $value ) : CreditCard Sets the shipping company name.
setShippingCountry ( string $value ) : CreditCard Sets the shipping country.
setShippingFax ( string $value ) : CreditCard Sets the shipping fax number.
setShippingFirstName ( string $value ) : CreditCard Sets the first part of the card shipping name.
setShippingLastName ( string $value ) : CreditCard Sets the last part of the card shipping name.
setShippingName ( string $value ) : CreditCard Sets the card shipping name.
setShippingPhone ( string $value ) : CreditCard Sets the shipping phone number.
setShippingPhoneExtension ( string $value ) : CreditCard Sets the shipping phone number extension.
setShippingPostcode ( string $value ) : CreditCard Sets the shipping postcode.
setShippingState ( string $value ) : CreditCard Sets the shipping state.
setShippingTitle ( string $value ) : CreditCard Sets the title of the card shipping name.
setStartMonth ( string $value ) : CreditCard Sets the card start month.
setStartYear ( string $value ) : CreditCard Sets the card start year.
setState ( string $value ) : CreditCard Sets the billing and shipping state.
setTitle ( string $value ) : CreditCard Set Card Title.
setTracks ( $value ) : CreditCard 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 ) : CreditCard Set one parameter.
setYearParameter ( string $key, mixed $value ) : CreditCard Set the credit card year.

메소드 상세

__construct() 공개 메소드

Create a new CreditCard object using the specified parameters
public __construct ( array $parameters = null )
$parameters array An array of parameters to set on the new object

addSupportedBrand() 공개 메소드

Note: The fact that a particular card is known does not imply that your gateway supports it. Set $add_to_front to true if the key should be added to the front of the array
public addSupportedBrand ( string $name, string $expression ) : boolean
$name string The name of the new supported brand.
$expression string The regular expression to check if a card is supported.
리턴 boolean success

getAddress1() 공개 메소드

Get the billing address, line 1.
public getAddress1 ( ) : string
리턴 string

getAddress2() 공개 메소드

Get the billing address, line 2.
public getAddress2 ( ) : string
리턴 string

getBillingAddress1() 공개 메소드

Get the billing address, line 1.
public getBillingAddress1 ( ) : string
리턴 string

getBillingAddress2() 공개 메소드

Get the billing address, line 2.
public getBillingAddress2 ( ) : string
리턴 string

getBillingCity() 공개 메소드

Get the billing city.
public getBillingCity ( ) : string
리턴 string

getBillingCompany() 공개 메소드

Get the billing company name.
public getBillingCompany ( ) : string
리턴 string

getBillingCountry() 공개 메소드

Get the billing country name.
public getBillingCountry ( ) : string
리턴 string

getBillingFax() 공개 메소드

Get the billing fax number.
public getBillingFax ( ) : string
리턴 string

getBillingFirstName() 공개 메소드

Get the first part of the card billing name.
public getBillingFirstName ( ) : string
리턴 string

getBillingLastName() 공개 메소드

Get the last part of the card billing name.
public getBillingLastName ( ) : string
리턴 string

getBillingName() 공개 메소드

Get the card billing name.
public getBillingName ( ) : string
리턴 string

getBillingPhone() 공개 메소드

Get the billing phone number.
public getBillingPhone ( ) : string
리턴 string

getBillingPhoneExtension() 공개 메소드

Get the billing phone number extension.
public getBillingPhoneExtension ( ) : string
리턴 string

getBillingPostcode() 공개 메소드

Get the billing postcode.
public getBillingPostcode ( ) : string
리턴 string

getBillingState() 공개 메소드

Get the billing state.
public getBillingState ( ) : string
리턴 string

getBillingTitle() 공개 메소드

Get the card billing title.
public getBillingTitle ( ) : string
리턴 string

getBirthday() 공개 메소드

Get the cardholder's birthday.
public getBirthday ( $format = 'Y-m-d' ) : string
리턴 string

getBrand() 공개 메소드

Iterates through known/supported card brands to determine the brand of this card
public getBrand ( ) : string
리턴 string

getCity() 공개 메소드

Get the billing city.
public getCity ( ) : string
리턴 string

getCompany() 공개 메소드

Get the card billing company name.
public getCompany ( ) : string
리턴 string

getCountry() 공개 메소드

Get the billing country.
public getCountry ( ) : string
리턴 string

getCvv() 공개 메소드

Get the card CVV.
public getCvv ( ) : string
리턴 string

getEmail() 공개 메소드

Get the cardholder's email address.
public getEmail ( ) : string
리턴 string

getExpiryDate() 공개 메소드

Get the card expiry date, using the specified date format string.
public getExpiryDate ( string $format ) : string
$format string
리턴 string

getExpiryMonth() 공개 메소드

Get the card expiry month.
public getExpiryMonth ( ) : integer
리턴 integer

getExpiryYear() 공개 메소드

Get the card expiry year.
public getExpiryYear ( ) : integer
리턴 integer

getFax() 공개 메소드

.
public getFax ( ) : string
리턴 string

getFirstName() 공개 메소드

Get Card First Name.
public getFirstName ( ) : string
리턴 string

getGender() 공개 메소드

Get the cardholder's gender.
public getGender ( ) : string
리턴 string

getIssueNumber() 공개 메소드

Get the card issue number.
public getIssueNumber ( ) : string
리턴 string

getLastName() 공개 메소드

Get Card Last Name.
public getLastName ( ) : string
리턴 string

getName() 공개 메소드

Get Card Name.
public getName ( ) : string
리턴 string

getNumber() 공개 메소드

Get Card Number.
public getNumber ( ) : string
리턴 string

getNumberLastFour() 공개 메소드

Get the last 4 digits of the card number.
public getNumberLastFour ( ) : string
리턴 string

getNumberMasked() 공개 메소드

Returns a masked credit card number with only the last 4 chars visible
public getNumberMasked ( string $mask = 'X' ) : string
$mask string Character to use in place of numbers
리턴 string

getParameter() 보호된 메소드

Get one parameter.
protected getParameter ( $key ) : mixed
리턴 mixed A single parameter value.

getParameters() 공개 메소드

Get all parameters.
public getParameters ( ) : array
리턴 array An associative array of parameters.

getPhone() 공개 메소드

Get the billing phone number.
public getPhone ( ) : string
리턴 string

getPhoneExtension() 공개 메소드

Get the billing phone number extension.
public getPhoneExtension ( ) : string
리턴 string

getPostcode() 공개 메소드

Get the billing postcode.
public getPostcode ( ) : string
리턴 string

getShippingAddress1() 공개 메소드

Get the shipping address, line 1.
public getShippingAddress1 ( ) : string
리턴 string

getShippingAddress2() 공개 메소드

Get the shipping address, line 2.
public getShippingAddress2 ( ) : string
리턴 string

getShippingCity() 공개 메소드

Get the shipping city.
public getShippingCity ( ) : string
리턴 string

getShippingCompany() 공개 메소드

Get the shipping company name.
public getShippingCompany ( ) : string
리턴 string

getShippingCountry() 공개 메소드

Get the shipping country.
public getShippingCountry ( ) : string
리턴 string

getShippingFax() 공개 메소드

Get the shipping fax number.
public getShippingFax ( ) : string
리턴 string

getShippingFirstName() 공개 메소드

Get the first part of the card shipping name.
public getShippingFirstName ( ) : string
리턴 string

getShippingLastName() 공개 메소드

Get the last part of the card shipping name.
public getShippingLastName ( ) : string
리턴 string

getShippingName() 공개 메소드

Get the card shipping name.
public getShippingName ( ) : string
리턴 string

getShippingPhone() 공개 메소드

Get the shipping phone number.
public getShippingPhone ( ) : string
리턴 string

getShippingPhoneExtension() 공개 메소드

Get the shipping phone number extension.

getShippingPostcode() 공개 메소드

Get the shipping postcode.
public getShippingPostcode ( ) : string
리턴 string

getShippingState() 공개 메소드

Get the shipping state.
public getShippingState ( ) : string
리턴 string

getShippingTitle() 공개 메소드

Get the title of the card shipping name.
public getShippingTitle ( ) : string
리턴 string

getStartDate() 공개 메소드

Get the card start date, using the specified date format string
public getStartDate ( string $format ) : string
$format string
리턴 string

getStartMonth() 공개 메소드

Get the card start month.
public getStartMonth ( ) : string
리턴 string

getStartYear() 공개 메소드

Get the card start year.
public getStartYear ( ) : integer
리턴 integer

getState() 공개 메소드

Get the billing state.
public getState ( ) : string
리턴 string

getSupportedBrands() 공개 메소드

Note: The fact that this class knows about a particular card brand does not imply that your gateway supports it.
또한 보기: self::$supported_cards
public getSupportedBrands ( ) : array
리턴 array

getTitle() 공개 메소드

Get Card Title.
public getTitle ( ) : string
리턴 string

getTrack1() 공개 메소드

Get raw data for track 1 on the credit card magnetic strip.
public getTrack1 ( ) : string
리턴 string

getTrack2() 공개 메소드

Get raw data for track 2 on the credit card magnetic strip.
public getTrack2 ( ) : string
리턴 string

getTracks() 공개 메소드

Get raw data for all tracks on the credit card magnetic strip.
public getTracks ( ) : string
리턴 string

initialize() 공개 메소드

If any unknown parameters passed, they will be ignored.
public initialize ( array $parameters = null ) : CreditCard
$parameters array An associative array of parameters
리턴 CreditCard provides a fluent interface.

setAddress1() 공개 메소드

Sets the billing and shipping address, line 1.
public setAddress1 ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setAddress2() 공개 메소드

Sets the billing and shipping address, line 2.
public setAddress2 ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingAddress1() 공개 메소드

Sets the billing address, line 1.
public setBillingAddress1 ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingAddress2() 공개 메소드

Sets the billing address, line 2.
public setBillingAddress2 ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingCity() 공개 메소드

Sets billing city.
public setBillingCity ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingCompany() 공개 메소드

Sets the billing company name.
public setBillingCompany ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingCountry() 공개 메소드

Sets the billing country name.
public setBillingCountry ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingFax() 공개 메소드

Sets the billing fax number.
public setBillingFax ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingFirstName() 공개 메소드

Sets the first part of the card billing name.
public setBillingFirstName ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingLastName() 공개 메소드

Sets the last part of the card billing name.
public setBillingLastName ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingName() 공개 메소드

Sets the card billing name.
public setBillingName ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingPhone() 공개 메소드

Sets the billing phone number.
public setBillingPhone ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingPhoneExtension() 공개 메소드

Sets the billing phone number extension.
public setBillingPhoneExtension ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingPostcode() 공개 메소드

Sets the billing postcode.
public setBillingPostcode ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingState() 공개 메소드

Sets the billing state.
public setBillingState ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBillingTitle() 공개 메소드

Sets the card billing title.
public setBillingTitle ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setBirthday() 공개 메소드

Sets the cardholder's birthday.
public setBirthday ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setCity() 공개 메소드

Sets the billing and shipping city.
public setCity ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setCompany() 공개 메소드

Sets the billing and shipping company name.
public setCompany ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setCountry() 공개 메소드

Sets the billing and shipping country.
public setCountry ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setCvv() 공개 메소드

Sets the card CVV.
public setCvv ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setEmail() 공개 메소드

Sets the cardholder's email address.
public setEmail ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setExpiryMonth() 공개 메소드

Sets the card expiry month.
public setExpiryMonth ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setExpiryYear() 공개 메소드

Sets the card expiry year.
public setExpiryYear ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setFax() 공개 메소드

Sets the billing and shipping fax number.
public setFax ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setFirstName() 공개 메소드

Set Card First Name (Billing and Shipping).
public setFirstName ( string $value ) : CreditCard
$value string Parameter value
리턴 CreditCard provides a fluent interface.

setGender() 공개 메소드

Sets the cardholder's gender.
public setGender ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setIssueNumber() 공개 메소드

Sets the card issue number.
public setIssueNumber ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setLastName() 공개 메소드

Set Card Last Name (Billing and Shipping).
public setLastName ( string $value ) : CreditCard
$value string Parameter value
리턴 CreditCard provides a fluent interface.

setName() 공개 메소드

Set Card Name (Billing and Shipping).
public setName ( string $value ) : CreditCard
$value string Parameter value
리턴 CreditCard provides a fluent interface.

setNumber() 공개 메소드

Non-numeric characters are stripped out of the card number, so it's safe to pass in strings such as "4444-3333 2222 1111" etc.
public setNumber ( string $value ) : CreditCard
$value string Parameter value
리턴 CreditCard provides a fluent interface.

setParameter() 보호된 메소드

Set one parameter.
protected setParameter ( string $key, mixed $value ) : CreditCard
$key string Parameter key
$value mixed Parameter value
리턴 CreditCard provides a fluent interface.

setPhone() 공개 메소드

Sets the billing and shipping phone number.
public setPhone ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setPhoneExtension() 공개 메소드

Sets the billing and shipping phone number extension.
public setPhoneExtension ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setPostcode() 공개 메소드

Sets the billing and shipping postcode.
public setPostcode ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingAddress1() 공개 메소드

Sets the shipping address, line 1.
public setShippingAddress1 ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingAddress2() 공개 메소드

Sets the shipping address, line 2.
public setShippingAddress2 ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingCity() 공개 메소드

Sets the shipping city.
public setShippingCity ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingCompany() 공개 메소드

Sets the shipping company name.
public setShippingCompany ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingCountry() 공개 메소드

Sets the shipping country.
public setShippingCountry ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingFax() 공개 메소드

Sets the shipping fax number.
public setShippingFax ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingFirstName() 공개 메소드

Sets the first part of the card shipping name.
public setShippingFirstName ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingLastName() 공개 메소드

Sets the last part of the card shipping name.
public setShippingLastName ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingName() 공개 메소드

Sets the card shipping name.
public setShippingName ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingPhone() 공개 메소드

Sets the shipping phone number.
public setShippingPhone ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingPhoneExtension() 공개 메소드

Sets the shipping phone number extension.
public setShippingPhoneExtension ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingPostcode() 공개 메소드

Sets the shipping postcode.
public setShippingPostcode ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingState() 공개 메소드

Sets the shipping state.
public setShippingState ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setShippingTitle() 공개 메소드

Sets the title of the card shipping name.
public setShippingTitle ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setStartMonth() 공개 메소드

Sets the card start month.
public setStartMonth ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setStartYear() 공개 메소드

Sets the card start year.
public setStartYear ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setState() 공개 메소드

Sets the billing and shipping state.
public setState ( string $value ) : CreditCard
$value string
리턴 CreditCard provides a fluent interface.

setTitle() 공개 메소드

Set Card Title.
public setTitle ( string $value ) : CreditCard
$value string Parameter value
리턴 CreditCard provides a fluent interface.

setTracks() 공개 메소드

Sets raw data from all tracks on the credit card magnetic strip. Used by gateways that support card-present transactions.
public setTracks ( $value ) : CreditCard
$value
리턴 CreditCard

setYearParameter() 보호된 메소드

The input value is normalised to a 4 digit number.
protected setYearParameter ( string $key, mixed $value ) : CreditCard
$key string Parameter key, e.g. 'expiryYear'
$value mixed Parameter value
리턴 CreditCard provides a fluent interface.

validate() 공개 메소드

This method is called internally by gateways to avoid wasting time with an API call when the credit card is clearly invalid. Generally if you want to validate the credit card yourself with custom error messages, you should use your framework's validation library, not this method.
public validate ( ) : void
리턴 void

프로퍼티 상세

$parameters 보호되어 있는 프로퍼티

Internal storage of all of the card parameters.
protected ParameterBag,Symfony\Component\HttpFoundation $parameters
리턴 Symfony\Component\HttpFoundation\ParameterBag

$supported_cards 보호되어 있는 프로퍼티

protected $supported_cards