razorruby 3.0.1

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 (171) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.editorconfig +12 -0
  4. data/.github/dependabot.yml +8 -0
  5. data/.github/workflows/ruby.yml +38 -0
  6. data/.gitignore +23 -0
  7. data/.rubocop.yml +22 -0
  8. data/.simplecov +3 -0
  9. data/CHANGELOG.md +168 -0
  10. data/Gemfile +4 -0
  11. data/LICENSE.txt +22 -0
  12. data/README.md +102 -0
  13. data/Rakefile +26 -0
  14. data/documents/Invoice.md +539 -0
  15. data/documents/addon.md +191 -0
  16. data/documents/card.md +610 -0
  17. data/documents/customer.md +163 -0
  18. data/documents/emandate.md +492 -0
  19. data/documents/fund.md +89 -0
  20. data/documents/items.md +208 -0
  21. data/documents/order.md +281 -0
  22. data/documents/papernach.md +738 -0
  23. data/documents/payment.md +826 -0
  24. data/documents/paymentLink.md +1063 -0
  25. data/documents/paymentVerification.md +79 -0
  26. data/documents/plan.md +184 -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/subscriptions.md +752 -0
  33. data/documents/tokens.md +262 -0
  34. data/documents/transfers.md +781 -0
  35. data/documents/upi.md +545 -0
  36. data/documents/virtualAccount.md +591 -0
  37. data/lib/ca-bundle.crt +3988 -0
  38. data/lib/extensions/httparty/hash_conversions.rb +44 -0
  39. data/lib/razorpay/addon.rb +32 -0
  40. data/lib/razorpay/card.rb +17 -0
  41. data/lib/razorpay/collection.rb +6 -0
  42. data/lib/razorpay/constants.rb +6 -0
  43. data/lib/razorpay/customer.rb +42 -0
  44. data/lib/razorpay/entity.rb +46 -0
  45. data/lib/razorpay/errors/bad_request_error.rb +14 -0
  46. data/lib/razorpay/errors/gateway_error.rb +7 -0
  47. data/lib/razorpay/errors/razorpay_error.rb +11 -0
  48. data/lib/razorpay/errors/server_error.rb +7 -0
  49. data/lib/razorpay/errors.rb +4 -0
  50. data/lib/razorpay/fund_account.rb +19 -0
  51. data/lib/razorpay/invoice.rb +68 -0
  52. data/lib/razorpay/item.rb +34 -0
  53. data/lib/razorpay/order.rb +39 -0
  54. data/lib/razorpay/payment.rb +116 -0
  55. data/lib/razorpay/payment_link.rb +36 -0
  56. data/lib/razorpay/payment_method.rb +17 -0
  57. data/lib/razorpay/plan.rb +24 -0
  58. data/lib/razorpay/qr_code.rb +34 -0
  59. data/lib/razorpay/refund.rb +27 -0
  60. data/lib/razorpay/request.rb +119 -0
  61. data/lib/razorpay/settlement.rb +39 -0
  62. data/lib/razorpay/subscription.rb +60 -0
  63. data/lib/razorpay/subscription_registration.rb +16 -0
  64. data/lib/razorpay/transfer.rb +35 -0
  65. data/lib/razorpay/utility.rb +57 -0
  66. data/lib/razorpay/virtual_account.rb +49 -0
  67. data/lib/razorpay.rb +37 -0
  68. data/razorpay-ruby.gemspec +36 -0
  69. data/test/fixtures/addon_collection.json +60 -0
  70. data/test/fixtures/bad_request_error.json +7 -0
  71. data/test/fixtures/cancel_invoice.json +44 -0
  72. data/test/fixtures/cancel_subscription.json +20 -0
  73. data/test/fixtures/create_json_payment.json +13 -0
  74. data/test/fixtures/customer_collection.json +22 -0
  75. data/test/fixtures/delete_token.json +3 -0
  76. data/test/fixtures/downtimes_collection.json +21 -0
  77. data/test/fixtures/empty.json +2 -0
  78. data/test/fixtures/fake_addon.json +24 -0
  79. data/test/fixtures/fake_captured_payment.json +13 -0
  80. data/test/fixtures/fake_card.json +9 -0
  81. data/test/fixtures/fake_create_upi_payment.json +3 -0
  82. data/test/fixtures/fake_customer.json +8 -0
  83. data/test/fixtures/fake_customer_edited.json +8 -0
  84. data/test/fixtures/fake_direct_transfer.json +32 -0
  85. data/test/fixtures/fake_downtime.json +14 -0
  86. data/test/fixtures/fake_fund_account.json +18 -0
  87. data/test/fixtures/fake_instant_settlement.json +19 -0
  88. data/test/fixtures/fake_invoice.json +30 -0
  89. data/test/fixtures/fake_item.json +9 -0
  90. data/test/fixtures/fake_order.json +10 -0
  91. data/test/fixtures/fake_order_transfers.json +88 -0
  92. data/test/fixtures/fake_otp_generate.json +19 -0
  93. data/test/fixtures/fake_otp_resend.json +7 -0
  94. data/test/fixtures/fake_otp_submit.json +5 -0
  95. data/test/fixtures/fake_payment.json +14 -0
  96. data/test/fixtures/fake_payment_authorized_webhook.json +40 -0
  97. data/test/fixtures/fake_payment_bank_transfer.json +12 -0
  98. data/test/fixtures/fake_payment_link.json +40 -0
  99. data/test/fixtures/fake_pending_update.json +30 -0
  100. data/test/fixtures/fake_plan.json +26 -0
  101. data/test/fixtures/fake_qrcode.json +20 -0
  102. data/test/fixtures/fake_qrcode_close.json +22 -0
  103. data/test/fixtures/fake_recurring.json +5 -0
  104. data/test/fixtures/fake_refund.json +8 -0
  105. data/test/fixtures/fake_refunded_payment.json +14 -0
  106. data/test/fixtures/fake_settlement.json +11 -0
  107. data/test/fixtures/fake_settlement_on_demand.json +39 -0
  108. data/test/fixtures/fake_subscription.json +20 -0
  109. data/test/fixtures/fake_subscription_pause.json +19 -0
  110. data/test/fixtures/fake_subscription_registration.json +91 -0
  111. data/test/fixtures/fake_subscription_resume.json +19 -0
  112. data/test/fixtures/fake_token.json +31 -0
  113. data/test/fixtures/fake_transfer.json +18 -0
  114. data/test/fixtures/fake_transfer_reverse.json +15 -0
  115. data/test/fixtures/fake_update_payment.json +39 -0
  116. data/test/fixtures/fake_validate_vpa.json +5 -0
  117. data/test/fixtures/fake_virtual_account.json +21 -0
  118. data/test/fixtures/fake_virtual_account_allowed.json +46 -0
  119. data/test/fixtures/fake_virtual_account_closed.json +21 -0
  120. data/test/fixtures/fake_virtual_account_collection.json +48 -0
  121. data/test/fixtures/fake_virtual_account_receiver.json +46 -0
  122. data/test/fixtures/fund_collection.json +20 -0
  123. data/test/fixtures/hello_response.json +3 -0
  124. data/test/fixtures/invoice_collection.json +93 -0
  125. data/test/fixtures/issue_invoice.json +44 -0
  126. data/test/fixtures/item_collection.json +24 -0
  127. data/test/fixtures/order_collection.json +36 -0
  128. data/test/fixtures/order_payments.json +29 -0
  129. data/test/fixtures/payment_collection.json +32 -0
  130. data/test/fixtures/payment_collection_with_one_payment.json +19 -0
  131. data/test/fixtures/payment_link_collection.json +43 -0
  132. data/test/fixtures/payment_link_response.json +3 -0
  133. data/test/fixtures/payment_methods_collection.json +149 -0
  134. data/test/fixtures/plan_collection.json +32 -0
  135. data/test/fixtures/qrcode_collection.json +50 -0
  136. data/test/fixtures/qrcode_payments_collection.json +74 -0
  137. data/test/fixtures/refund_collection.json +30 -0
  138. data/test/fixtures/refund_collection_for_payment.json +22 -0
  139. data/test/fixtures/settlement_collection.json +26 -0
  140. data/test/fixtures/settlement_instant_collection.json +84 -0
  141. data/test/fixtures/settlement_report_collection.json +117 -0
  142. data/test/fixtures/subscription_collection.json +26 -0
  143. data/test/fixtures/success.json +3 -0
  144. data/test/fixtures/tokens_collection.json +36 -0
  145. data/test/fixtures/transfer_settlements_collection.json +38 -0
  146. data/test/fixtures/transfers_collection.json +41 -0
  147. data/test/fixtures/update_invoice.json +44 -0
  148. data/test/fixtures/welcome.json +3 -0
  149. data/test/razorpay/test_addon.rb +76 -0
  150. data/test/razorpay/test_card.rb +23 -0
  151. data/test/razorpay/test_customer.rb +69 -0
  152. data/test/razorpay/test_entity.rb +55 -0
  153. data/test/razorpay/test_fund_account.rb +42 -0
  154. data/test/razorpay/test_invoice.rb +143 -0
  155. data/test/razorpay/test_item.rb +66 -0
  156. data/test/razorpay/test_order.rb +71 -0
  157. data/test/razorpay/test_payment.rb +303 -0
  158. data/test/razorpay/test_payment_link.rb +83 -0
  159. data/test/razorpay/test_plan.rb +65 -0
  160. data/test/razorpay/test_qr_code.rb +63 -0
  161. data/test/razorpay/test_razorpay.rb +53 -0
  162. data/test/razorpay/test_refund.rb +56 -0
  163. data/test/razorpay/test_request.rb +15 -0
  164. data/test/razorpay/test_settlement.rb +76 -0
  165. data/test/razorpay/test_subscription.rb +190 -0
  166. data/test/razorpay/test_subscription_registration.rb +58 -0
  167. data/test/razorpay/test_transfer.rb +77 -0
  168. data/test/razorpay/test_utility.rb +84 -0
  169. data/test/razorpay/test_virtual_account.rb +135 -0
  170. data/test/test_helper.rb +54 -0
  171. metadata +400 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": "pay_29QQoUBi66xm2f",
3
+ "entity": "payment",
4
+ "amount": 500,
5
+ "currency": "INR",
6
+ "status": "captured",
7
+ "amount_refunded": 0,
8
+ "refund_status": null,
9
+ "error_code": null,
10
+ "error_description": null,
11
+ "udf": {},
12
+ "created_at": 1400826750
13
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": "card_7EZLhWkDt05n7V",
3
+ "entity": "card",
4
+ "name": "Fake customer name",
5
+ "last4": "4321",
6
+ "network": "Visa",
7
+ "type": "debit",
8
+ "international": false
9
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "razorpay_payment_id": "pay_FVmAstJWfsD3SO"
3
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": "cust_6vRXClWqnLhV14",
3
+ "email": "test@razorpay.com",
4
+ "contact": "9876543210",
5
+ "notes": [],
6
+ "created_at": 1482299274,
7
+ "entity": "customer"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": "cust_6vRXClWqnLhV14",
3
+ "email": "test.edit@razorpay.com",
4
+ "contact": "9876543210",
5
+ "notes": [],
6
+ "created_at": 1482299274,
7
+ "entity": "customer"
8
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "id":"trf_JDEnyfvGu22ECp",
3
+ "entity":"transfer",
4
+ "transfer_status":"pending",
5
+ "settlement_status":null,
6
+ "source":"acc_CJoeHMNpi0nC7k",
7
+ "recipient":"acc_CPRsN1LkFccllA",
8
+ "amount":100,
9
+ "currency":"INR",
10
+ "amount_reversed":0,
11
+ "notes":[
12
+
13
+ ],
14
+ "fees":1,
15
+ "tax":0,
16
+ "on_hold":false,
17
+ "on_hold_until":null,
18
+ "recipient_settlement_id":null,
19
+ "created_at":1580219046,
20
+ "linked_account_notes":[
21
+
22
+ ],
23
+ "processed_at":null,
24
+ "errors":{
25
+ "code":null,
26
+ "description":null,
27
+ "field":null,
28
+ "source":null,
29
+ "step":null,
30
+ "reason":null
31
+ }
32
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": "fake_downtime_id",
3
+ "method": "card",
4
+ "begin": 1593196031,
5
+ "end": null,
6
+ "status": "started",
7
+ "scheduled": false,
8
+ "severity": "high",
9
+ "instrument": {
10
+ "issuer": "SBIN"
11
+ },
12
+ "created_at": 1593196089,
13
+ "updated_at": 1593196089
14
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "id": "fa_J8B38pGr1Tfv8k",
3
+ "entity": "fund_account",
4
+ "customer_id": "cust_J3oSNi1KgzqVEX",
5
+ "account_type": "bank_account",
6
+ "bank_account": {
7
+ "ifsc": "HDFC0000053",
8
+ "bank_name": "HDFC Bank",
9
+ "name": "Gaurav Kumar",
10
+ "notes": [
11
+
12
+ ],
13
+ "account_number": "11214311215411"
14
+ },
15
+ "batch_id": null,
16
+ "active": true,
17
+ "created_at": 1647524681
18
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "id": "setlod_FNj7g2YS5J67Rz",
3
+ "entity": "settlement.ondemand",
4
+ "amount_requested": 200000,
5
+ "amount_settled": 199410,
6
+ "amount_pending": 0,
7
+ "amount_reversed": 0,
8
+ "fees": 590,
9
+ "tax": 90,
10
+ "currency": "INR",
11
+ "settle_full_balance": false,
12
+ "status": "processed",
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
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "inv_6vRZmJYFAG1mNq",
3
+ "entity": "invoice",
4
+ "receipt": null,
5
+ "invoice_number": null,
6
+ "customer_id": "cust_6vRXClWqnLhV14",
7
+ "customer_details": {
8
+ "customer_name": null,
9
+ "customer_email": "test@razorpay.com",
10
+ "customer_contact": "9876543210",
11
+ "customer_address": null
12
+ },
13
+ "order_id": "order_6vRZmJu7EPEMY0",
14
+ "line_items": [],
15
+ "payment_id": null,
16
+ "status": "issued",
17
+ "issued_at": 1482299421,
18
+ "paid_at": null,
19
+ "sms_status": "sent",
20
+ "email_status": "sent",
21
+ "date": 1482299421,
22
+ "amount": 100,
23
+ "description": "Test description",
24
+ "notes": [],
25
+ "currency": "INR",
26
+ "short_url": "http://bit.ly/2i8kSqu",
27
+ "view_less": true,
28
+ "type": "link",
29
+ "created_at": 1482299422
30
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": "item_JDcbIdX9xojCje",
3
+ "active": true,
4
+ "name": "English Augusts",
5
+ "description": "An indian story, Prize winner.",
6
+ "amount": 20000,
7
+ "unit_amount": 20000,
8
+ "currency": "INR"
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": "order_50sX9hGHZJvjjI",
3
+ "entity": "order",
4
+ "amount": 5000,
5
+ "currency": "INR",
6
+ "receipt": "TEST",
7
+ "status": "attempted",
8
+ "attempts": 1,
9
+ "created_at": 1456411883
10
+ }
@@ -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,14 @@
1
+ {
2
+ "id": "fake_payment_id",
3
+ "entity": "payment",
4
+ "amount": 500,
5
+ "currency": "INR",
6
+ "status": "created",
7
+ "amount_refunded": 0,
8
+ "refund_status": null,
9
+ "error_code": null,
10
+ "error_description": null,
11
+ "udf": {},
12
+ "created_at": 1400826750,
13
+ "method": "card"
14
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "event": "payment.authorized",
3
+ "entity": "event",
4
+ "contains": [
5
+ "payment"
6
+ ],
7
+ "payload": {
8
+ "payment": {
9
+ "entity": {
10
+ "id": "pay_6koWN7bvxujzxM",
11
+ "entity": "payment",
12
+ "amount": 1000000,
13
+ "currency": "INR",
14
+ "status": "captured",
15
+ "order_id": "order_100000000order",
16
+ "international": false,
17
+ "method": "card",
18
+ "amount_refunded": 0,
19
+ "refund_status": null,
20
+ "captured": true,
21
+ "description": "random description",
22
+ "card_id": "card_6koWNAT6LASUqy",
23
+ "bank": null,
24
+ "wallet": null,
25
+ "vpa": null,
26
+ "email": "a@b.com",
27
+ "contact": "+919999999999",
28
+ "notes": {
29
+ "merchant_order_id": "random order id"
30
+ },
31
+ "fee": 23000,
32
+ "service_tax": 3000,
33
+ "error_code": null,
34
+ "error_description": null,
35
+ "created_at": 1479978483
36
+ }
37
+ }
38
+ },
39
+ "created_at": 1400826760
40
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "payment_id" : "fake_payment_id",
3
+ "virtual_account_id" : "va_4xbQrmEoA5WJ0G",
4
+ "amount" : 900,
5
+ "payer_bank_account" : {
6
+ "id" : "ba_8JpVEbAkzgjtuB",
7
+ "entity" : "bank_account",
8
+ "account_number" : "765432123456789",
9
+ "ifsc" : "RAZR0000001",
10
+ "name" : "Merchant Billing Label"
11
+ }
12
+ }
@@ -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,26 @@
1
+ {
2
+ "id": "fake_plan_id",
3
+ "entity": "plan",
4
+ "interval": 1,
5
+ "period": "monthly",
6
+ "item": {
7
+ "id": "item_92ARNuCnESXZkj",
8
+ "active": true,
9
+ "name": "Plan 751..1000",
10
+ "description": "Share docs + user mgmt",
11
+ "amount": 2500000,
12
+ "unit_amount": 2500000,
13
+ "currency": "INR",
14
+ "type": "plan",
15
+ "unit": null,
16
+ "tax_inclusive": false,
17
+ "tax_id": null,
18
+ "tax_group_id": null,
19
+ "created_at": 1510841630,
20
+ "updated_at": 1510841630
21
+ },
22
+ "notes": {
23
+ "identifier": "plan_monthly_1000"
24
+ },
25
+ "created_at": 1510841630
26
+ }
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "id": "fake_refund_id",
3
+ "entity": "refund",
4
+ "amount": 2000,
5
+ "currency": "INR",
6
+ "payment_id": "pay_FFX5FdEYx8jPwA",
7
+ "created_at": 1500826750
8
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": "fake_payment_id",
3
+ "entity": "payment",
4
+ "amount": 500,
5
+ "currency": "INR",
6
+ "status": "refunded",
7
+ "amount_refunded": 500,
8
+ "refund_status": null,
9
+ "error_code": null,
10
+ "error_description": null,
11
+ "udf": {},
12
+ "created_at": 1400826750,
13
+ "method": "card"
14
+ }
@@ -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,20 @@
1
+ {
2
+ "id": "fake_subscription_id",
3
+ "entity": "subscription",
4
+ "plan_id": "fake_plan_id",
5
+ "customer_id": "fake_customer_id",
6
+ "status": "created",
7
+ "current_start": null,
8
+ "current_end": null,
9
+ "ended_at": null,
10
+ "quantity": 1,
11
+ "notes": [],
12
+ "charge_at": 1509494400,
13
+ "start_at": 1509494400,
14
+ "end_at": 1538332200,
15
+ "auth_attempts": 0,
16
+ "total_count": 12,
17
+ "paid_count": 0,
18
+ "customer_notify": true,
19
+ "created_at": 1509114729
20
+ }
@@ -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
+ }