Complete Payment
POST/openapi/2022-01/payments_apps/complete_callbacks
Request
Header Parameters
Oauth's Access Token
Shoplazza's store domain
the hmac signature for this request
- application/json
- Body
- Example
Body
Payment App's ID
Payment ID
Order's total price
Three-letter ISO 4217 currency code
Payment App's transaction number for reference
Either sale or authorization. If you support payment authorization, then this value is set based on the merchant's configuration. If you don't support separate authorization and capture, then the value is always sale. For sale transactions, you need to capture the funds instantly with this request. For authorization transactions, you must place a hold on the funds and capture them later when Shoplazza sends a capture request.
Indicates whether the payment is in test or live mode. Refer to Test mode for more information.
Payment status from Payment App
Possible values: [paid, failed]
extension object
Customize object from Payment App
ISO-8601 format timestamp, eg: 2021-09-01T18:32:20Z
{
"app_id": "string",
"payment_id": "string",
"amount": 0,
"currency": "string",
"transaction_no": "string",
"type": "string",
"test": true,
"status": "paid",
"extension": {},
"timestamp": "string"
}
Responses
- 200
- 400
200
- application/json
- Schema
- Example
- Result
Schema
https://developer.myshoplaza.com/products/test_product{
"redirect_url": "https://developer.myshoplaza.com/products/test_product"
}
{ "redirect_url": "https://developer.myshoplaza.com/products/test_product" }
400
- application/json