razorpay 2.4.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/ruby.yml +38 -0
  4. data/CHANGELOG.md +19 -0
  5. data/README.md +29 -140
  6. data/documents/Invoice.md +531 -0
  7. data/documents/addon.md +169 -0
  8. data/documents/card.md +611 -0
  9. data/documents/customer.md +161 -0
  10. data/documents/emandate.md +484 -0
  11. data/documents/fund.md +87 -0
  12. data/documents/items.md +184 -0
  13. data/documents/order.md +230 -0
  14. data/documents/papernach.md +718 -0
  15. data/documents/payment.md +636 -0
  16. data/documents/paymentLink.md +1045 -0
  17. data/documents/paymentVerification.md +79 -0
  18. data/documents/plan.md +184 -0
  19. data/documents/qrcode.md +441 -0
  20. data/documents/refund.md +324 -0
  21. data/documents/registerEmandate.md +445 -0
  22. data/documents/registerNach.md +661 -0
  23. data/documents/settlement.md +477 -0
  24. data/documents/subscriptions.md +750 -0
  25. data/documents/tokens.md +208 -0
  26. data/documents/transfers.md +684 -0
  27. data/documents/upi.md +548 -0
  28. data/documents/virtualAccount.md +586 -0
  29. data/lib/razorpay/addon.rb +4 -0
  30. data/lib/razorpay/constants.rb +1 -1
  31. data/lib/razorpay/customer.rb +15 -0
  32. data/lib/razorpay/fund_account.rb +19 -0
  33. data/lib/razorpay/invoice.rb +8 -0
  34. data/lib/razorpay/item.rb +34 -0
  35. data/lib/razorpay/order.rb +10 -0
  36. data/lib/razorpay/payment.rb +52 -0
  37. data/lib/razorpay/payment_link.rb +36 -0
  38. data/lib/razorpay/qr_code.rb +34 -0
  39. data/lib/razorpay/refund.rb +4 -0
  40. data/lib/razorpay/request.rb +13 -6
  41. data/lib/razorpay/settlement.rb +39 -0
  42. data/lib/razorpay/subscription.rb +24 -0
  43. data/lib/razorpay/subscription_registration.rb +16 -0
  44. data/lib/razorpay/transfer.rb +35 -0
  45. data/lib/razorpay/utility.rb +7 -2
  46. data/lib/razorpay/virtual_account.rb +14 -6
  47. data/lib/razorpay.rb +7 -0
  48. data/test/fixtures/addon_collection.json +60 -0
  49. data/test/fixtures/create_json_payment.json +13 -0
  50. data/test/fixtures/delete_token.json +3 -0
  51. data/test/fixtures/downtimes_collection.json +21 -0
  52. data/test/fixtures/empty.json +2 -0
  53. data/test/fixtures/fake_addon.json +3 -3
  54. data/test/fixtures/fake_direct_transfer.json +32 -0
  55. data/test/fixtures/fake_downtime.json +14 -0
  56. data/test/fixtures/fake_fund_account.json +18 -0
  57. data/test/fixtures/fake_instant_settlement.json +19 -0
  58. data/test/fixtures/fake_item.json +9 -0
  59. data/test/fixtures/fake_order_transfers.json +88 -0
  60. data/test/fixtures/fake_otp_generate.json +19 -0
  61. data/test/fixtures/fake_otp_resend.json +7 -0
  62. data/test/fixtures/fake_otp_submit.json +5 -0
  63. data/test/fixtures/fake_payment_link.json +40 -0
  64. data/test/fixtures/fake_pending_update.json +30 -0
  65. data/test/fixtures/fake_qrcode.json +20 -0
  66. data/test/fixtures/fake_qrcode_close.json +22 -0
  67. data/test/fixtures/fake_recurring.json +5 -0
  68. data/test/fixtures/fake_refund.json +1 -1
  69. data/test/fixtures/fake_settlement.json +11 -0
  70. data/test/fixtures/fake_settlement_on_demand.json +39 -0
  71. data/test/fixtures/fake_subscription_pause.json +19 -0
  72. data/test/fixtures/fake_subscription_registration.json +91 -0
  73. data/test/fixtures/fake_subscription_resume.json +19 -0
  74. data/test/fixtures/fake_token.json +31 -0
  75. data/test/fixtures/fake_transfer.json +18 -0
  76. data/test/fixtures/fake_transfer_reverse.json +15 -0
  77. data/test/fixtures/fake_update_payment.json +39 -0
  78. data/test/fixtures/fake_virtual_account_allowed.json +46 -0
  79. data/test/fixtures/fake_virtual_account_receiver.json +46 -0
  80. data/test/fixtures/fund_collection.json +20 -0
  81. data/test/fixtures/item_collection.json +24 -0
  82. data/test/fixtures/payment_collection.json +1 -1
  83. data/test/fixtures/payment_link_collection.json +43 -0
  84. data/test/fixtures/payment_link_response.json +3 -0
  85. data/test/fixtures/qrcode_collection.json +50 -0
  86. data/test/fixtures/qrcode_payments_collection.json +74 -0
  87. data/test/fixtures/settlement_collection.json +26 -0
  88. data/test/fixtures/settlement_instant_collection.json +84 -0
  89. data/test/fixtures/settlement_report_collection.json +117 -0
  90. data/test/fixtures/success.json +3 -0
  91. data/test/fixtures/tokens_collection.json +36 -0
  92. data/test/fixtures/transfer_settlements_collection.json +38 -0
  93. data/test/fixtures/transfers_collection.json +41 -0
  94. data/test/razorpay/test_addon.rb +15 -15
  95. data/test/razorpay/test_customer.rb +27 -3
  96. data/test/razorpay/test_fund_account.rb +42 -0
  97. data/test/razorpay/test_invoice.rb +15 -2
  98. data/test/razorpay/test_item.rb +66 -0
  99. data/test/razorpay/test_order.rb +24 -1
  100. data/test/razorpay/test_payment.rb +184 -8
  101. data/test/razorpay/test_payment_link.rb +83 -0
  102. data/test/razorpay/test_plan.rb +2 -2
  103. data/test/razorpay/test_qr_code.rb +63 -0
  104. data/test/razorpay/test_refund.rb +16 -2
  105. data/test/razorpay/test_settlement.rb +76 -0
  106. data/test/razorpay/test_subscription.rb +72 -9
  107. data/test/razorpay/test_subscription_registration.rb +58 -0
  108. data/test/razorpay/test_transfer.rb +77 -0
  109. data/test/razorpay/test_utility.rb +32 -0
  110. data/test/razorpay/test_virtual_account.rb +64 -17
  111. data/test/test_helper.rb +6 -0
  112. metadata +138 -9
  113. data/.travis.yml +0 -22
  114. data/test/razorpay/test_errors.rb +0 -19
@@ -0,0 +1,88 @@
1
+ {
2
+ "id":"order_50sX9hGHZJvjjI",
3
+ "entity":"order",
4
+ "amount":1000,
5
+ "amount_paid":1000,
6
+ "amount_due":0,
7
+ "currency":"INR",
8
+ "receipt":null,
9
+ "offer_id":null,
10
+ "status":"paid",
11
+ "attempts":1,
12
+ "notes":[
13
+
14
+ ],
15
+ "created_at":1570794714,
16
+ "transfers":{
17
+ "entity":"collection",
18
+ "count":2,
19
+ "items":[
20
+ {
21
+ "id":"trf_DSkl2lXWbiADZG",
22
+ "entity":"transfer",
23
+ "transfer_status":"processed",
24
+ "settlement_status":null,
25
+ "source":"order_DSkl2lBNvueOly",
26
+ "recipient":"acc_CNo3jSI8OkFJJJ",
27
+ "amount":500,
28
+ "currency":"INR",
29
+ "amount_reversed":0,
30
+ "notes":{
31
+ "branch":"Acme Corp Bangalore North",
32
+ "name":"Gaurav Kumar"
33
+ },
34
+ "fees":2,
35
+ "tax":0,
36
+ "on_hold":true,
37
+ "on_hold_until":1670776632,
38
+ "recipient_settlement_id":null,
39
+ "created_at":1570794714,
40
+ "linked_account_notes":[
41
+ "Acme Corp Bangalore North"
42
+ ],
43
+ "processed_at":1570794772,
44
+ "error":{
45
+ "code":null,
46
+ "description":null,
47
+ "field":null,
48
+ "source":null,
49
+ "step":null,
50
+ "reason":null
51
+ }
52
+ },
53
+ {
54
+ "id":"trf_DSkl2pJE49IRc3",
55
+ "entity":"transfer",
56
+ "transfer_status":"pending",
57
+ "settlement_status":null,
58
+ "source":"order_DSkl2lBNvueOly",
59
+ "recipient":"acc_CMaomTz4o0FOFz",
60
+ "amount":500,
61
+ "currency":"INR",
62
+ "amount_reversed":0,
63
+ "notes":{
64
+ "branch":"Acme Corp Bangalore South",
65
+ "name":"Saurav Kumar"
66
+ },
67
+ "fees":2,
68
+ "tax":0,
69
+ "on_hold":false,
70
+ "on_hold_until":null,
71
+ "recipient_settlement_id":null,
72
+ "created_at":1570794714,
73
+ "linked_account_notes":[
74
+ "Acme Corp Bangalore South"
75
+ ],
76
+ "processed_at":null,
77
+ "error":{
78
+ "code":null,
79
+ "description":null,
80
+ "field":null,
81
+ "source":null,
82
+ "step":null,
83
+ "reason":null
84
+ }
85
+ }
86
+ ]
87
+ }
88
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "razorpay_payment_id": "pay_FVmAstJWfsD3SO",
3
+ "next": [
4
+ {
5
+ "action": "otp_submit",
6
+ "url": "https://api.razorpay.com/v1/payments/pay_FVmAstJWfsD3SO/otp_submit/ac2d415a8be7595de09a24b41661729fd9028fdc?key_id=<YOUR_KEY_ID>"
7
+ },
8
+ {
9
+ "action": "otp_resend",
10
+ "url": "https://api.razorpay.com/v1/payments/pay_FVmAstJWfsD3SO/otp_resend/json?key_id=<YOUR_KEY_ID>"
11
+ }
12
+ ],
13
+ "metadata": {
14
+ "issuer": "HDFC",
15
+ "network": "MC",
16
+ "last4": "1111",
17
+ "iin": "411111"
18
+ }
19
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "next": [
3
+ "otp_submit",
4
+ "otp_resend"
5
+ ],
6
+ "razorpay_payment_id": "fake_payment_id"
7
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "razorpay_payment_id": "fake_payment_id",
3
+ "razorpay_order_id": "order_9A33XWu170gUtm",
4
+ "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d"
5
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "accept_partial": true,
3
+ "amount": 1000,
4
+ "amount_paid": 0,
5
+ "callback_method": "get",
6
+ "callback_url": "https://example-callback-url.com/",
7
+ "cancelled_at": 1647854430,
8
+ "created_at": 1647850784,
9
+ "currency": "INR",
10
+ "customer": {
11
+ "contact": "+919999999999",
12
+ "email": "gaurav.kumar@example.com",
13
+ "name": "Gaurav Kumar"
14
+ },
15
+ "description": "For XYZ purpose",
16
+ "expire_by": 0,
17
+ "expired_at": 0,
18
+ "first_min_partial_amount": 100,
19
+ "id": "plink_J9feMU9xqHQVWX",
20
+ "notes": {
21
+ "policy_name": "Jeevan Bima"
22
+ },
23
+ "notify": {
24
+ "email": true,
25
+ "sms": true
26
+ },
27
+ "payments": [
28
+
29
+ ],
30
+ "reference_id": "",
31
+ "reminder_enable": true,
32
+ "reminders": {
33
+ "status": "in_progress"
34
+ },
35
+ "short_url": "https://rzp.io/i/GIgR3hfGI",
36
+ "status": "cancelled",
37
+ "updated_at": 1647854430,
38
+ "upi_link": false,
39
+ "user_id": ""
40
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id":"sub_00000000000002",
3
+ "entity":"subscription",
4
+ "plan_id":"plan_00000000000002",
5
+ "customer_id":"cust_00000000000002",
6
+ "status":"active",
7
+ "current_start":null,
8
+ "current_end":null,
9
+ "ended_at":null,
10
+ "quantity":3,
11
+ "notes":{
12
+ "notes_key_1":"Tea, Earl Grey, Hot",
13
+ "notes_key_2":"Tea, Earl Grey… decaf."
14
+ },
15
+ "charge_at":1580453311,
16
+ "start_at":1580453311,
17
+ "end_at":1606588200,
18
+ "auth_attempts":0,
19
+ "total_count":6,
20
+ "paid_count":0,
21
+ "customer_notify":false,
22
+ "created_at":1580283807,
23
+ "expire_by":1580626111,
24
+ "short_url":"https://rzp.io/i/yeDkUKy",
25
+ "has_scheduled_changes":false,
26
+ "change_scheduled_at":null,
27
+ "source": "api",
28
+ "offer_id":"offer_JHD834hjbxzhd38d",
29
+ "remaining_count":6
30
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "id": "qr_HMsVL8HOpbMcjU",
3
+ "entity": "qr_code",
4
+ "created_at": 1623660301,
5
+ "name": "Store_1",
6
+ "usage": "single_use",
7
+ "type": "upi_qr",
8
+ "image_url": "https://rzp.io/i/BWcUVrLp",
9
+ "payment_amount": 300,
10
+ "status": "active",
11
+ "description": "For Store 1",
12
+ "fixed_amount": true,
13
+ "payments_amount_received": 0,
14
+ "payments_count_received": 0,
15
+ "notes": {
16
+ "purpose": "Test UPI QR code notes"
17
+ },
18
+ "customer_id": "cust_HKsR5se84c5LTO",
19
+ "close_by": 1681615838
20
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "qr_HMsVL8HOpbMcjU",
3
+ "entity": "qr_code",
4
+ "created_at": 1623660301,
5
+ "name": "Store_1",
6
+ "usage": "single_use",
7
+ "type": "upi_qr",
8
+ "image_url": "https://rzp.io/i/BWcUVrLp",
9
+ "payment_amount": 300,
10
+ "status": "closed",
11
+ "description": "For Store 1",
12
+ "fixed_amount": true,
13
+ "payments_amount_received": 0,
14
+ "payments_count_received": 0,
15
+ "notes": {
16
+ "purpose": "Test UPI QR code notes"
17
+ },
18
+ "customer_id": "cust_HKsR5se84c5LTO",
19
+ "close_by": 1681615838,
20
+ "closed_at": 1623660445,
21
+ "close_reason": "on_demand"
22
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "razorpay_payment_id" : "pay_1Aa00000000001",
3
+ "razorpay_order_id" : "order_1Aa00000000001",
4
+ "razorpay_signature" : "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d"
5
+ }
@@ -3,6 +3,6 @@
3
3
  "entity": "refund",
4
4
  "amount": 2000,
5
5
  "currency": "INR",
6
- "payment_id": "fake_payment_id",
6
+ "payment_id": "pay_FFX5FdEYx8jPwA",
7
7
  "created_at": 1500826750
8
8
  }
@@ -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,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,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,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,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
+ }