Newer Version Available

This content describes an older version of this product. View Latest

Creating a PaymentGateways Interface

The PaymentGateways interface uses the processPayments method, which evaluates the payment transaction’s type to perform a payment action.

The PaymentGateways interface calls the processPayments method, which evaluates the TransactionParameter object.

The processPayments method can perform different actions based on the TransactionType value of the TransactionParameter’s paymentGatewayParameter. When you configure your PaymentGateways interface, define all the TransactionType string variables that processPayments can accept. Then, add your logic for identifying the transaction type and calling the appropriate method. We’ve provided a sample here for a CyberSource payment gateway implementation.

Example