confirmOrder
description: places the finalized order information into CodeBookie. Should use after payment has been completed and confirmed by the gateway.
Parameter | Type | Description | Required |
---|---|---|---|
api_token | string | API Token | YES |
checkout_token | string | Checkout Token | YES |
buyer_email | Email address of the buyer. Should be gathered during the sale process | YES | |
txn_id | string | The transaction ID of the sale from whatever payment gateway was used. | YES |
order_id | string | whatever order ID your ecommerce solution generated for the sale | YES |
ip_address | string | IP address from where the sale was generated | NO |
Example using the PHP Codebookie class file:
Output:
Variable | Type | Description |
---|---|---|
status | string | OK - order information successfully entered into codebookie - ERROR, something went wrong - |
message | string | Error Message |
confirmation_id | string | Confirmation of Codebookie Transaction |