Implementing a tokenized credit card class
PolicyCenter uses a Gosu object that represents a tokenized credit card to receive information about a new credit
card from the payment gateway. Your billing system is typically the system of record for this information for
known credit cards. The payment gateway response processor calls the PaymentGatewayPlugin plugin
method getCardDetails to receive the tokenized credit card object for a new credit card. This
object maps the String token that the payment gateway uses to identify the card with a
String value that the Payment screen displays to the user. Typically, the
value that the Payment screen displays has a format that is similar to
xxxx-1234. The Gosu class implements the
gw.api.payment.paymentgateway.PaymentInstrumentDetails interface. This interface provides two
String properties:
CardName– The value to display on the user interfaceToken– The value that identifies the credit card to the payment gateway
The gw.payment.paymentgateway.impl.TokenizedCreditCardDetails class is a demonstration implementation of the tokenized credit card. Edit this class or create your own implementation to support the requirements of your payment gateway and billing system.
