You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CreditCard class should manage a token reference of itself.
Some gateways supports the feature of exchanging the sensitive data of a credit card with a token reference.
Merchants can use this token to fulfill payments.
In this case purchase or authorize methods should accept a CreditCard object or a string reference of CreditCard.
Instead of changing the signature of these methods, it is better add support of token in CreditCard class.
So inside these methods should check if $creditcard->token is available to complete the action with token instead of card data.
The text was updated successfully, but these errors were encountered:
CreditCard class should manage a token reference of itself.
Some gateways supports the feature of exchanging the sensitive data of a credit card with a token reference.
Merchants can use this token to fulfill payments.
In this case
purchase
orauthorize
methods should accept a CreditCard object or a string reference of CreditCard.Instead of changing the signature of these methods, it is better add support of token in CreditCard class.
So inside these methods should check if
$creditcard->token
is available to complete the action with token instead of card data.The text was updated successfully, but these errors were encountered: