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.
TransactionAPI Class
TransactionAPI Methods
The following are methods for TransactionAPI.
generateToken(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> generateToken(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
authorizeTransaction(mapOfTransactionParameterById)
Signature
public static List<TransactionResult> authorizeTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
captureTransaction(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> captureTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
captureTransaction(captureInputParameters)
Signature
global static List<CaptureOutputResult> captureTransaction(List<CaptureInputParameter> captureInputParameters)
1blng.TransactionAPI, captureTransaction, [List<CaptureInputParameter>], List<CaptureOutputResult>Parameters
- captureInputParameters
- Type: List<CaptureInputParameter>
- A list of input parameters passed from the CaptureInputParameter class.
Return Value
Type: List<CaptureOutputResult>
chargeTransaction(mapOfTransactionParameterById)
Signature
public static List<TransactionResult> chargeTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
getPaymentStatus(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> getPaymentStatus(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
voidTransaction(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> voidTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
refundTransaction(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> refundTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
nonReferredRefund(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> nonReferredRefund(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
voidRefundTransaction(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> voidRefundTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
getRefundStatus(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> getRefundStatus(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
voidTokenTransaction(mapOfTransactionParameterById)
Signature
global static List<TransactionResult> voidTokenTransaction(Map<String, TransactionParameter> mapOfTransactionParameterById)
Parameters
- mapOfTransactionParameterById
- Type: Map<String, TransactionParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
refundPayment(listofRefundParameters)
Signature
global static List<TransactionResult> refundPayment(List<RefundParameter> listofRefundParameters)
Parameters
- listofRefundParameters
- Type: List<RefundParameter>
- Parameter map is based on the payment gateway.
Return Value
Type: List<TransactionResult>
List of Transaction Results : List<TransactionResult>
validateRefundTransactionId(transactionId)
Signature
global static String validateRefundTransactionId(Id transactionId)
Parameters
- transactionId
- Type: Id
- Single transactionId passed to validate whether a refund is allowed.
Return Value
Type: String
- PAYMENT_TRANSACTION_NO_GATEWAY_ID_MESSAGE - Cannot refund payment transactions without gateway IDs. The invoice has been unlocked.
- INVALID_PAYMENT_TRANSACTION_FOR_REFUND_MESSAGE - Cannot refund payment transaction. This transaction is not currently eligible for refunding.
- ALLOW_REFUND_TRANSACTION - True
- REFUND_INVALID_PAYMENT_TRANSACTION_MESSAGE_ALOHA- Cannot refund invalid transactions or transactions without invoices.