razorpay 2.4.0 → 3.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/.cursorignore +174 -0
  3. data/.github/dependabot.yml +8 -0
  4. data/.github/pull_request_template.md +8 -0
  5. data/.github/workflows/ci.yml +80 -0
  6. data/.github/workflows/ruby.yml +38 -0
  7. data/CHANGELOG.md +85 -1
  8. data/README.md +48 -137
  9. data/documents/Invoice.md +539 -0
  10. data/documents/account.md +449 -0
  11. data/documents/addon.md +191 -0
  12. data/documents/card.md +655 -0
  13. data/documents/customer.md +405 -0
  14. data/documents/dispute.md +301 -0
  15. data/documents/documents.md +65 -0
  16. data/documents/emandate.md +492 -0
  17. data/documents/fund.md +89 -0
  18. data/documents/items.md +208 -0
  19. data/documents/oauth_token.md +142 -0
  20. data/documents/order.md +352 -0
  21. data/documents/papernach.md +738 -0
  22. data/documents/payment.md +1122 -0
  23. data/documents/paymentLink.md +1063 -0
  24. data/documents/paymentVerification.md +79 -0
  25. data/documents/plan.md +184 -0
  26. data/documents/productConfiguration.md +444 -0
  27. data/documents/qrcode.md +439 -0
  28. data/documents/refund.md +325 -0
  29. data/documents/registerEmandate.md +452 -0
  30. data/documents/registerNach.md +653 -0
  31. data/documents/settlement.md +478 -0
  32. data/documents/stakeholder.md +334 -0
  33. data/documents/subscriptions.md +752 -0
  34. data/documents/tokens.md +407 -0
  35. data/documents/transfers.md +821 -0
  36. data/documents/upi.md +545 -0
  37. data/documents/virtualAccount.md +591 -0
  38. data/documents/webhook.md +224 -0
  39. data/lib/razorpay/account.rb +39 -0
  40. data/lib/razorpay/addon.rb +9 -1
  41. data/lib/razorpay/card.rb +4 -0
  42. data/lib/razorpay/constants.rb +7 -2
  43. data/lib/razorpay/customer.rb +31 -0
  44. data/lib/razorpay/dispute.rb +26 -0
  45. data/lib/razorpay/document.rb +19 -0
  46. data/lib/razorpay/fund_account.rb +19 -0
  47. data/lib/razorpay/iin.rb +15 -0
  48. data/lib/razorpay/invoice.rb +8 -0
  49. data/lib/razorpay/item.rb +34 -0
  50. data/lib/razorpay/oauth_token.rb +109 -0
  51. data/lib/razorpay/order.rb +19 -1
  52. data/lib/razorpay/payload_validator.rb +93 -0
  53. data/lib/razorpay/payment.rb +64 -0
  54. data/lib/razorpay/payment_link.rb +36 -0
  55. data/lib/razorpay/payment_method.rb +17 -0
  56. data/lib/razorpay/product.rb +37 -0
  57. data/lib/razorpay/qr_code.rb +34 -0
  58. data/lib/razorpay/refund.rb +4 -0
  59. data/lib/razorpay/request.rb +50 -26
  60. data/lib/razorpay/settlement.rb +39 -0
  61. data/lib/razorpay/stakeholder.rb +39 -0
  62. data/lib/razorpay/subscription.rb +24 -0
  63. data/lib/razorpay/subscription_registration.rb +16 -0
  64. data/lib/razorpay/token.rb +28 -0
  65. data/lib/razorpay/transfer.rb +39 -0
  66. data/lib/razorpay/utility.rb +41 -6
  67. data/lib/razorpay/validation_config.rb +11 -0
  68. data/lib/razorpay/virtual_account.rb +15 -7
  69. data/lib/razorpay/webhook.rb +50 -0
  70. data/lib/razorpay.rb +24 -1
  71. data/razorpay-ruby.gemspec +2 -1
  72. data/test/fixtures/addon_collection.json +60 -0
  73. data/test/fixtures/create_json_payment.json +13 -0
  74. data/test/fixtures/delete_token.json +3 -0
  75. data/test/fixtures/dispute_collection.json +67 -0
  76. data/test/fixtures/dispute_error.json +10 -0
  77. data/test/fixtures/document_error.json +10 -0
  78. data/test/fixtures/downtimes_collection.json +21 -0
  79. data/test/fixtures/empty.json +2 -0
  80. data/test/fixtures/error_customer.json +10 -0
  81. data/test/fixtures/error_eligibility.json +10 -0
  82. data/test/fixtures/error_eligibility_check.json +10 -0
  83. data/test/fixtures/fake_account.json +78 -0
  84. data/test/fixtures/fake_addon.json +3 -3
  85. data/test/fixtures/fake_bank_account.json +9 -0
  86. data/test/fixtures/fake_card_reference.json +5 -0
  87. data/test/fixtures/fake_create_upi_payment.json +3 -0
  88. data/test/fixtures/fake_direct_transfer.json +32 -0
  89. data/test/fixtures/fake_dispute.json +29 -0
  90. data/test/fixtures/fake_document.json +9 -0
  91. data/test/fixtures/fake_downtime.json +14 -0
  92. data/test/fixtures/fake_eligiblity.json +79 -0
  93. data/test/fixtures/fake_fulfillment.json +10 -0
  94. data/test/fixtures/fake_fund_account.json +18 -0
  95. data/test/fixtures/fake_iin_token.json +23 -0
  96. data/test/fixtures/fake_instant_settlement.json +19 -0
  97. data/test/fixtures/fake_item.json +9 -0
  98. data/test/fixtures/fake_oauth_token.json +8 -0
  99. data/test/fixtures/fake_order_transfers.json +88 -0
  100. data/test/fixtures/fake_otp_generate.json +19 -0
  101. data/test/fixtures/fake_otp_resend.json +7 -0
  102. data/test/fixtures/fake_otp_submit.json +5 -0
  103. data/test/fixtures/fake_payment_expanded_details.json +38 -0
  104. data/test/fixtures/fake_payment_expanded_details_card.json +50 -0
  105. data/test/fixtures/fake_payment_link.json +40 -0
  106. data/test/fixtures/fake_pending_update.json +30 -0
  107. data/test/fixtures/fake_product.json +138 -0
  108. data/test/fixtures/fake_qrcode.json +20 -0
  109. data/test/fixtures/fake_qrcode_close.json +22 -0
  110. data/test/fixtures/fake_recurring.json +5 -0
  111. data/test/fixtures/fake_refund.json +1 -1
  112. data/test/fixtures/fake_revoke_token.json +3 -0
  113. data/test/fixtures/fake_rto.json +15 -0
  114. data/test/fixtures/fake_settlement.json +11 -0
  115. data/test/fixtures/fake_settlement_on_demand.json +39 -0
  116. data/test/fixtures/fake_stakeholder.json +29 -0
  117. data/test/fixtures/fake_subscription_pause.json +19 -0
  118. data/test/fixtures/fake_subscription_registration.json +91 -0
  119. data/test/fixtures/fake_subscription_resume.json +19 -0
  120. data/test/fixtures/fake_token.json +31 -0
  121. data/test/fixtures/fake_tokenise_customer.json +40 -0
  122. data/test/fixtures/fake_transfer.json +18 -0
  123. data/test/fixtures/fake_transfer_reverse.json +15 -0
  124. data/test/fixtures/fake_update_payment.json +39 -0
  125. data/test/fixtures/fake_validate_vpa.json +5 -0
  126. data/test/fixtures/fake_virtual_account_allowed.json +46 -0
  127. data/test/fixtures/fake_virtual_account_receiver.json +46 -0
  128. data/test/fixtures/fake_webhook.json +79 -0
  129. data/test/fixtures/fake_webhook_by_account_id.json +22 -0
  130. data/test/fixtures/fetch_tnc.json +11 -0
  131. data/test/fixtures/fund_collection.json +20 -0
  132. data/test/fixtures/item_collection.json +24 -0
  133. data/test/fixtures/order_error.json +10 -0
  134. data/test/fixtures/payment_collection.json +1 -1
  135. data/test/fixtures/payment_error.json +10 -0
  136. data/test/fixtures/payment_link_collection.json +43 -0
  137. data/test/fixtures/payment_link_response.json +3 -0
  138. data/test/fixtures/payment_methods_collection.json +149 -0
  139. data/test/fixtures/qrcode_collection.json +50 -0
  140. data/test/fixtures/qrcode_payments_collection.json +74 -0
  141. data/test/fixtures/reversals_collection.json +22 -0
  142. data/test/fixtures/settlement_collection.json +26 -0
  143. data/test/fixtures/settlement_instant_collection.json +84 -0
  144. data/test/fixtures/settlement_report_collection.json +117 -0
  145. data/test/fixtures/stakeholder_collection.json +35 -0
  146. data/test/fixtures/success.json +3 -0
  147. data/test/fixtures/tokens_collection.json +36 -0
  148. data/test/fixtures/transfer_error.json +10 -0
  149. data/test/fixtures/transfer_settlements_collection.json +38 -0
  150. data/test/fixtures/transfers_collection.json +41 -0
  151. data/test/fixtures/webhook_by_account_collection.json +35 -0
  152. data/test/fixtures/webhook_collection.json +85 -0
  153. data/test/razorpay/test_account.rb +134 -0
  154. data/test/razorpay/test_addon.rb +19 -15
  155. data/test/razorpay/test_card.rb +6 -0
  156. data/test/razorpay/test_customer.rb +132 -3
  157. data/test/razorpay/test_dispute.rb +98 -0
  158. data/test/razorpay/test_document.rb +27 -0
  159. data/test/razorpay/test_fund_account.rb +42 -0
  160. data/test/razorpay/test_iin.rb +23 -0
  161. data/test/razorpay/test_invoice.rb +15 -2
  162. data/test/razorpay/test_item.rb +66 -0
  163. data/test/razorpay/test_oauth_token.rb +105 -0
  164. data/test/razorpay/test_order.rb +66 -1
  165. data/test/razorpay/test_payload_validator.rb +61 -0
  166. data/test/razorpay/test_payment.rb +251 -9
  167. data/test/razorpay/test_payment_link.rb +83 -0
  168. data/test/razorpay/test_plan.rb +2 -2
  169. data/test/razorpay/test_product.rb +67 -0
  170. data/test/razorpay/test_qr_code.rb +63 -0
  171. data/test/razorpay/test_razorpay.rb +19 -2
  172. data/test/razorpay/test_refund.rb +16 -2
  173. data/test/razorpay/test_settlement.rb +76 -0
  174. data/test/razorpay/test_stakeholder.rb +87 -0
  175. data/test/razorpay/test_subscription.rb +72 -9
  176. data/test/razorpay/test_subscription_registration.rb +58 -0
  177. data/test/razorpay/test_token.rb +66 -0
  178. data/test/razorpay/test_transfer.rb +94 -0
  179. data/test/razorpay/test_utility.rb +72 -4
  180. data/test/razorpay/test_virtual_account.rb +64 -17
  181. data/test/razorpay/test_webhook.rb +132 -0
  182. data/test/test_helper.rb +8 -0
  183. metadata +265 -10
  184. data/.travis.yml +0 -22
  185. data/test/razorpay/test_errors.rb +0 -19
@@ -0,0 +1,15 @@
1
+ {
2
+ "risk_tier": "high",
3
+ "rto_reasons": [
4
+ {
5
+ "reason": "short_shipping_address",
6
+ "description": "Short shipping address",
7
+ "bucket": "address"
8
+ },
9
+ {
10
+ "reason": "address_pincode_state_mismatch",
11
+ "description": "Incorrect pincode state entered",
12
+ "bucket": "address"
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,11 @@
1
+
2
+ {
3
+ "id": "setl_DGlQ1Rj8os78Ec",
4
+ "entity": "settlement",
5
+ "amount": 9973635,
6
+ "status": "processed",
7
+ "fees": 471699,
8
+ "tax": 42070,
9
+ "utr": "1568176960vxp0rj",
10
+ "created_at": 1568176960
11
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "id": "setl_DGlQ1Rj8os78Ec",
3
+ "entity": "settlement",
4
+ "amount_requested": 200000,
5
+ "amount_settled": 0,
6
+ "amount_pending": 199410,
7
+ "amount_reversed": 0,
8
+ "fees": 590,
9
+ "tax": 90,
10
+ "currency": "INR",
11
+ "settle_full_balance": false,
12
+ "status": "initiated",
13
+ "description": "Need this to make vendor payments.",
14
+ "notes": {
15
+ "notes_key_1": "Tea, Earl Grey, Hot",
16
+ "notes_key_2": "Tea, Earl Grey… decaf."
17
+ },
18
+ "created_at": 1596771429,
19
+ "ondemand_payouts": {
20
+ "entity": "collection",
21
+ "count": 1,
22
+ "items": [
23
+ {
24
+ "id": "setlodp_FNj7g2cbvw8ueO",
25
+ "entity": "settlement.ondemand_payout",
26
+ "initiated_at": null,
27
+ "processed_at": null,
28
+ "reversed_at": null,
29
+ "amount": 200000,
30
+ "amount_settled": null,
31
+ "fees": 590,
32
+ "tax": 90,
33
+ "utr": null,
34
+ "status": "created",
35
+ "created_at": 1596771429
36
+ }
37
+ ]
38
+ }
39
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "entity": "stakeholder",
3
+ "relationship": {
4
+ "director": true
5
+ },
6
+ "phone": {
7
+ "primary": "9000090000",
8
+ "secondary": "9000090000"
9
+ },
10
+ "notes": {
11
+ "random_key_by_partner": "random_value"
12
+ },
13
+ "kyc": {
14
+ "pan": "AVOPB1111K"
15
+ },
16
+ "id": "sth_00000000000001",
17
+ "name": "Gaurav Kumar",
18
+ "email": "gaurav.kumar@example.com",
19
+ "percentage_ownership": 10,
20
+ "addresses": {
21
+ "residential": {
22
+ "street": "506, Koramangala 1st block",
23
+ "city": "Bengaluru",
24
+ "state": "Karnataka",
25
+ "postal_code": "560034",
26
+ "country": "IN"
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "id": "sub_00000000000001",
3
+ "entity": "subscription",
4
+ "plan_id": "plan_00000000000001",
5
+ "status": "paused",
6
+ "current_start": null,
7
+ "current_end": null,
8
+ "ended_at": null,
9
+ "quantity": 1,
10
+ "notes": [],
11
+ "charge_at": 1509494400,
12
+ "start_at": 1509494400,
13
+ "end_at": 1538332200,
14
+ "auth_attempts": 0,
15
+ "total_count": 12,
16
+ "paid_count": 0,
17
+ "customer_notify": true,
18
+ "created_at": 1509114729
19
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "id": "inv_JA7OELdAoxbzk7",
3
+ "entity": "invoice",
4
+ "receipt": "Receipt No. #12",
5
+ "invoice_number": "Receipt No. #12",
6
+ "customer_id": "cust_DzYEzfJLV03rkp",
7
+ "customer_details": {
8
+ "id": "cust_DzYEzfJLV03rkp",
9
+ "name": "Gaurav Kumar",
10
+ "email": "gaurav.kumar@example.com",
11
+ "contact": "9123456780",
12
+ "gstin": null,
13
+ "billing_address": null,
14
+ "shipping_address": null,
15
+ "customer_name": "Gaurav Kumar",
16
+ "customer_email": "gaurav.kumar@example.com",
17
+ "customer_contact": "9123456780"
18
+ },
19
+ "order_id": "order_JA7OEMWy90eSP6",
20
+ "line_items": [
21
+
22
+ ],
23
+ "payment_id": null,
24
+ "status": "issued",
25
+ "expire_by": 1648101450,
26
+ "issued_at": 1647948473,
27
+ "paid_at": null,
28
+ "cancelled_at": null,
29
+ "expired_at": null,
30
+ "sms_status": "pending",
31
+ "email_status": "pending",
32
+ "date": 1647948473,
33
+ "terms": null,
34
+ "partial_payment": false,
35
+ "gross_amount": 0,
36
+ "tax_amount": 0,
37
+ "taxable_amount": 0,
38
+ "amount": 0,
39
+ "amount_paid": 0,
40
+ "amount_due": 0,
41
+ "currency": "INR",
42
+ "currency_symbol": "₹",
43
+ "description": "12 p.m. Meals",
44
+ "notes": {
45
+ "note_key 1": "Beam me up Scotty",
46
+ "note_key 2": "Tea. Earl Gray. Hot."
47
+ },
48
+ "comment": null,
49
+ "short_url": "https://rzp.io/i/cXyLlMxVLB",
50
+ "view_less": true,
51
+ "billing_start": null,
52
+ "billing_end": null,
53
+ "type": "link",
54
+ "group_taxes_discounts": false,
55
+ "created_at": 1647948473,
56
+ "idempotency_key": null,
57
+ "auth_link_status": "issued",
58
+ "token": {
59
+ "method": "nach",
60
+ "notes": {
61
+ "note_key 1": "Beam me up Scotty",
62
+ "note_key 2": "Tea. Earl Gray. Hot."
63
+ },
64
+ "recurring_status": null,
65
+ "failure_reason": null,
66
+ "currency": "INR",
67
+ "max_amount": 50000,
68
+ "auth_type": "physical",
69
+ "expire_at": 1648101450,
70
+ "nach": {
71
+ "create_form": true,
72
+ "form_reference1": "Recurring Payment for Gaurav Kumar",
73
+ "form_reference2": "Method Paper NACH",
74
+ "prefilled_form": "https://rzp.io/i/VvObPb0ht",
75
+ "prefilled_form_transient": "https://rzp.io/i/jlERKqU",
76
+ "upload_form_url": "https://rzp.io/i/cXyLlMxVLB",
77
+ "description": "12 p.m. Meals"
78
+ },
79
+ "bank_account": {
80
+ "ifsc": "HDFC0001233",
81
+ "bank_name": "HDFC Bank",
82
+ "name": "Gaurav Kumar",
83
+ "account_number": "11214311215411",
84
+ "account_type": "savings",
85
+ "beneficiary_email": "gaurav.kumar@example.com",
86
+ "beneficiary_mobile": "9123456780"
87
+ },
88
+ "first_payment_amount": 0
89
+ },
90
+ "nach_form_url": "https://rzp.io/i/jlERKqU"
91
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "id": "sub_00000000000001",
3
+ "entity": "subscription",
4
+ "plan_id": "plan_00000000000001",
5
+ "status": "resume",
6
+ "current_start": null,
7
+ "current_end": null,
8
+ "ended_at": null,
9
+ "quantity": 1,
10
+ "notes": [],
11
+ "charge_at": 1509494400,
12
+ "start_at": 1509494400,
13
+ "end_at": 1538332200,
14
+ "auth_attempts": 0,
15
+ "total_count": 12,
16
+ "paid_count": 0,
17
+ "customer_notify": true,
18
+ "created_at": 1509114729
19
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "id": "token_FHfn3rIiM1Z8nr",
3
+ "entity": "token",
4
+ "token": "AJ4E4jY9qRTCbV",
5
+ "bank": null,
6
+ "wallet": null,
7
+ "method": "upi",
8
+ "vpa": {
9
+ "username": "test",
10
+ "handle": "upi",
11
+ "name": null,
12
+ "status": "valid",
13
+ "received_at": 1646308935
14
+ },
15
+ "recurring": true,
16
+ "recurring_details": {
17
+ "status": "cancelled",
18
+ "failure_reason": null
19
+ },
20
+ "auth_type": null,
21
+ "mrn": null,
22
+ "used_at": 1632339010,
23
+ "created_at": 1630052826,
24
+ "start_time": 1630052799,
25
+ "notes": [
26
+
27
+ ],
28
+ "dcc_enabled": false,
29
+ "max_amount": 200000,
30
+ "expired_at": 1945585599
31
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "id": "token_00000000000001",
3
+ "entity": "token",
4
+ "customer_id": "cust_1Aa00000000001",
5
+ "method": "card",
6
+ "card": {
7
+ "last4": "1111",
8
+ "network": "Visa",
9
+ "type": "debit",
10
+ "issuer": "HDFC",
11
+ "international": false,
12
+ "emi": true,
13
+ "sub_type": "consumer",
14
+ "token_iin": "453335"
15
+ },
16
+ "compliant_with_tokenisation_guidelines": true,
17
+ "service_provider_tokens": [
18
+ {
19
+ "id": "spt_1234abcd",
20
+ "entity": "service_provider_token",
21
+ "provider_type": "network",
22
+ "provider_name": "Visa",
23
+ "interoperable": true,
24
+ "status": "active",
25
+ "status_reason": null,
26
+ "provider_data": {
27
+ "token_reference_number": "sas7wqaoidasdfssdjjk",
28
+ "payment_account_reference": "8324ssdas7wqaoidassdjjk",
29
+ "token_iin": "453335",
30
+ "token_expiry_month": 12,
31
+ "token_expiry_year": 2030
32
+ }
33
+ }
34
+ ],
35
+ "expired_at": 1748716199,
36
+ "status": "active",
37
+ "status_reason": null,
38
+ "notes": []
39
+ }
40
+
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "trf_JDEnyfvGu22ECp",
3
+ "entity": "transfer",
4
+ "source": "pay_EAeSM2Xul8xYRo",
5
+ "recipient": "acc_CMaomTz4o0FOFz",
6
+ "amount": 100,
7
+ "currency": "INR",
8
+ "amount_reversed": 0,
9
+ "notes": [],
10
+ "fees": 1,
11
+ "tax": 0,
12
+ "on_hold": true,
13
+ "on_hold_until": 1679691505,
14
+ "recipient_settlement_id": null,
15
+ "created_at": 1580459321,
16
+ "linked_account_notes": [],
17
+ "processed_at": 1580459321
18
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "id": "rvrsl_JDEqEA7iKI6SNO",
3
+ "entity": "reversal",
4
+ "transfer_id": "trf_JDEnyfvGu22ECp",
5
+ "amount": 100,
6
+ "fee": 0,
7
+ "tax": 0,
8
+ "currency": "INR",
9
+ "notes": [
10
+
11
+ ],
12
+ "initiator_id": "Hn1ukn2d32Fqww",
13
+ "customer_refund_id": null,
14
+ "created_at": 1648629734
15
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "id": "pay_IY4ljejpy9KUr9",
3
+ "entity": "payment",
4
+ "amount": 10600,
5
+ "currency": "INR",
6
+ "status": "captured",
7
+ "order_id": "order_IY4kmG44JyVo5i",
8
+ "invoice_id": "inv_IY4kmEQRf1HMNm",
9
+ "international": false,
10
+ "method": "upi",
11
+ "amount_refunded": 0,
12
+ "refund_status": null,
13
+ "captured": true,
14
+ "description": "Start Subscription",
15
+ "card_id": null,
16
+ "bank": null,
17
+ "wallet": null,
18
+ "vpa": "success@razorpay",
19
+ "email": "you@example.com",
20
+ "contact": "+917000569565",
21
+ "customer_id": "cust_I3FToKbnExwDLu",
22
+ "token_id": "token_IY4ljowVtuDmNz",
23
+ "notes": {
24
+ "notes_key_1": "Beam me up Scotty.",
25
+ "notes_key_2": "Engage"
26
+ },
27
+ "fee": 250,
28
+ "tax": 38,
29
+ "error_code": null,
30
+ "error_description": null,
31
+ "error_source": null,
32
+ "error_step": null,
33
+ "error_reason": null,
34
+ "acquirer_data": {
35
+ "rrn": "001000100002",
36
+ "upi_transaction_id": "npci_txn_id_for_IY4ljejpy9KUr9"
37
+ },
38
+ "created_at": 1639642319
39
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "vpa": "gauravkumar@exampleupi",
3
+ "success": true,
4
+ "customer_name": "Gaurav Kumar"
5
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "id": "va_4xbQrmEoA5WJ0G",
3
+ "name": "Gaurav Kumar",
4
+ "entity": "virtual_account",
5
+ "status": "active",
6
+ "description": null,
7
+ "amount_expected": null,
8
+ "notes": [
9
+
10
+ ],
11
+ "amount_paid": 0,
12
+ "customer_id": "cust_IOyIY3JvbVny9o",
13
+ "receivers": [
14
+ {
15
+ "id": "ba_J0XikIKgezi6PC",
16
+ "entity": "bank_account",
17
+ "ifsc": "RAZR0000001",
18
+ "bank_name": null,
19
+ "name": "ankit",
20
+ "notes": [
21
+
22
+ ],
23
+ "account_number": "1112220037770200"
24
+ },
25
+ {
26
+ "id": "vpa_J0Xl5aX1Np78Vk",
27
+ "entity": "vpa",
28
+ "username": "rzr.payto00000rahulkumar",
29
+ "handle": "icic",
30
+ "address": "rzr.payto00000rahulkumar@icic"
31
+ }
32
+ ],
33
+ "allowed_payers": [
34
+ {
35
+ "type": "bank_account",
36
+ "id": "ba_JCo2nGO9uS4mEI",
37
+ "bank_account": {
38
+ "ifsc": "RATN0VAAPIS",
39
+ "account_number": "2223330027558515"
40
+ }
41
+ }
42
+ ],
43
+ "close_by": null,
44
+ "closed_at": null,
45
+ "created_at": 1645857799
46
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "id": "va_4xbQrmEoA5WJ0G",
3
+ "name": "First Virtual Account",
4
+ "entity": "virtual_account",
5
+ "status": "active",
6
+ "description": "Virtual Account created for Raftar Soft",
7
+ "amount_expected": null,
8
+ "notes": {
9
+ "project_name": "Banking Software"
10
+ },
11
+ "amount_paid": 0,
12
+ "customer_id": "cust_HssUOFiOd2b1TJ",
13
+ "receivers": [
14
+ {
15
+ "id": "ba_J3gpY8kNQJ8mi8",
16
+ "entity": "bank_account",
17
+ "ifsc": "RAZR0000001",
18
+ "bank_name": null,
19
+ "name": "ankit",
20
+ "notes": [
21
+
22
+ ],
23
+ "account_number": "1112220042107547"
24
+ },
25
+ {
26
+ "id": "vpa_JCnXjvMabKkpFY",
27
+ "entity": "vpa",
28
+ "username": "rzr.payto00000rahuqkumar",
29
+ "handle": "icic",
30
+ "address": "rzr.payto00000rahuqkumar@icic"
31
+ }
32
+ ],
33
+ "allowed_payers": [
34
+ {
35
+ "type": "bank_account",
36
+ "id": "ba_J3gpYBXh92ZL5M",
37
+ "bank_account": {
38
+ "ifsc": "RATN0VAAPIS",
39
+ "account_number": "2223330027558515"
40
+ }
41
+ }
42
+ ],
43
+ "close_by": null,
44
+ "closed_at": null,
45
+ "created_at": 1646544900
46
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "id": "H000000000000H",
3
+ "created_at": 1665648343,
4
+ "updated_at": 1695729722,
5
+ "service": "api-test",
6
+ "owner_id": "S000000000000H",
7
+ "owner_type": "merchant",
8
+ "disabled_at": 1665736246,
9
+ "url": "https://www.linkedin.com",
10
+ "created_by": "Hn1ukgebfkBJ4L",
11
+ "secret_exists": true,
12
+ "created_by_email": "gaurav.kumar@example.com",
13
+ "entity": "webhook",
14
+ "active": true,
15
+ "events": {
16
+ "payment.authorized": false,
17
+ "payment.failed": false,
18
+ "payment.captured": false,
19
+ "payment.dispute.created": false,
20
+ "order.paid": false,
21
+ "invoice.paid": false,
22
+ "invoice.partially_paid": false,
23
+ "invoice.expired": false,
24
+ "subscription.authenticated": false,
25
+ "subscription.paused": false,
26
+ "subscription.resumed": false,
27
+ "subscription.activated": false,
28
+ "subscription.pending": false,
29
+ "subscription.halted": false,
30
+ "subscription.charged": false,
31
+ "subscription.cancelled": false,
32
+ "subscription.completed": false,
33
+ "subscription.updated": false,
34
+ "settlement.processed": false,
35
+ "virtual_account.credited": false,
36
+ "virtual_account.created": false,
37
+ "virtual_account.closed": false,
38
+ "qr_code.closed": false,
39
+ "qr_code.created": false,
40
+ "qr_code.credited": false,
41
+ "payment.dispute.won": false,
42
+ "payment.dispute.lost": false,
43
+ "payment.dispute.closed": false,
44
+ "payment.dispute.under_review": false,
45
+ "payment.dispute.action_required": false,
46
+ "fund_account.validation.completed": false,
47
+ "fund_account.validation.failed": false,
48
+ "payout.processed": false,
49
+ "payout.reversed": false,
50
+ "payment.downtime.started": false,
51
+ "payment.downtime.updated": false,
52
+ "payment.downtime.resolved": false,
53
+ "payout.initiated": false,
54
+ "refund.speed_changed": false,
55
+ "refund.processed": false,
56
+ "refund.failed": false,
57
+ "refund.created": true,
58
+ "transfer.processed": false,
59
+ "transfer.failed": false,
60
+ "account.under_review": false,
61
+ "account.needs_clarification": false,
62
+ "account.activated": false,
63
+ "account.rejected": false,
64
+ "account.updated": false,
65
+ "payout.updated": false,
66
+ "payout.rejected": false,
67
+ "payout.pending": false,
68
+ "payment_link.paid": false,
69
+ "payment_link.partially_paid": false,
70
+ "payment_link.expired": false,
71
+ "payment_link.cancelled": false,
72
+ "zapier.payment_page.paid.v1": false,
73
+ "shiprocket.payment_page.paid.v1": false,
74
+ "product.route.under_review": false,
75
+ "product.route.activated": false,
76
+ "product.route.needs_clarification": false,
77
+ "product.route.rejected": false
78
+ }
79
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "H000000000000H",
3
+ "created_at": 1654605478,
4
+ "updated_at": 1654605478,
5
+ "owner_id": "JOGUdtKu3dB03d",
6
+ "owner_type": "merchant",
7
+ "context": [],
8
+ "disabled_at": 0,
9
+ "url": "https://google.com",
10
+ "alert_email": "gaurav.kumar@example.com",
11
+ "secret_exists": true,
12
+ "entity": "webhook",
13
+ "active": true,
14
+ "events": [
15
+ "payment.authorized",
16
+ "payment.failed",
17
+ "payment.captured",
18
+ "payment.dispute.created",
19
+ "refund.failed",
20
+ "refund.created"
21
+ ]
22
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "entity": "tnc_map",
3
+ "product_name": "payments",
4
+ "id": "tnc_map_00000000000001",
5
+ "tnc": {
6
+ "terms": "https://razorpay.com/terms",
7
+ "privacy": "https://razorpay.com/privacy",
8
+ "agreement": "https://razorpay.com/agreement"
9
+ },
10
+ "last_published_at": 1640589653
11
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "entity":"collection",
3
+ "count":1,
4
+ "items":[
5
+ {
6
+ "id":"fa_Aa000000000001",
7
+ "entity":"fund_account",
8
+ "customer_id":"cust_Aa000000000001",
9
+ "account_type":"bank_account",
10
+ "bank_account":{
11
+ "name":"Gaurav Kumar",
12
+ "account_number":"11214311215411",
13
+ "ifsc":"HDFC0000053",
14
+ "bank_name":"HDFC Bank"
15
+ },
16
+ "active":true,
17
+ "created_at":1543650891
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "entity": "collection",
3
+ "count": 1,
4
+ "items": [
5
+ {
6
+ "id": "item_J7lZCyxMVeEtYB",
7
+ "active": true,
8
+ "name": "Test item",
9
+ "description": null,
10
+ "amount": 1000,
11
+ "unit_amount": 1000,
12
+ "currency": "INR",
13
+ "type": "invoice",
14
+ "unit": null,
15
+ "tax_inclusive": false,
16
+ "hsn_code": null,
17
+ "sac_code": null,
18
+ "tax_rate": null,
19
+ "tax_id": null,
20
+ "tax_group_id": null,
21
+ "created_at": 1647434940
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "error": {
3
+ "code": "BAD_REQUEST_ERROR",
4
+ "description": "The id provided does not exist",
5
+ "source": "business",
6
+ "step": "payment_initiation",
7
+ "reason": "input_validation_failed",
8
+ "metadata": {}
9
+ }
10
+ }
@@ -29,4 +29,4 @@
29
29
  "created_at": 1400826750
30
30
  }
31
31
  ]
32
- }
32
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "error": {
3
+ "code": "BAD_REQUEST_ERROR",
4
+ "description": "The id provided does not exist",
5
+ "source": "business",
6
+ "step": "payment_initiation",
7
+ "reason": "input_validation_failed",
8
+ "metadata": {}
9
+ }
10
+ }