{"info":{"_postman_id":"9a5ef4ca-6767-4c48-8827-4a6f33400f81","name":"RazorPay","description":"<html><head></head><body><p>Start By Open Checkout.html file in browser &amp; in any text editor.First run 'Create Order' api.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6964995","collectionId":"9a5ef4ca-6767-4c48-8827-4a6f33400f81","publishedId":"Szf24qLc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-14T07:53:53.000Z"},"item":[{"name":"VerifyPayment","id":"dc2c895d-bf19-4cef-ad35-419e58444c68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"iHCwkFiMq9928onQgGRgE4oqdSxGanfAFoU0Mzyb","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"razorpay_payment_id\": \"pay_Eegl50MBbtlgfY\",\n  \"razorpay_order_id\": \"order_EegPWazLTH70WS\",\n  \"razorpay_signature\": \"438281f08f7eef7bc8ec81487fe2adc4adf3a5cdeeafb67717b6ee13071ace38\",\n  \"amount\":4500\n}","options":{"raw":{"language":"json"}}},"url":"https://qiehe68t10.execute-api.us-east-1.amazonaws.com/dev/VerifyPayment","description":"<p>Verify Payment after checkout by passing its response in Body of this api with amount.</p>\n","urlObject":{"protocol":"https","path":["dev","VerifyPayment"],"host":["qiehe68t10","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc2c895d-bf19-4cef-ad35-419e58444c68"},{"name":"CreateOrder","id":"a40ebb7b-4106-4d45-b8b2-d04fb40b6eaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"iHCwkFiMq9928onQgGRgE4oqdSxGanfAFoU0Mzyb","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"amount\": 4500,\n  \"currency\": \"INR\",\n  \"receipt\": \"receipt#1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://qiehe68t10.execute-api.us-east-1.amazonaws.com/dev/NewOrder","description":"<p>Create Order by changing amount in body &amp; in response you get orderId which you will pass in PayNow Button in checkout.html file.\nThen run checkout.html file in any browser &amp; done payment using test card(4111 1111 1111 1111) or any upi(razorpay@icici).</p>\n<p>Copy response of this checkout &amp; pass in VerifyPayment api to proceed forward.</p>\n","urlObject":{"protocol":"https","path":["dev","NewOrder"],"host":["qiehe68t10","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"d11d9888-5e0f-4258-8c20-b2f1475a3c99","name":"CreateOrder","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"iHCwkFiMq9928onQgGRgE4oqdSxGanfAFoU0Mzyb","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"amount\": 4500,\n  \"currency\": \"INR\",\n  \"receipt\": \"receipt#1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://qiehe68t10.execute-api.us-east-1.amazonaws.com/dev/NewOrder"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"50"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 18 Dec 2020 05:39:02 GMT"},{"key":"x-amzn-RequestId","value":"ca2062de-76e9-4b2c-9914-e33a7e3087b9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"Xu8CNFedIAMFdtA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-5fdc4074-2ddd93e636b63d773c9ca6ad;Sampled=0"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 2a443a3b088ca6f86e2506eb4209204c.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"BOM51-C2"},{"key":"X-Amz-Cf-Id","value":"lm-yBFeAPu0n9AJvCkzKWTQsjYc4dVVb_vTjQQQVxDUatuAXfn9L0A=="}],"cookie":[],"responseTime":null,"body":"{\n    \"Status\": \"Success\",\n    \"Data\": \"order_GEOFRa5EkHFwn4\"\n}"}],"_postman_id":"a40ebb7b-4106-4d45-b8b2-d04fb40b6eaa"},{"name":"CreateInvoice","id":"86354eb8-b39c-4d5f-9d2d-46035f60f45c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"type\": \"invoice\",\n  \"date\": 1589994898,\n  \"customer_id\": \"cust_EeLWiTZNsBUh2G\",\n  \"line_items\": [\n    {\n      \"item_id\": \"item_DRt61i2NnL8oy6\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"localhost:9002/createInvoice","description":"<p>You can create invoice by passing customer id &amp; item id which are purchase by customer.</p>\n","urlObject":{"port":"9002","path":["createInvoice"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"86354eb8-b39c-4d5f-9d2d-46035f60f45c"},{"name":"CreateCustomer","id":"4d58538b-3677-4385-bef0-e5a4244e7c46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"iHCwkFiMq9928onQgGRgE4oqdSxGanfAFoU0Mzyb","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"ROhit Joshi\",\n  \"email\": \"rohit.joshi@webuters.com\",\n  \"contact\": \"7065268020\",\n  \"fail_existing\": \"0\",\n  \"notes\":{\n    \"landmark\": \"Razorpay Office Building\",\n    \"location\": \"Noida\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://qiehe68t10.execute-api.us-east-1.amazonaws.com/dev/CreateCustomer","description":"<p>We need to create customer by passing basic details name,email,contact &amp; notes for address</p>\n","urlObject":{"protocol":"https","path":["dev","CreateCustomer"],"host":["qiehe68t10","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d58538b-3677-4385-bef0-e5a4244e7c46"},{"name":"CreateItem","id":"549db3fd-ddff-4205-8fbf-d67f4165d665","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"name\":\"Book / English August\",\n        \"description\":\"An indian story, Booker prize winner.\",\n        \"amount\": 20000,\n        \"currency\": \"INR\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:9002/createItem","description":"<p>Create items for which we purchase any product.Which return itemid.\nItem ID will be needed for creating invoice.</p>\n","urlObject":{"port":"9002","path":["createItem"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"549db3fd-ddff-4205-8fbf-d67f4165d665"},{"name":"CreatePlan","id":"e9b3ec90-534d-4035-8336-b506f428e519","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"iHCwkFiMq9928onQgGRgE4oqdSxGanfAFoU0Mzyb","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"period\": \"monthly\",\n  \"interval\": 1,\n  \"item\": {\n    \"name\": \"New plan - monthly\",\n    \"amount\": 3990,\n    \"currency\": \"INR\",\n    \"description\": \"Description for the New plan\"\n  },\n  \"notes\": {\n    \"notes_key_1\": \"Test notes 1\",\n    \"notes_key_2\": \"Test notes 2.\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://qiehe68t10.execute-api.us-east-1.amazonaws.com/dev/CreatePlan","description":"<p>Create Plan with amount,period(daily,weekly,monthly,yearly) &amp; interval(how often the customer should be charged).\nplan_id which comes in response use to Create subscription.</p>\n","urlObject":{"protocol":"https","path":["dev","CreatePlan"],"host":["qiehe68t10","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9b3ec90-534d-4035-8336-b506f428e519"},{"name":"CreateSubscription","id":"a0a651e6-7494-41fc-81a5-006a05a6ed30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"iHCwkFiMq9928onQgGRgE4oqdSxGanfAFoU0Mzyb","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"plan_id\":\"plan_Ef9msIBHzl6nQN\",\n  \"total_count\":12,\n  \"quantity\": 1,\n  \"customer_notify\":1\n}","options":{"raw":{"language":"json"}}},"url":"https://qiehe68t10.execute-api.us-east-1.amazonaws.com/dev/CreateSubscription","description":"<p>Create Subscription with plan_id from Create plan api &amp; total_count(The number of billing cycles for which the customer should be charged).</p>\n<p>In response we get subscription_id which we need to pass razor pay standard checkout payment page to create payment by user.So that subscription can be active. </p>\n","urlObject":{"protocol":"https","path":["dev","CreateSubscription"],"host":["qiehe68t10","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0a651e6-7494-41fc-81a5-006a05a6ed30"},{"name":"VerifySubsciptionPayment","id":"dc0ad424-043a-4291-b20e-f7e1292fd209","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"iHCwkFiMq9928onQgGRgE4oqdSxGanfAFoU0Mzyb","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"razorpay_payment_id\": \"pay_Ef9sYqTf0qCy6U\",\n  \"razorpay_subscription_id\": \"sub_Ef9npOH59dz7va\",\n  \"razorpay_signature\": \"ca517b0c5038cdecfcc27dce16d69c4efb7e9a4a0e504024c41dac52e4402993\"\n}","options":{"raw":{"language":"json"}}},"url":"https://qiehe68t10.execute-api.us-east-1.amazonaws.com/dev/VerifySubscriptionPayment","description":"<p>When payment done by checkout page then in response we get </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>razorpay_payment_id\nrazorpay_subscription_id\nrazorpay_signature\n</code></pre><p>We need to pass these in this api to verify signature &amp; confirm payment.</p>\n","urlObject":{"protocol":"https","path":["dev","VerifySubscriptionPayment"],"host":["qiehe68t10","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc0ad424-043a-4291-b20e-f7e1292fd209"}]}