Structure
You can configure payment information, URL and etc through our console
Url
System will use this url to send back order information when customer chooses this payment method
Icon Url
System will use this icon url to display on payment method message
Payment gateway header (optional)
System will use provided payment gateway header when sending request back to provided URL
Payment gateway body (optional)
When system sends information back to provided URL. System has preset of these following information which you could choose.
Possible information that system provided
Field name | Types | Description |
---|---|---|
$grandTotal | number(10) | Order’s grand total |
$orderNumber | string(12) | Order's number |
$platform | string(15) | Order's platform |
$shippingPrice | number(10) | Order's total shipping price |
$state | string(30) | Order's state |
$totalPrice | number(10) | Order's total price |
$totalProductDiscount | number(10) | Order's total product discount price |
$totalShippingDiscount | number(10) | Order's total shipping discount price |
$vatOption | number(10) | Order's vat options |
$vatPrice | number(10) | Order's vat price |
$vatValue | number(10) | Order's vat value |
Example for payment gateway body
// Order information
{
"orderNumber": "ON0000001",
"grandTotal": 1000,
"totalPrice": 934.58,
"shippingPrice": 100,
"totalProductDiscount": 0,
"totalShippingDiscount": 0,
"vatPrice": 65.42,
"vatValue": 7
}
// Payment gateway body
{
"orderNumber": "$orderNumber",
"grandTotal": "$grandTotal",
"source": "DEEPLE"
}
// Result
{
"orderNumber": "ON0000001",
"grandTotal": 1000,
"source": "DEEPLE"
}