CaptureInputParameter Class
Receives the payment authorization record, payment capture amount, and an optional list of additional parameters from Salesforce Billing.
blng
In this example, t CaptureInputParameter receives the payment authorization record from Salesforce Billing, a payment capture amount of 4.23, and additional parameters. The parameters are stored in a list and sent to the TransactionAPI class, which performs the payment capture. The CaptureOutputResult class contains the result of the capture.
The following are methods for CaptureInputParameter.
-
setPaymentAuthorization(paymentAuthorization)
Sets the ID of the payment authorization.
-
Returns the payment authorization record from Salesforce Billing.
-
Sets the amount of the payment capture.
-
Returns the amount of the payment capture to be performed.
Sets the ID of the payment authorization.
global static void setPaymentAuthorization(blng__PaymentAuthorization__c paymentAuthorization)
paymentAuthorization: Type: blng__PaymentAuthorization__c The payment authorization record from Salesforce Billing.
Type: void
Returns the payment authorization record from Salesforce Billing.
global static blng__PaymentAuthorization__c getPaymentAuthorization()
Type: blng__PaymentAuthorization__c
Sets the amount of the payment capture.
global static void setAmount(Decimal amount)
amount: Type: Decimal The amount of the payment capture. Can be none, part, or all of the payment.
Type: void
Returns the amount of the payment capture to be performed.
global static Decimal getAmount()
Type: Decimal