{"info":{"_postman_id":"c8d60bb9-3704-46d4-a490-a3497e23d097","name":"aamarPay Integration (Sandbox)","description":"<html><head></head><body><p>With aamarPay Payment Gateway, merchants can conveniently receive payments from their customers by redirecting them to aamarpay. This gateway integrates multiple payment terminals, including card systems, mobile financial systems, and local and international wallets. Once the payment process is successfully completed, customers are redirected back to the merchant's website, and shortly after, the merchant receives a notification containing the transaction details. This document is intended for technical personnel supporting the online merchant's website, requiring a working knowledge of HTML forms or cURL. Test accounts may be necessary, which can be obtained by contacting aamarpay.com or as provided to you.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24645929","collectionId":"c8d60bb9-3704-46d4-a490-a3497e23d097","publishedId":"2s9XxvSEFa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-01T08:06:59.000Z"},"item":[{"name":"Initiate Payment (JSON)","id":"52b0e3a7-aaa1-4a9f-b080-abd18ab5f2e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"store_id\": \"aamarpaytest\",\r\n    \"tran_id\": \"asdasdasdasdasd\",\r\n    \"success_url\": \"http://www.merchantdomain.com/suc esspage.html\",\r\n    \"fail_url\": \"http://www.merchantdomain.com/faile dpage.html\",\r\n    \"cancel_url\": \"http://www.merchantdomain.com/can cellpage.html\",\r\n    \"amount\": \"10.0\",\r\n    \"currency\": \"BDT\",\r\n    \"signature_key\": \"dbb74894e82415a2f7ff0ec3a97e4183\",\r\n    \"desc\": \"Merchant Registration Payment\",\r\n    \"cus_name\": \"Name\",\r\n    \"cus_email\": \"payer@merchantcusomter.com\",\r\n    \"cus_add1\": \"House B-158 Road 22\",\r\n    \"cus_add2\": \"Mohakhali DOHS\",\r\n    \"cus_city\": \"Dhaka\",\r\n    \"cus_state\": \"Dhaka\",\r\n    \"cus_postcode\": \"1206\",\r\n    \"cus_country\": \"Bangladesh\",\r\n    \"cus_phone\": \"+8801704\",\r\n    \"type\": \"json\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://​sandbox​.aamarpay.com/jsonpost.php","description":"<p>By integrating our API, you will be able to interact with our payment gateway, securely transmitting payment requests and receiving responses in real-time.</p>\n","urlObject":{"protocol":"https","path":["jsonpost.php"],"host":["​sandbox​","aamarpay","com"],"query":[],"variable":[]}},"response":[{"id":"ed248a5e-649c-433a-b9ab-41acdabe7c1c","name":"Initiate Payment (JSON)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"store_id\": \"aamarpaytest\",\r\n    \"tran_id\": \"1231231773\",\r\n    \"success_url\": \"http://www.merchantdomain.com/suc esspage.html\",\r\n    \"fail_url\": \"http://www.merchantdomain.com/faile dpage.html\",\r\n    \"cancel_url\": \"http://www.merchantdomain.com/can cellpage.html\",\r\n    \"amount\": \"10.0\",\r\n    \"currency\": \"BDT\",\r\n    \"signature_key\": \"dbb74894e82415a2f7ff0ec3a97e4183\",\r\n    \"desc\": \"Merchant Registration Payment\",\r\n    \"cus_name\": \"Name\",\r\n    \"cus_email\": \"payer@merchantcusomter.com\",\r\n    \"cus_add1\": \"House B-158 Road 22\",\r\n    \"cus_add2\": \"Mohakhali DOHS\",\r\n    \"cus_city\": \"Dhaka\",\r\n    \"cus_state\": \"Dhaka\",\r\n    \"cus_postcode\": \"1206\",\r\n    \"cus_country\": \"Bangladesh\",\r\n    \"cus_phone\": \"+8801704\",\r\n    \"type\": \"json\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://​sandbox​.aamarpay.com/jsonpost.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 01 Aug 2023 08:05:37 GMT"},{"key":"Content-Type","value":"text/html"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"result\":\"true\",\"payment_url\":\"https:\\/\\/sandbox.aamarpay.com\\/paynow.php?track=AAM1690877137103270\"}"}],"_postman_id":"52b0e3a7-aaa1-4a9f-b080-abd18ab5f2e4"},{"name":"Initiate Payment (Form Data)","id":"22a9dee0-3158-4e1a-9593-1b170c9543dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"store_id","value":"aamarpaytest","type":"text"},{"key":"signature_key","value":"dbb74894e82415a2f7ff0ec3a97e4183","type":"text"},{"key":"cus_name","value":"Customer Name","type":"text"},{"key":"cus_email","value":"example@gmail.com","type":"text"},{"key":"cus_phone","value":"01870******","type":"text"},{"key":"amount","value":"10","type":"text"},{"key":"currency","value":"BDT","type":"text"},{"key":"tran_id","value":"238uyasfdsfs234sdfp","type":"text"},{"key":"desc","value":"test transaction","type":"text"},{"key":"success_url","value":"http://localhost/aamarpay/callback/success.php","type":"text"},{"key":"fail_url","value":"http://localhost/aamarpay/callback/failed.php","type":"text"},{"key":"cancel_url","value":"http://localhost/aamarpay/callback/cancel.php","type":"text"},{"key":"type","value":"json","type":"text"}]},"url":"https://sandbox.aamarpay.com/index.php","description":"<p>By integrating our API, you will be able to interact with our payment gateway, securely transmitting payment requests and receiving responses in real-time.</p>\n","urlObject":{"protocol":"https","path":["index.php"],"host":["sandbox","aamarpay","com"],"query":[],"variable":[]}},"response":[{"id":"2d8028c7-00ee-4a7a-a302-8d358babcc9b","name":"Initiate Payment (Form Data)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"store_id","value":"aamarpaytest","type":"text"},{"key":"signature_key","value":"dbb74894e82415a2f7ff0ec3a97e4183","type":"text"},{"key":"cus_name","value":"Customer Name","type":"text"},{"key":"cus_email","value":"example@gmail.com","type":"text"},{"key":"cus_phone","value":"01870******","type":"text"},{"key":"amount","value":"10","type":"text"},{"key":"currency","value":"BDT","type":"text"},{"key":"tran_id","value":"238uyasfdsfs234sdfp","type":"text"},{"key":"desc","value":"test transaction","type":"text"},{"key":"success_url","value":"http://localhost/aamarpay/callback/success.php","type":"text"},{"key":"fail_url","value":"http://localhost/aamarpay/callback/failed.php","type":"text"},{"key":"cancel_url","value":"http://localhost/aamarpay/callback/cancel.php","type":"text"},{"key":"type","value":"json","type":"text"}]},"url":"https://sandbox.aamarpay.com/index.php"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 01 Aug 2023 08:05:51 GMT"},{"key":"Content-Type","value":"text/html"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"result\":\"true\",\"payment_url\":\"https:\\/\\/sandbox.aamarpay.com\\/paynow.php?track=AAM1690877151103278\"}"}],"_postman_id":"22a9dee0-3158-4e1a-9593-1b170c9543dd"},{"name":"Search Transaction","id":"c45ddd7d-164c-461d-b7f6-073d219f6b40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://sandbox.aamarpay.com/api/v1/trxcheck/request.php?request_id=1002&store_id=aamarpaytest&signature_key=dbb74894e82415a2f7ff0ec3a97e4183&type=json","description":"<p>This API will furnish comprehensive information about a particular transaction.</p>\n","urlObject":{"protocol":"http","path":["api","v1","trxcheck","request.php"],"host":["sandbox","aamarpay","com"],"query":[{"key":"request_id","value":"1002"},{"key":"store_id","value":"aamarpaytest"},{"key":"signature_key","value":"dbb74894e82415a2f7ff0ec3a97e4183"},{"key":"type","value":"json"}],"variable":[]}},"response":[{"id":"9fcd9de5-e591-4d05-91ee-421a61f13e91","name":"Search Transaction","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://sandbox.aamarpay.com/api/v1/trxcheck/request.php?request_id=1002&store_id=aamarpaytest&signature_key=dbb74894e82415a2f7ff0ec3a97e4183&type=json","protocol":"http","host":["sandbox","aamarpay","com"],"path":["api","v1","trxcheck","request.php"],"query":[{"key":"request_id","value":"1002"},{"key":"store_id","value":"aamarpaytest"},{"key":"signature_key","value":"dbb74894e82415a2f7ff0ec3a97e4183"},{"key":"type","value":"json"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 01 Aug 2023 08:05:59 GMT"},{"key":"Content-Type","value":"text/html"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Strict-Transport-Security","value":"max-age=31536000"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\"pg_txnid\":\"AAM1689831479239927\",\"mer_txnid\":\"1002\",\"risk_title\":\"Safe\",\"risk_level\":\"0\",\"cus_name\":\"Sabah Raad\",\"cus_email\":\"raad@aamarpay.com\",\"cus_phone\":\"01782733505\",\"desc\":\"Invoice: 1002\",\"cus_add1\":\"18\",\"cus_add2\":\" \",\"cus_city\":\"dhaka\",\"cus_state\":null,\"cus_postcode\":null,\"cus_country\":\"BD\",\"cus_fax\":null,\"ship_name\":null,\"ship_add1\":null,\"ship_add2\":null,\"ship_city\":null,\"ship_state\":null,\"ship_postcode\":null,\"ship_country\":null,\"merchant_id\":\"aamarpaytest\",\"store_id\":\"aamarpaytest\",\"amount\":\"1.00\",\"amount_bdt\":\"1.00\",\"pay_status\":\"Successful\",\"status_code\":\"2\",\"status_title\":\"Successful Transaction\",\"cardnumber\":\"1234XXXXXXXXX123\",\"approval_code\":\"1090898824080\",\"payment_processor\":\"bKash\",\"bank_trxid\":\"1090898824080\",\"payment_type\":\"bKash-bKash\",\"error_code\":\"No\",\"error_title\":\"Not Available\",\"bin_country\":\"Not Available\",\"bin_issuer\":\"Not Available\",\"bin_cardtype\":\"Not Available\",\"bin_cardcategory\":\"Not Available\",\"date\":\"2023-07-20 11:37:59\",\"date_processed\":\"2023-07-20 11:37:59\",\"amount_currency\":\"1.00\",\"rec_amount\":\"0.98\",\"processing_ratio\":\"2.1\",\"processing_charge\":\"0.02\",\"ip\":\"103.198.138.35\",\"currency\":\"BDT\",\"currency_merchant\":\"BDT\",\"convertion_rate\":\"Not-Available\",\"opt_a\":\"Not-Available\",\"opt_b\":\"Not-Available\",\"opt_c\":\"Not-Available\",\"opt_d\":\"Not-Available\",\"verify_status\":\"PENDING\",\"call_type\":\"Post-Method\",\"email_send\":\"Not-Available\",\"doc_recived\":\"NO\",\"checkout_status\":\"Not-Paid-Yet\"}"}],"_postman_id":"c45ddd7d-164c-461d-b7f6-073d219f6b40"}]}