Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
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>