API
One API is dedicated to the E-Commerce Flow to start it. You will have to integration this API to start the checkout flow once the customer has choose the items to buy.
API URL:https://checkoutecom.ymplepay.com/checkout/1/simple?data_json={cart_information}Data Structure Json
The cart information will contain the cart details and cart total price to pay
{
"intent": "sale",
"merchant_id": "xxxx",
"payer": {
"payment_method": "ymplepay"
},
"redirect_urls": {
"return_url": "redirectUrlSuccess",
"cancel_url": "redirectUrlCancel"
},
"transactions": [
{
"item_list": [
{
"name": "ProductOne",
"sku": "",
"price": 0.25,
"currency": "USD",
"quantity": 1
},
{
"name": "ProductTwo",
"sku": "",
"price": 0.25,
"currency": "USD",
"quantity": 1
}
],
"amount": {
"currency": "USD",
"total": 0.50,
"details": {
"subtotal": 0.50,
"tax": "0.00",
"shipping": "0.00",
"handling_fee": "0.00"
}
},
"description": "ThisisthepaymentdescriptionwithYmple."
}
]
}