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,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,21 @@
|
|
1
|
+
{
|
2
|
+
"id": "va_4xbQrmEoA5WJ0G",
|
3
|
+
"entity": "virtual_account",
|
4
|
+
"description": "First Virtual Account",
|
5
|
+
"customer_id": "cust_805c8oBQdBGPwS",
|
6
|
+
"status": "active",
|
7
|
+
"amount_paid": 0,
|
8
|
+
"notes": {
|
9
|
+
"reference_key": "reference_value"
|
10
|
+
},
|
11
|
+
"receivers": [
|
12
|
+
{
|
13
|
+
"id": "ba_4lsdkfldlteskf",
|
14
|
+
"entity": "bank_account",
|
15
|
+
"name": "Merchant Billing Label",
|
16
|
+
"account_number": "RAZORPAY9876543210",
|
17
|
+
"ifsc": "RZPB0000001"
|
18
|
+
}
|
19
|
+
],
|
20
|
+
"created_at": 1455696638
|
21
|
+
}
|
@@ -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,21 @@
|
|
1
|
+
{
|
2
|
+
"id": "va_4xbQrmEoA5WJ0G",
|
3
|
+
"entity": "virtual_account",
|
4
|
+
"description": "First Virtual Account",
|
5
|
+
"customer_id": "cust_805c8oBQdBGPwS",
|
6
|
+
"status": "closed",
|
7
|
+
"amount_paid": 900,
|
8
|
+
"notes": {
|
9
|
+
"reference_key": "reference_value"
|
10
|
+
},
|
11
|
+
"receivers": [
|
12
|
+
{
|
13
|
+
"id": "ba_4lsdkfldlteskf",
|
14
|
+
"entity": "bank_account",
|
15
|
+
"name": "Merchant Billing Label",
|
16
|
+
"account_number": "RAZORPAY9876543210",
|
17
|
+
"ifsc": "RZPB0000001"
|
18
|
+
}
|
19
|
+
],
|
20
|
+
"created_at": 1455696638
|
21
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 2,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "va_84lyVss1CRZ6eM",
|
7
|
+
"entity": "virtual_account",
|
8
|
+
"name": "Merchant Billing Label",
|
9
|
+
"description": "Second Virtual Account",
|
10
|
+
"status": "active",
|
11
|
+
"amount_paid": 1200,
|
12
|
+
"notes": [],
|
13
|
+
"customer_id": null,
|
14
|
+
"receivers": [
|
15
|
+
{
|
16
|
+
"id": "ba_87txVas2oSzzvx",
|
17
|
+
"entity": "bank_account",
|
18
|
+
"name": "Merchant Billing Label",
|
19
|
+
"account_number": "RAZORPAY9KWHB7BL92",
|
20
|
+
"ifsc": "RZPB0000001"
|
21
|
+
}
|
22
|
+
],
|
23
|
+
"created_at": 1497873405
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"id": "va_4xbQrmEoA5WJ0G",
|
27
|
+
"entity": "virtual_account",
|
28
|
+
"name": "Merchant Billing Label",
|
29
|
+
"description": "First Virtual Account",
|
30
|
+
"status": "active",
|
31
|
+
"amount_paid": 900,
|
32
|
+
"notes": {
|
33
|
+
"reference_key": "reference_value"
|
34
|
+
},
|
35
|
+
"receivers": [
|
36
|
+
{
|
37
|
+
"id": "ba_4lsdkfldlteskf",
|
38
|
+
"entity": "bank_account",
|
39
|
+
"name": "Merchant Billing Label",
|
40
|
+
"account_number": "RAZORPAY9876543210",
|
41
|
+
"ifsc": "RZPB0000001"
|
42
|
+
}
|
43
|
+
],
|
44
|
+
"customer_id": "cust_805c8oBQdBGPwS",
|
45
|
+
"created_at": 1497922042
|
46
|
+
}
|
47
|
+
]
|
48
|
+
}
|
@@ -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
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 3,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "inv_6vRZmJYFAG1mNq",
|
7
|
+
"entity": "invoice",
|
8
|
+
"receipt": null,
|
9
|
+
"customer_id": "cust_6vRXClWqnLhV14",
|
10
|
+
"customer_details": {
|
11
|
+
"customer_name": null,
|
12
|
+
"customer_email": "test@razorpay.com",
|
13
|
+
"customer_contact": "9876543210",
|
14
|
+
"customer_address": null
|
15
|
+
},
|
16
|
+
"order_id": "order_6vRZmJu7EPEMY0",
|
17
|
+
"line_items": [],
|
18
|
+
"payment_id": null,
|
19
|
+
"status": "issued",
|
20
|
+
"issued_at": 1482299421,
|
21
|
+
"paid_at": null,
|
22
|
+
"sms_status": "sent",
|
23
|
+
"email_status": "sent",
|
24
|
+
"date": 1482299421,
|
25
|
+
"amount": 100,
|
26
|
+
"description": "Test description",
|
27
|
+
"notes": [],
|
28
|
+
"currency": "INR",
|
29
|
+
"short_url": "http://bit.ly/2i8kSqu",
|
30
|
+
"view_less": true,
|
31
|
+
"type": "link",
|
32
|
+
"created_at": 1482299422
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"id": "inv_6vRaHV8UDx58xy",
|
36
|
+
"entity": "invoice",
|
37
|
+
"receipt": null,
|
38
|
+
"customer_id": "cust_6vRXClWqnLhV14",
|
39
|
+
"customer_details": {
|
40
|
+
"customer_name": null,
|
41
|
+
"customer_email": "test@razorpay.com",
|
42
|
+
"customer_contact": "9876543210",
|
43
|
+
"customer_address": null
|
44
|
+
},
|
45
|
+
"order_id": "order_6vRaHVgZ1D3ESr",
|
46
|
+
"line_items": [],
|
47
|
+
"payment_id": null,
|
48
|
+
"status": "issued",
|
49
|
+
"issued_at": 1482299449,
|
50
|
+
"paid_at": null,
|
51
|
+
"sms_status": "sent",
|
52
|
+
"email_status": "sent",
|
53
|
+
"date": 1482299449,
|
54
|
+
"amount": 100,
|
55
|
+
"description": "Test description",
|
56
|
+
"notes": [],
|
57
|
+
"currency": "INR",
|
58
|
+
"short_url": "http://bit.ly/2h0nLV7",
|
59
|
+
"view_less": true,
|
60
|
+
"type": "link",
|
61
|
+
"created_at": 1482299450
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"id": "inv_6vRaaIQ6I3vO53",
|
65
|
+
"entity": "invoice",
|
66
|
+
"receipt": null,
|
67
|
+
"customer_id": "cust_6vRXClWqnLhV14",
|
68
|
+
"customer_details": {
|
69
|
+
"customer_name": null,
|
70
|
+
"customer_email": "test@razorpay.com",
|
71
|
+
"customer_contact": "9876543210",
|
72
|
+
"customer_address": null
|
73
|
+
},
|
74
|
+
"order_id": "order_6vRaaInhKbWFUB",
|
75
|
+
"line_items": [],
|
76
|
+
"payment_id": null,
|
77
|
+
"status": "issued",
|
78
|
+
"issued_at": 1482299466,
|
79
|
+
"paid_at": null,
|
80
|
+
"sms_status": "sent",
|
81
|
+
"email_status": "sent",
|
82
|
+
"date": 1482299466,
|
83
|
+
"amount": 100,
|
84
|
+
"description": "Test description",
|
85
|
+
"notes": [],
|
86
|
+
"currency": "INR",
|
87
|
+
"short_url": "http://bit.ly/2h0jYHp",
|
88
|
+
"view_less": true,
|
89
|
+
"type": "link",
|
90
|
+
"created_at": 1482299468
|
91
|
+
}
|
92
|
+
]
|
93
|
+
}
|
@@ -0,0 +1,44 @@
|
|
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
|
+
"expire_by": null,
|
17
|
+
"status": "issued",
|
18
|
+
"issued_at": 1482299421,
|
19
|
+
"paid_at": null,
|
20
|
+
"cancelled_at": null,
|
21
|
+
"expired_at": null,
|
22
|
+
"sms_status": "sent",
|
23
|
+
"email_status": "sent",
|
24
|
+
"date": 1482299421,
|
25
|
+
"partial_payment": false,
|
26
|
+
"terms": null,
|
27
|
+
"gross_amount": 100,
|
28
|
+
"tax_amount": 0,
|
29
|
+
"amount": 100,
|
30
|
+
"amount_paid": 100,
|
31
|
+
"amount_due": 0,
|
32
|
+
"description": "Test description",
|
33
|
+
"notes": [],
|
34
|
+
"currency": "INR",
|
35
|
+
"short_url": "http://bit.ly/2i8kSqu",
|
36
|
+
"comment": null,
|
37
|
+
"view_less": true,
|
38
|
+
"type": "invoice",
|
39
|
+
"billing_start": null,
|
40
|
+
"billing_end": null,
|
41
|
+
"group_taxes_amounts": false,
|
42
|
+
"user_id": "fake_user_id",
|
43
|
+
"created_at": 1482299422
|
44
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 1,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "item_J7lZCyxMVeEtYB",
|
7
|
+
"active": true,
|
8
|
+
"name": "Test item",
|
9
|
+
"description": null,
|
10
|
+
"amount": 1000,
|
11
|
+
"unit_amount": 1000,
|
12
|
+
"currency": "INR",
|
13
|
+
"type": "invoice",
|
14
|
+
"unit": null,
|
15
|
+
"tax_inclusive": false,
|
16
|
+
"hsn_code": null,
|
17
|
+
"sac_code": null,
|
18
|
+
"tax_rate": null,
|
19
|
+
"tax_id": null,
|
20
|
+
"tax_group_id": null,
|
21
|
+
"created_at": 1647434940
|
22
|
+
}
|
23
|
+
]
|
24
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 3,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "order_50snfRNtuFmFBZ",
|
7
|
+
"entity": "order",
|
8
|
+
"amount": 5000,
|
9
|
+
"currency": "INR",
|
10
|
+
"receipt": "TEST",
|
11
|
+
"status": "created",
|
12
|
+
"attempts": 0,
|
13
|
+
"created_at": 1456412821
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"id": "order_50snJlH2AMYOYK",
|
17
|
+
"entity": "order",
|
18
|
+
"amount": 5000,
|
19
|
+
"currency": "INR",
|
20
|
+
"receipt": "TEST",
|
21
|
+
"status": "created",
|
22
|
+
"attempts": 0,
|
23
|
+
"created_at": 1456412801
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"id": "order_50smJrkZ4Qb0HJ",
|
27
|
+
"entity": "order",
|
28
|
+
"amount": 5000,
|
29
|
+
"currency": "INR",
|
30
|
+
"receipt": "TEST",
|
31
|
+
"status": "created",
|
32
|
+
"attempts": 0,
|
33
|
+
"created_at": 1456412744
|
34
|
+
}
|
35
|
+
]
|
36
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"entity": "collection",
|
3
|
+
"count": 1,
|
4
|
+
"items": [
|
5
|
+
{
|
6
|
+
"id": "pay_50sbkZA9AcyE5a",
|
7
|
+
"entity": "payment",
|
8
|
+
"amount": 5000,
|
9
|
+
"currency": "INR",
|
10
|
+
"status": "authorized",
|
11
|
+
"method": "card",
|
12
|
+
"emi_plan_id": null,
|
13
|
+
"amount_refunded": 0,
|
14
|
+
"refund_status": null,
|
15
|
+
"captured": false,
|
16
|
+
"description": null,
|
17
|
+
"email": "test@razorpay.com",
|
18
|
+
"contact": "1234567890",
|
19
|
+
"notes": {
|
20
|
+
"order_id": "3453"
|
21
|
+
},
|
22
|
+
"fee": 0,
|
23
|
+
"service_tax": 0,
|
24
|
+
"error_code": null,
|
25
|
+
"error_description": null,
|
26
|
+
"created_at": 1456412144
|
27
|
+
}
|
28
|
+
]
|
29
|
+
}
|