Finalise wallet payment order
Finalises the wallet payment. For the checkout_flow gateway, the oid parameter (Checkout.com payment ID) must be supplied and success must be true. For all other gateways no input is required.
Required Fields (checkout.com gateway only):
success: Must betrue.oid: Checkout.com payment identifier.cko_payment_id(optional): Checkout.com payment reference.
Next Page:
ThankYouPage
available_for_post_order: true
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
Input for WalletCompletePage. Required only when the active payment gateway
is checkout_flow (Checkout.com); for all other wallet gateways the page
accepts an empty submission.
Must be true for checkout.com gateway. Indicates the payment was authorised
on the provider side.
Checkout.com payment identifier. Required for the checkout_flow gateway.
pay_abc123def456Optional Checkout.com payment reference returned by the provider.
pay_abc123def456Wallet order finalised — routes to ThankYouPage
POST /orders/checkout/?page=WalletCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 41
"success=true&oid='pay_abc123def456'"Wallet order finalised — routes to ThankYouPage
{
"context_list": [
{
"page_name": "ThankYouPage",
"page_slug": "thankyoupage",
"page_context": {
"redirect_url": "/orders/checkout/success/abc123/",
"order_id": 456,
"order_number": "ORD-456",
"new_user": false,
"token": null,
"campaigns": []
}
}
],
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

