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,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,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,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,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,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,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
|
+
}
|