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.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.editorconfig +12 -0
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/ruby.yml +38 -0
- data/.gitignore +23 -0
- data/.rubocop.yml +22 -0
- data/.simplecov +3 -0
- data/CHANGELOG.md +168 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +102 -0
- data/Rakefile +26 -0
- data/documents/Invoice.md +539 -0
- data/documents/addon.md +191 -0
- data/documents/card.md +610 -0
- data/documents/customer.md +163 -0
- data/documents/emandate.md +492 -0
- data/documents/fund.md +89 -0
- data/documents/items.md +208 -0
- data/documents/order.md +281 -0
- data/documents/papernach.md +738 -0
- data/documents/payment.md +826 -0
- data/documents/paymentLink.md +1063 -0
- data/documents/paymentVerification.md +79 -0
- data/documents/plan.md +184 -0
- data/documents/qrcode.md +439 -0
- data/documents/refund.md +325 -0
- data/documents/registerEmandate.md +452 -0
- data/documents/registerNach.md +653 -0
- data/documents/settlement.md +478 -0
- data/documents/subscriptions.md +752 -0
- data/documents/tokens.md +262 -0
- data/documents/transfers.md +781 -0
- data/documents/upi.md +545 -0
- data/documents/virtualAccount.md +591 -0
- data/lib/ca-bundle.crt +3988 -0
- data/lib/extensions/httparty/hash_conversions.rb +44 -0
- data/lib/razorpay/addon.rb +32 -0
- data/lib/razorpay/card.rb +17 -0
- data/lib/razorpay/collection.rb +6 -0
- data/lib/razorpay/constants.rb +6 -0
- data/lib/razorpay/customer.rb +42 -0
- data/lib/razorpay/entity.rb +46 -0
- data/lib/razorpay/errors/bad_request_error.rb +14 -0
- data/lib/razorpay/errors/gateway_error.rb +7 -0
- data/lib/razorpay/errors/razorpay_error.rb +11 -0
- data/lib/razorpay/errors/server_error.rb +7 -0
- data/lib/razorpay/errors.rb +4 -0
- data/lib/razorpay/fund_account.rb +19 -0
- data/lib/razorpay/invoice.rb +68 -0
- data/lib/razorpay/item.rb +34 -0
- data/lib/razorpay/order.rb +39 -0
- data/lib/razorpay/payment.rb +116 -0
- data/lib/razorpay/payment_link.rb +36 -0
- data/lib/razorpay/payment_method.rb +17 -0
- data/lib/razorpay/plan.rb +24 -0
- data/lib/razorpay/qr_code.rb +34 -0
- data/lib/razorpay/refund.rb +27 -0
- data/lib/razorpay/request.rb +119 -0
- data/lib/razorpay/settlement.rb +39 -0
- data/lib/razorpay/subscription.rb +60 -0
- data/lib/razorpay/subscription_registration.rb +16 -0
- data/lib/razorpay/transfer.rb +35 -0
- data/lib/razorpay/utility.rb +57 -0
- data/lib/razorpay/virtual_account.rb +49 -0
- data/lib/razorpay.rb +37 -0
- data/razorpay-ruby.gemspec +36 -0
- data/test/fixtures/addon_collection.json +60 -0
- data/test/fixtures/bad_request_error.json +7 -0
- data/test/fixtures/cancel_invoice.json +44 -0
- data/test/fixtures/cancel_subscription.json +20 -0
- data/test/fixtures/create_json_payment.json +13 -0
- data/test/fixtures/customer_collection.json +22 -0
- data/test/fixtures/delete_token.json +3 -0
- data/test/fixtures/downtimes_collection.json +21 -0
- data/test/fixtures/empty.json +2 -0
- data/test/fixtures/fake_addon.json +24 -0
- data/test/fixtures/fake_captured_payment.json +13 -0
- data/test/fixtures/fake_card.json +9 -0
- data/test/fixtures/fake_create_upi_payment.json +3 -0
- data/test/fixtures/fake_customer.json +8 -0
- data/test/fixtures/fake_customer_edited.json +8 -0
- data/test/fixtures/fake_direct_transfer.json +32 -0
- data/test/fixtures/fake_downtime.json +14 -0
- data/test/fixtures/fake_fund_account.json +18 -0
- data/test/fixtures/fake_instant_settlement.json +19 -0
- data/test/fixtures/fake_invoice.json +30 -0
- data/test/fixtures/fake_item.json +9 -0
- data/test/fixtures/fake_order.json +10 -0
- data/test/fixtures/fake_order_transfers.json +88 -0
- data/test/fixtures/fake_otp_generate.json +19 -0
- data/test/fixtures/fake_otp_resend.json +7 -0
- data/test/fixtures/fake_otp_submit.json +5 -0
- data/test/fixtures/fake_payment.json +14 -0
- data/test/fixtures/fake_payment_authorized_webhook.json +40 -0
- data/test/fixtures/fake_payment_bank_transfer.json +12 -0
- data/test/fixtures/fake_payment_link.json +40 -0
- data/test/fixtures/fake_pending_update.json +30 -0
- data/test/fixtures/fake_plan.json +26 -0
- data/test/fixtures/fake_qrcode.json +20 -0
- data/test/fixtures/fake_qrcode_close.json +22 -0
- data/test/fixtures/fake_recurring.json +5 -0
- data/test/fixtures/fake_refund.json +8 -0
- data/test/fixtures/fake_refunded_payment.json +14 -0
- data/test/fixtures/fake_settlement.json +11 -0
- data/test/fixtures/fake_settlement_on_demand.json +39 -0
- data/test/fixtures/fake_subscription.json +20 -0
- data/test/fixtures/fake_subscription_pause.json +19 -0
- data/test/fixtures/fake_subscription_registration.json +91 -0
- data/test/fixtures/fake_subscription_resume.json +19 -0
- data/test/fixtures/fake_token.json +31 -0
- data/test/fixtures/fake_transfer.json +18 -0
- data/test/fixtures/fake_transfer_reverse.json +15 -0
- data/test/fixtures/fake_update_payment.json +39 -0
- data/test/fixtures/fake_validate_vpa.json +5 -0
- data/test/fixtures/fake_virtual_account.json +21 -0
- data/test/fixtures/fake_virtual_account_allowed.json +46 -0
- data/test/fixtures/fake_virtual_account_closed.json +21 -0
- data/test/fixtures/fake_virtual_account_collection.json +48 -0
- data/test/fixtures/fake_virtual_account_receiver.json +46 -0
- data/test/fixtures/fund_collection.json +20 -0
- data/test/fixtures/hello_response.json +3 -0
- data/test/fixtures/invoice_collection.json +93 -0
- data/test/fixtures/issue_invoice.json +44 -0
- data/test/fixtures/item_collection.json +24 -0
- data/test/fixtures/order_collection.json +36 -0
- data/test/fixtures/order_payments.json +29 -0
- data/test/fixtures/payment_collection.json +32 -0
- data/test/fixtures/payment_collection_with_one_payment.json +19 -0
- data/test/fixtures/payment_link_collection.json +43 -0
- data/test/fixtures/payment_link_response.json +3 -0
- data/test/fixtures/payment_methods_collection.json +149 -0
- data/test/fixtures/plan_collection.json +32 -0
- data/test/fixtures/qrcode_collection.json +50 -0
- data/test/fixtures/qrcode_payments_collection.json +74 -0
- data/test/fixtures/refund_collection.json +30 -0
- data/test/fixtures/refund_collection_for_payment.json +22 -0
- data/test/fixtures/settlement_collection.json +26 -0
- data/test/fixtures/settlement_instant_collection.json +84 -0
- data/test/fixtures/settlement_report_collection.json +117 -0
- data/test/fixtures/subscription_collection.json +26 -0
- data/test/fixtures/success.json +3 -0
- data/test/fixtures/tokens_collection.json +36 -0
- data/test/fixtures/transfer_settlements_collection.json +38 -0
- data/test/fixtures/transfers_collection.json +41 -0
- data/test/fixtures/update_invoice.json +44 -0
- data/test/fixtures/welcome.json +3 -0
- data/test/razorpay/test_addon.rb +76 -0
- data/test/razorpay/test_card.rb +23 -0
- data/test/razorpay/test_customer.rb +69 -0
- data/test/razorpay/test_entity.rb +55 -0
- data/test/razorpay/test_fund_account.rb +42 -0
- data/test/razorpay/test_invoice.rb +143 -0
- data/test/razorpay/test_item.rb +66 -0
- data/test/razorpay/test_order.rb +71 -0
- data/test/razorpay/test_payment.rb +303 -0
- data/test/razorpay/test_payment_link.rb +83 -0
- data/test/razorpay/test_plan.rb +65 -0
- data/test/razorpay/test_qr_code.rb +63 -0
- data/test/razorpay/test_razorpay.rb +53 -0
- data/test/razorpay/test_refund.rb +56 -0
- data/test/razorpay/test_request.rb +15 -0
- data/test/razorpay/test_settlement.rb +76 -0
- data/test/razorpay/test_subscription.rb +190 -0
- data/test/razorpay/test_subscription_registration.rb +58 -0
- data/test/razorpay/test_transfer.rb +77 -0
- data/test/razorpay/test_utility.rb +84 -0
- data/test/razorpay/test_virtual_account.rb +135 -0
- data/test/test_helper.rb +54 -0
- metadata +400 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"count": 2,
|
3
|
+
"entity": "collection",
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "pay_29QQoUBi66xm2f",
|
7
|
+
"entity": "payment",
|
8
|
+
"amount": 500,
|
9
|
+
"currency": "INR",
|
10
|
+
"status": "created",
|
11
|
+
"amount_refunded": 0,
|
12
|
+
"refund_status": null,
|
13
|
+
"error_code": null,
|
14
|
+
"error_description": null,
|
15
|
+
"udf": {},
|
16
|
+
"created_at": 1400826750
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"id": "pay_19btGlBig6xZ2f",
|
20
|
+
"entity": "payment",
|
21
|
+
"amount": 500,
|
22
|
+
"currency": "INR",
|
23
|
+
"status": "created",
|
24
|
+
"amount_refunded": 0,
|
25
|
+
"refund_status": null,
|
26
|
+
"error_code": null,
|
27
|
+
"error_description": null,
|
28
|
+
"udf": {},
|
29
|
+
"created_at": 1400826750
|
30
|
+
}
|
31
|
+
]
|
32
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"count": 1,
|
3
|
+
"entity": "collection",
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "pay_29QQoUBi66xm2f",
|
7
|
+
"entity": "payment",
|
8
|
+
"amount": 500,
|
9
|
+
"currency": "INR",
|
10
|
+
"status": "created",
|
11
|
+
"amount_refunded": 0,
|
12
|
+
"refund_status": null,
|
13
|
+
"error_code": null,
|
14
|
+
"error_description": null,
|
15
|
+
"udf": {},
|
16
|
+
"created_at": 1400826750
|
17
|
+
}
|
18
|
+
]
|
19
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 3,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"accept_partial": false,
|
7
|
+
"entity": "payment_link",
|
8
|
+
"amount": 100,
|
9
|
+
"amount_paid": 0,
|
10
|
+
"cancelled_at": 0,
|
11
|
+
"created_at": 1602523443,
|
12
|
+
"currency": "INR",
|
13
|
+
"customer": {
|
14
|
+
"contact": "9999999999",
|
15
|
+
"email": "gaurav.kumar@razorpay.com",
|
16
|
+
"name": "Gaurav Kumar"
|
17
|
+
},
|
18
|
+
"description": "Payment for policy no #23456",
|
19
|
+
"expire_by": 0,
|
20
|
+
"expired_at": 0,
|
21
|
+
"first_min_partial_amount": 0,
|
22
|
+
"id": "plink_Fo4T7Ht271epg3",
|
23
|
+
"notes": {
|
24
|
+
"policy_name": "Jeevan Bima"
|
25
|
+
},
|
26
|
+
"notify": {
|
27
|
+
"email": false,
|
28
|
+
"sms": true
|
29
|
+
},
|
30
|
+
"payments": [],
|
31
|
+
"reference_id": "#41956",
|
32
|
+
"reminder_enable": true,
|
33
|
+
"reminders": {
|
34
|
+
"status": "in_progress"
|
35
|
+
},
|
36
|
+
"short_url": "https://rzp.io/i/LXnmFr3a",
|
37
|
+
"status": "created",
|
38
|
+
"updated_at": 1602523443,
|
39
|
+
"upi_link": true,
|
40
|
+
"user_id": ""
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}
|
@@ -0,0 +1,149 @@
|
|
1
|
+
{
|
2
|
+
"entity": "methods",
|
3
|
+
"card": true,
|
4
|
+
"debit_card": true,
|
5
|
+
"credit_card": true,
|
6
|
+
"prepaid_card": true,
|
7
|
+
"card_networks": {
|
8
|
+
"AMEX": 0,
|
9
|
+
"DICL": 0,
|
10
|
+
"MC": 1,
|
11
|
+
"MAES": 1,
|
12
|
+
"VISA": 1,
|
13
|
+
"JCB": 0,
|
14
|
+
"RUPAY": 1,
|
15
|
+
"BAJAJ": 0
|
16
|
+
},
|
17
|
+
"card_subtype": {
|
18
|
+
"consumer": 1,
|
19
|
+
"business": 1,
|
20
|
+
"premium": 0
|
21
|
+
},
|
22
|
+
"amex": false,
|
23
|
+
"netbanking": {
|
24
|
+
"AUBL": "AU Small Finance Bank",
|
25
|
+
"AIRP": "Airtel Payments Bank",
|
26
|
+
"ANDB": "Andhra Bank",
|
27
|
+
"UTIB": "Axis Bank",
|
28
|
+
"BARB_R": "Bank of Baroda - Retail Banking",
|
29
|
+
"VIJB": "Bank of Baroda - Retail Banking (Erstwhile Vijaya Bank)",
|
30
|
+
"MAHB": "Bank of Maharashtra",
|
31
|
+
"CNRB": "Canara Bank",
|
32
|
+
"CSBK": "Catholic Syrian Bank",
|
33
|
+
"CBIN": "Central Bank of India",
|
34
|
+
"DCBL": "DCB Bank",
|
35
|
+
"DEUT": "Deutsche Bank",
|
36
|
+
"DLXB": "Dhanlaxmi Bank",
|
37
|
+
"ESFB": "Equitas Small Finance Bank",
|
38
|
+
"FSFB": "Fincare Small Finance Bank",
|
39
|
+
"ICIC": "ICICI Bank",
|
40
|
+
"IBKL": "IDBI",
|
41
|
+
"IDFB": "IDFC FIRST Bank",
|
42
|
+
"IDIB": "Indian Bank",
|
43
|
+
"ALLA": "Indian Bank (Erstwhile Allahabad Bank)",
|
44
|
+
"IOBA": "Indian Overseas Bank",
|
45
|
+
"INDB": "Indusind Bank",
|
46
|
+
"JAKA": "Jammu and Kashmir Bank",
|
47
|
+
"JSFB": "Jana Small Finance Bank",
|
48
|
+
"KARB": "Karnataka Bank",
|
49
|
+
"KVBL": "Karur Vysya Bank",
|
50
|
+
"KKBK": "Kotak Mahindra Bank",
|
51
|
+
"LAVB_R": "Lakshmi Vilas Bank - Retail Banking",
|
52
|
+
"NSPB": "NSDL Payments Bank",
|
53
|
+
"ORBC": "PNB (Erstwhile-Oriental Bank of Commerce)",
|
54
|
+
"UTBI": "PNB (Erstwhile-United Bank of India)",
|
55
|
+
"PSIB": "Punjab & Sind Bank",
|
56
|
+
"PUNB_R": "Punjab National Bank - Retail Banking",
|
57
|
+
"RATN": "RBL Bank",
|
58
|
+
"SVCB": "SVC Co-Operative Bank Ltd.",
|
59
|
+
"SRCB": "Saraswat Co-operative Bank",
|
60
|
+
"SIBL": "South Indian Bank",
|
61
|
+
"SCBL": "Standard Chartered Bank",
|
62
|
+
"SBBJ": "State Bank of Bikaner and Jaipur",
|
63
|
+
"SBHY": "State Bank of Hyderabad",
|
64
|
+
"SBIN": "State Bank of India",
|
65
|
+
"SBMY": "State Bank of Mysore",
|
66
|
+
"STBP": "State Bank of Patiala",
|
67
|
+
"SBTR": "State Bank of Travancore",
|
68
|
+
"TMBL": "Tamilnad Mercantile Bank",
|
69
|
+
"UCBA": "UCO Bank",
|
70
|
+
"UBIN": "Union Bank of India",
|
71
|
+
"CORP": "Union Bank of India (Erstwhile Corporation Bank)",
|
72
|
+
"YESB": "Yes Bank"
|
73
|
+
},
|
74
|
+
"wallet": {
|
75
|
+
"mobikwik": true,
|
76
|
+
"payzapp": true,
|
77
|
+
"olamoney": true,
|
78
|
+
"airtelmoney": true,
|
79
|
+
"freecharge": true,
|
80
|
+
"jiomoney": true
|
81
|
+
},
|
82
|
+
"emi": false,
|
83
|
+
"upi": true,
|
84
|
+
"cardless_emi": [],
|
85
|
+
"paylater": {
|
86
|
+
"epaylater": true,
|
87
|
+
"getsimpl": true,
|
88
|
+
"icic": true,
|
89
|
+
"hdfc": true,
|
90
|
+
"kkbk": true,
|
91
|
+
"lazypay": true
|
92
|
+
},
|
93
|
+
"google_pay_cards": false,
|
94
|
+
"app": {
|
95
|
+
"cred": 0,
|
96
|
+
"twid": 0,
|
97
|
+
"trustly": 0,
|
98
|
+
"poli": 0,
|
99
|
+
"sofort": 0,
|
100
|
+
"giropay": 0
|
101
|
+
},
|
102
|
+
"gpay": false,
|
103
|
+
"emi_types": {
|
104
|
+
"credit": false,
|
105
|
+
"debit": false
|
106
|
+
},
|
107
|
+
"debit_emi_providers": {
|
108
|
+
"HDFC": 0
|
109
|
+
},
|
110
|
+
"nach": false,
|
111
|
+
"cod": false,
|
112
|
+
"offline": false,
|
113
|
+
"recurring": {
|
114
|
+
"card": {
|
115
|
+
"credit": [
|
116
|
+
"MasterCard",
|
117
|
+
"Visa"
|
118
|
+
],
|
119
|
+
"prepaid": [
|
120
|
+
"MasterCard",
|
121
|
+
"Visa"
|
122
|
+
],
|
123
|
+
"debit": {
|
124
|
+
"UTIB": "Axis Bank",
|
125
|
+
"BARB": "Bank of Baroda",
|
126
|
+
"MAHB": "Bank of Maharashtra",
|
127
|
+
"CITI": "CITI Bank",
|
128
|
+
"CNRB": "Canara Bank",
|
129
|
+
"CIUB": "City Union Bank",
|
130
|
+
"ESFB": "Equitas Small Finance Bank",
|
131
|
+
"FDRL": "Federal Bank",
|
132
|
+
"HDFC": "HDFC Bank",
|
133
|
+
"HSBC": "HSBC",
|
134
|
+
"ICIC": "ICICI Bank",
|
135
|
+
"IDIB": "Indian Bank",
|
136
|
+
"ALLA": "Indian Bank (Erstwhile Allahabad Bank)",
|
137
|
+
"IOBA": "Indian Overseas Bank",
|
138
|
+
"INDB": "Indusind Bank",
|
139
|
+
"KVBL": "Karur Vysya Bank",
|
140
|
+
"KKBK": "Kotak Mahindra Bank",
|
141
|
+
"RATN": "RBL Bank",
|
142
|
+
"SBIN": "State Bank of India"
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"upi": true,
|
146
|
+
"nach": false
|
147
|
+
},
|
148
|
+
"upi_intent": true
|
149
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 1,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "plan_92ARNuOYid1CoJ",
|
7
|
+
"entity": "plan",
|
8
|
+
"interval": 1,
|
9
|
+
"period": "monthly",
|
10
|
+
"item": {
|
11
|
+
"id": "item_92ARNuCnESXZkj",
|
12
|
+
"active": true,
|
13
|
+
"name": "Plan 751..1000",
|
14
|
+
"description": "Share docs + user mgmt",
|
15
|
+
"amount": 2500000,
|
16
|
+
"unit_amount": 2500000,
|
17
|
+
"currency": "INR",
|
18
|
+
"type": "plan",
|
19
|
+
"unit": null,
|
20
|
+
"tax_inclusive": false,
|
21
|
+
"tax_id": null,
|
22
|
+
"tax_group_id": null,
|
23
|
+
"created_at": 1510841630,
|
24
|
+
"updated_at": 1510841630
|
25
|
+
},
|
26
|
+
"notes": {
|
27
|
+
"identifier": "plan_monthly_1000"
|
28
|
+
},
|
29
|
+
"created_at": 1510841630
|
30
|
+
}
|
31
|
+
]
|
32
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 2,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "qr_HO2jGkWReVBMNu",
|
7
|
+
"entity": "qr_code",
|
8
|
+
"created_at": 1623914648,
|
9
|
+
"name": "Store_1",
|
10
|
+
"usage": "single_use",
|
11
|
+
"type": "upi_qr",
|
12
|
+
"image_url": "https://rzp.io/i/w2CEwYmkAu",
|
13
|
+
"payment_amount": 300,
|
14
|
+
"status": "active",
|
15
|
+
"description": "For Store 1",
|
16
|
+
"fixed_amount": true,
|
17
|
+
"payments_amount_received": 0,
|
18
|
+
"payments_count_received": 0,
|
19
|
+
"notes": {
|
20
|
+
"purpose": "Test UPI QR code notes"
|
21
|
+
},
|
22
|
+
"customer_id": "cust_HKsR5se84c5LTO",
|
23
|
+
"close_by": 1681615838,
|
24
|
+
"closed_at": null,
|
25
|
+
"close_reason": null
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"id": "qr_HO2e0813YlchUn",
|
29
|
+
"entity": "qr_code",
|
30
|
+
"created_at": 1623914349,
|
31
|
+
"name": "Acme Groceries",
|
32
|
+
"usage": "multiple_use",
|
33
|
+
"type": "upi_qr",
|
34
|
+
"image_url": "https://rzp.io/i/X6QM7LL",
|
35
|
+
"payment_amount": null,
|
36
|
+
"status": "closed",
|
37
|
+
"description": "Buy fresh groceries",
|
38
|
+
"fixed_amount": false,
|
39
|
+
"payments_amount_received": 200,
|
40
|
+
"payments_count_received": 1,
|
41
|
+
"notes": {
|
42
|
+
"Branch": "Bangalore - Rajaji Nagar"
|
43
|
+
},
|
44
|
+
"customer_id": "cust_HKsR5se84c5LTO",
|
45
|
+
"close_by": 1625077799,
|
46
|
+
"closed_at": 1623914515,
|
47
|
+
"close_reason": "on_demand"
|
48
|
+
}
|
49
|
+
]
|
50
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 2,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "pay_HMtDKn3TnF4D8x",
|
7
|
+
"entity": "payment",
|
8
|
+
"amount": 500,
|
9
|
+
"currency": "INR",
|
10
|
+
"status": "captured",
|
11
|
+
"order_id": null,
|
12
|
+
"invoice_id": null,
|
13
|
+
"international": false,
|
14
|
+
"method": "upi",
|
15
|
+
"amount_refunded": 0,
|
16
|
+
"refund_status": null,
|
17
|
+
"captured": true,
|
18
|
+
"description": "QRv2 Payment",
|
19
|
+
"card_id": null,
|
20
|
+
"bank": null,
|
21
|
+
"wallet": null,
|
22
|
+
"vpa": "gauri.kumari@okhdfcbank",
|
23
|
+
"email": "gauri.kumari@example.com",
|
24
|
+
"contact": "+919999999999",
|
25
|
+
"customer_id": "cust_HKsR5se84c5LTO",
|
26
|
+
"notes": [],
|
27
|
+
"fee": 0,
|
28
|
+
"tax": 0,
|
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": "116514257019"
|
36
|
+
},
|
37
|
+
"created_at": 1623662800
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"id": "pay_HMsr242ZnaLumA",
|
41
|
+
"entity": "payment",
|
42
|
+
"amount": 1000,
|
43
|
+
"currency": "INR",
|
44
|
+
"status": "refunded",
|
45
|
+
"order_id": null,
|
46
|
+
"invoice_id": null,
|
47
|
+
"international": false,
|
48
|
+
"method": "upi",
|
49
|
+
"amount_refunded": 1000,
|
50
|
+
"refund_status": "full",
|
51
|
+
"captured": true,
|
52
|
+
"description": "QRv2 Payment",
|
53
|
+
"card_id": null,
|
54
|
+
"bank": null,
|
55
|
+
"wallet": null,
|
56
|
+
"vpa": "gauri.kumari@okhdfcbank",
|
57
|
+
"email": "gauri.kumari@example.com",
|
58
|
+
"contact": "+919999999999",
|
59
|
+
"customer_id": "cust_HKsR5se84c5LTO",
|
60
|
+
"notes": [],
|
61
|
+
"fee": 0,
|
62
|
+
"tax": 0,
|
63
|
+
"error_code": null,
|
64
|
+
"error_description": null,
|
65
|
+
"error_source": null,
|
66
|
+
"error_step": null,
|
67
|
+
"error_reason": null,
|
68
|
+
"acquirer_data": {
|
69
|
+
"rrn": "116514090501"
|
70
|
+
},
|
71
|
+
"created_at": 1623661533
|
72
|
+
}
|
73
|
+
]
|
74
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"count": 3,
|
3
|
+
"entity": "collection",
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "rfnd_AABBdHIieexn5c",
|
7
|
+
"entity": "refund",
|
8
|
+
"amount": 100,
|
9
|
+
"currency": "INR",
|
10
|
+
"payment_id": "fake_payment_id",
|
11
|
+
"created_at": 1500826750
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"id": "rfnd_19btGlBig6xZ2f",
|
15
|
+
"entity": "refund",
|
16
|
+
"amount": 100,
|
17
|
+
"currency": "INR",
|
18
|
+
"payment_id": "fake_payment_id",
|
19
|
+
"created_at": 1500826750
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"id": "rfnd_6vRZmJu7EPEMY0",
|
23
|
+
"entity": "refund",
|
24
|
+
"amount": 200,
|
25
|
+
"currency": "INR",
|
26
|
+
"payment_id": "fake_payment_id_2",
|
27
|
+
"created_at": 1500826750
|
28
|
+
}
|
29
|
+
]
|
30
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"count": 2,
|
3
|
+
"entity": "collection",
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "rfnd_AABBdHIieexn5c",
|
7
|
+
"entity": "refund",
|
8
|
+
"amount": 100,
|
9
|
+
"currency": "INR",
|
10
|
+
"payment_id": "fake_payment_id",
|
11
|
+
"created_at": 1500826750
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"id": "rfnd_19btGlBig6xZ2f",
|
15
|
+
"entity": "refund",
|
16
|
+
"amount": 100,
|
17
|
+
"currency": "INR",
|
18
|
+
"payment_id": "fake_payment_id",
|
19
|
+
"created_at": 1500826750
|
20
|
+
}
|
21
|
+
]
|
22
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 2,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "setl_DGlQ1Rj8os78Ec",
|
7
|
+
"entity": "settlement",
|
8
|
+
"amount": 9973635,
|
9
|
+
"status": "processed",
|
10
|
+
"fees": 471699,
|
11
|
+
"tax": 42070,
|
12
|
+
"utr": "1568176960vxp0rj",
|
13
|
+
"created_at": 1568176960
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"id": "setl_4xbSwsPABDJ8oK",
|
17
|
+
"entity": "settlement",
|
18
|
+
"amount": 50000,
|
19
|
+
"status": "processed",
|
20
|
+
"fees": 123,
|
21
|
+
"tax": 12,
|
22
|
+
"utr": "RZRP173069230702",
|
23
|
+
"created_at": 1509622306
|
24
|
+
}
|
25
|
+
]
|
26
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 2,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "setlod_FNj7g2YS5J67Rz",
|
7
|
+
"entity": "settlement.ondemand",
|
8
|
+
"amount_requested": 200000,
|
9
|
+
"amount_settled": 199410,
|
10
|
+
"amount_pending": 0,
|
11
|
+
"amount_reversed": 0,
|
12
|
+
"fees": 590,
|
13
|
+
"tax": 90,
|
14
|
+
"currency": "INR",
|
15
|
+
"settle_full_balance": false,
|
16
|
+
"status": "processed",
|
17
|
+
"description": "Need this to make vendor payments.",
|
18
|
+
"notes": {
|
19
|
+
"notes_key_1": "Tea, Earl Grey, Hot",
|
20
|
+
"notes_key_2": "Tea, Earl Grey… decaf."
|
21
|
+
},
|
22
|
+
"created_at": 1596771429,
|
23
|
+
"ondemand_payouts": {
|
24
|
+
"entity": "collection",
|
25
|
+
"count": 1,
|
26
|
+
"items": [
|
27
|
+
{
|
28
|
+
"id": "setlodp_FNj7g2cbvw8ueO",
|
29
|
+
"entity": "settlement.ondemand_payout",
|
30
|
+
"initiated_at": 1596771430,
|
31
|
+
"processed_at": 1596778752,
|
32
|
+
"reversed_at": null,
|
33
|
+
"amount": 200000,
|
34
|
+
"amount_settled": 199410,
|
35
|
+
"fees": 590,
|
36
|
+
"tax": 90,
|
37
|
+
"utr": "022011173948",
|
38
|
+
"status": "processed",
|
39
|
+
"created_at": 1596771429
|
40
|
+
}
|
41
|
+
]
|
42
|
+
}
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"id": "setlod_FJOp0jOWlalIvt",
|
46
|
+
"entity": "settlement.ondemand",
|
47
|
+
"amount_requested": 300000,
|
48
|
+
"amount_settled": 299114,
|
49
|
+
"amount_pending": 0,
|
50
|
+
"amount_reversed": 0,
|
51
|
+
"fees": 886,
|
52
|
+
"tax": 136,
|
53
|
+
"currency": "INR",
|
54
|
+
"settle_full_balance": false,
|
55
|
+
"status": "processed",
|
56
|
+
"description": "Need this to buy stock.",
|
57
|
+
"notes": {
|
58
|
+
"notes_key_1": "Tea, Earl Grey, Hot",
|
59
|
+
"notes_key_2": "Tea, Earl Grey… decaf."
|
60
|
+
},
|
61
|
+
"created_at": 1595826576,
|
62
|
+
"ondemand_payouts": {
|
63
|
+
"entity": "collection",
|
64
|
+
"count": 1,
|
65
|
+
"items": [
|
66
|
+
{
|
67
|
+
"id": "setlodp_FJOp0jTqoZdGen",
|
68
|
+
"entity": "settlement.ondemand_payout",
|
69
|
+
"initiated_at": 1595826577,
|
70
|
+
"processed_at": 1595826588,
|
71
|
+
"reversed_at": null,
|
72
|
+
"amount": 300000,
|
73
|
+
"amount_settled": 299114,
|
74
|
+
"fees": 886,
|
75
|
+
"tax": 136,
|
76
|
+
"utr": "020910199316",
|
77
|
+
"status": "processed",
|
78
|
+
"created_at": 1595826576
|
79
|
+
}
|
80
|
+
]
|
81
|
+
}
|
82
|
+
}
|
83
|
+
]
|
84
|
+
}
|