API REFERENCE
CHECKOUT
Checkout Object
3min
This step is done internally by the octifi-websdk.js
Are you using octifi-websdk.js?
If you are using octifi-websdk.js you can safely skip this page.
Once the customer decides to pay with octifi, the hosted-checkout (octifi-websdk.js) calls the backend to create a checkout object and return a checkout_token to the merchant via callback.
Checkout Api returns a checkout_token
- This api uses a Public API key and normally used in the frontend.
- Authorization: Api-Key public_api_key
- Checkout only authorise the payment
In a nutshell:
- Customer Checkout is step 1
- Charge/create is the step 2
- Charge/capture is step 3
Notes:
- Charge api takes checkout_token as a parameter
- Charge capture api should be called from the backend (server side) and requires a private key.
- Api: /charge/create/{checkout_token}/
ο»Ώ