Account
Home
About Us
Demo
Pricing
Developer Docs
Documentation
WordPress Plugin
Download
Web API
Copy to clipboard
Copy
//Header Content-Type: application/json app-key: xxxxxxxxxxxxxxxxxxxx //api url https://sobarpay.com/api/payment/v1 //All fields { "firstName":"Saidul", "lastName":"Islam", "phoneNumber":"+8801715881168", "email":"sobarpay@gmail.com", "successUrl":"http://example.com/success", "cancelUrl":"http://example.com/failed", "address1":"Chondrokona", "address2":"Rajshahi", "postalCode":"6700", "state":"Sirajganj", "city":"Sirajganj", "countryCode":"BD", "currency":"USD", "amount":"100", "invoice":"inv4545454", "description":"Sobary pay is a good payment gateway", "product":{ "product_name":"Samsung M01", "product_url":"http://example.com/product", "quantity":1, "amount":50 }, {"product_name":"Samsung M02", "product_url":"http://example.com/product", "quantity":1, "amount":50 } } //Required field { "firstName":"Saidul", "email":"sobarpay@gmail.com", "successUrl":"http://example.com/success", "cancelUrl":"http://example.com/failed", "countryCode":"BD", "currency":"USD", "amount":"100", "invoice":"inv4545454", "description":"Sobary pay is a good payment gateway" }
Not: If the payment is successful, you will receive a URL to complete the payment, and you will be redirected back to the success URL. If the payment fails, you will be redirected to the failed URL.