checkout_payment Method
Either obtain payment for a final sale, or request authorization for later capture of payment.
Syntax
def checkout_payment() -> None: ...
Remarks
This method completes the sale or authorization. When this method is called, the following properties are required in the request:
- token
- payment_action
- order_total
- payer_id (returned after a call to get_checkout_details)
To obtain payment for a final sale you will have to set the payment_action property to aSale. If you want to request an authorization, the payment_action property has to be set to aAuthorization. Then, you will need to use capture to capture the transaction.
The following information may be optionally provided in the request:
- order_description
- Custom (config setting)
- invoice_number
- NotifyURL (config setting)
- Payment item details (item_amount, item_name, item_number, item_quantity, item_sales_tax)
The response and payment properties may be returned in the response.