Logo
maya API Documentation

Start payment

GET {{baseUrl}}/pay

You only need to call this service, if you want to start payment process in webview.
You'll know it's finished when one of the following routes is loaded in the webview:
checkout/success (order success)
checkout/cart (order failed)

You need to intercepting these url’s to check when to get the focus back in your application and whether the payment succeeded or not.
Service urls:
http://yourdomain.com/api/rest/pay
OR
http://yourdomain.com/index.php?route=rest/confirm/confirm&page=pay

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-Oc-Session
string (Required) User session id
Accept
string




RESPONSES

status OK

{ "success": 1, "error": [ "Error description", "Error description" ], "data": {} }



Curl
curl -X GET 'https://api.opencart-api.com/api/rest/pay' -H 'X-Oc-Session: voluptate' -H 'Accept: application/json'

ENDPOINTS