CheckoutPayment Method
Either obtain payment for a final sale, or request authorization for later capture of payment.
Syntax
procedure CheckoutPayment();Remarks
This method completes the sale or authorization. When this method is called, the following properties are required in the request:
- Token
- PaymentAction
- OrderTotal
- PayerId (returned after a call to GetCheckoutDetails)
To obtain payment for a final sale you will have to set the PaymentAction property to aSale. If you want to request an authorization, the PaymentAction property has to be set to aAuthorization. then, you will need to use the ReAuthCapture component to capture the transaction.
The following information may be optionally provided in the request:
- OrderDescription
- Custom (Config setting)
- InvoiceNumber
- NotifyURL (Config setting)
- Payment item details (ItemAmount, ItemName, ItemNumber, ItemQuantity, ItemSalesTax)
The Response and Payment properties may be returned in the response.