Newer Version Available
PaymentGateway Interface
Namespace
blng
Usage
A gateway implementor uses logic such as paymentGatewayParameter.getTransactionType() == "generateToken" and calls underlying payment transaction functions. Similar logic applies for voids, refunds, and other actions.
PaymentGateway Methods
The following are methods for PaymentGateway.
generateToken(mapOfTransactionParameterById)
Signature
global Map<String, TransactionResult> generateToken(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Map of parameter is based on the payment gateway.
Return Value
Type: Map<String, TransactionResult>
List of Transaction Results : List<TransactionResult>
chargeTransaction(mapOfTransactionParameterById)
Signature
global Map<String, TransactionResult> chargeTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Map of parameter is based on the payment gateway.
Return Value
Type: Map<String, TransactionResult>
List of Transaction Results : List<TransactionResult>
voidTransaction(mapOfTransactionParameterById)
Signature
global Map<String, TransactionResult> voidTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: Map<String, TransactionResult>
List of Transaction Results : List<TransactionResult>
authorizeTransaction(mapOfTransactionParameterById)
Signature
global Map<String, TransactionResult> authorizeTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Map of parameter is based on the payment gateway.
Return Value
Type: Map<String, TransactionResult>
List of Transaction Results : List<TransactionResult>
refundTransaction(mapOfTransactionParameterById)
Signature
public Map<String, TransactionResult> refundTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Map of parameter is based on the payment gateway.
Return Value
Type: Map<String, TransactionResult>
List of Transaction Results : List<TransactionResult>