razorpay 3.0.0 → 3.1.0
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 +4 -4
- data/.github/pull_request_template.md +8 -0
- data/.github/workflows/ci.yml +79 -0
- data/CHANGELOG.md +21 -0
- data/README.md +5 -1
- data/documents/Invoice.md +11 -3
- data/documents/account.md +449 -0
- data/documents/addon.md +23 -1
- data/documents/card.md +73 -29
- data/documents/customer.md +2 -0
- data/documents/emandate.md +20 -12
- data/documents/fund.md +19 -17
- data/documents/items.md +65 -41
- data/documents/order.md +51 -0
- data/documents/papernach.md +40 -20
- data/documents/payment.md +247 -14
- data/documents/paymentLink.md +37 -19
- data/documents/plan.md +3 -3
- data/documents/productConfiguration.md +444 -0
- data/documents/qrcode.md +17 -19
- data/documents/refund.md +11 -10
- data/documents/registerEmandate.md +25 -18
- data/documents/registerNach.md +49 -57
- data/documents/settlement.md +1 -0
- data/documents/stakeholder.md +334 -0
- data/documents/subscriptions.md +3 -1
- data/documents/tokens.md +201 -2
- data/documents/transfers.md +292 -195
- data/documents/upi.md +25 -28
- data/documents/virtualAccount.md +18 -13
- data/documents/webhook.md +224 -0
- data/lib/razorpay/account.rb +39 -0
- data/lib/razorpay/addon.rb +5 -1
- data/lib/razorpay/card.rb +4 -0
- data/lib/razorpay/constants.rb +2 -2
- data/lib/razorpay/iin.rb +15 -0
- data/lib/razorpay/order.rb +1 -1
- data/lib/razorpay/payment.rb +8 -0
- data/lib/razorpay/payment_method.rb +17 -0
- data/lib/razorpay/product.rb +37 -0
- data/lib/razorpay/request.rb +16 -16
- data/lib/razorpay/stakeholder.rb +39 -0
- data/lib/razorpay/token.rb +28 -0
- data/lib/razorpay/virtual_account.rb +1 -1
- data/lib/razorpay/webhook.rb +50 -0
- data/lib/razorpay.rb +7 -0
- data/razorpay-ruby.gemspec +2 -1
- data/test/fixtures/fake_account.json +78 -0
- data/test/fixtures/fake_card_reference.json +5 -0
- data/test/fixtures/fake_create_upi_payment.json +3 -0
- data/test/fixtures/fake_iin_token.json +23 -0
- data/test/fixtures/fake_product.json +138 -0
- data/test/fixtures/fake_stakeholder.json +29 -0
- data/test/fixtures/fake_tokenise_customer.json +40 -0
- data/test/fixtures/fake_validate_vpa.json +5 -0
- data/test/fixtures/fake_webhook.json +79 -0
- data/test/fixtures/fake_webhook_by_account_id.json +22 -0
- data/test/fixtures/fetch_tnc.json +11 -0
- data/test/fixtures/payment_methods_collection.json +149 -0
- data/test/fixtures/stakeholder_collection.json +35 -0
- data/test/fixtures/webhook_by_account_collection.json +35 -0
- data/test/fixtures/webhook_collection.json +85 -0
- data/test/razorpay/test_account.rb +134 -0
- data/test/razorpay/test_addon.rb +6 -2
- data/test/razorpay/test_card.rb +6 -0
- data/test/razorpay/test_customer.rb +8 -8
- data/test/razorpay/test_iin.rb +23 -0
- data/test/razorpay/test_order.rb +1 -1
- data/test/razorpay/test_payment.rb +46 -2
- data/test/razorpay/test_product.rb +67 -0
- data/test/razorpay/test_settlement.rb +1 -1
- data/test/razorpay/test_stakeholder.rb +87 -0
- data/test/razorpay/test_token.rb +66 -0
- data/test/razorpay/test_transfer.rb +1 -1
- data/test/razorpay/test_webhook.rb +132 -0
- data/test/test_helper.rb +2 -0
- metadata +76 -7
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'razorpay/request'
|
2
|
+
require 'razorpay/entity'
|
3
|
+
|
4
|
+
module Razorpay
|
5
|
+
# Stakeholder API allows you to add stakeholders for an account.
|
6
|
+
class Stakeholder < Entity
|
7
|
+
|
8
|
+
@@versions = "v2"
|
9
|
+
|
10
|
+
def self.request
|
11
|
+
Razorpay::Request.new('accounts')
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.create(account_id, options)
|
15
|
+
request.post "#{account_id}/stakeholders", options, @@versions
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.fetch(account_id, id)
|
19
|
+
request.fetch "#{account_id}/stakeholders/#{id}", @@versions
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.all(account_id)
|
23
|
+
request.get "#{account_id}/stakeholders",{}, @@versions
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.edit(account_id, id, options = {})
|
27
|
+
request.patch "#{account_id}/stakeholders/#{id}", options, @@versions
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.upload_stakeholder_doc(account_id, id,options)
|
31
|
+
r = request
|
32
|
+
r.request :post, "/#{@@versions}/accounts/#{account_id}/stakeholders/#{id}/documents", options
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.fetch_stakeholder_doc(account_id, id)
|
36
|
+
request.fetch "#{account_id}/stakeholders/#{id}/documents", @@versions
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'razorpay/request'
|
2
|
+
require 'razorpay/entity'
|
3
|
+
|
4
|
+
module Razorpay
|
5
|
+
|
6
|
+
class Token < Entity
|
7
|
+
|
8
|
+
def self.request
|
9
|
+
Razorpay::Request.new('tokens')
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.create(options)
|
13
|
+
request.create options
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.fetch(options)
|
17
|
+
request.post "fetch", options
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.delete(options)
|
21
|
+
request.post "delete", options
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.process_payment_on_alternate_pa_or_pg(options)
|
25
|
+
request.post "service_provider_tokens/token_transactional_data", options
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'razorpay/request'
|
2
|
+
require 'razorpay/entity'
|
3
|
+
|
4
|
+
module Razorpay
|
5
|
+
# Webhook API allows you create, fetch, update and delete
|
6
|
+
class Webhook < Entity
|
7
|
+
|
8
|
+
@@versions = "v2"
|
9
|
+
|
10
|
+
def self.request
|
11
|
+
Razorpay::Request.new('accounts')
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.create(options, account_id = nil)
|
15
|
+
if(account_id)
|
16
|
+
return request.post "#{account_id}/webhooks", options, @@versions
|
17
|
+
end
|
18
|
+
|
19
|
+
r = request
|
20
|
+
return r.request :post, "/v1/webhooks", options
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.all(options = {}, account_id = nil)
|
24
|
+
if(account_id)
|
25
|
+
return request.get "#{account_id}/webhooks" , options , @@versions
|
26
|
+
end
|
27
|
+
|
28
|
+
r = request
|
29
|
+
return r.request :get, "/v1/webhooks", options
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.fetch(id, account_id)
|
33
|
+
request.fetch "#{account_id}/webhooks/#{id}", @@versions
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.edit(options, id, account_id = nil)
|
37
|
+
if(account_id)
|
38
|
+
return request.patch "#{account_id}/webhooks/#{id}", options, @@versions
|
39
|
+
end
|
40
|
+
|
41
|
+
r = request
|
42
|
+
return r.request :put, "/v1/webhooks/#{id}" , options
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.delete(id, account_id)
|
46
|
+
request.delete "#{account_id}/webhooks/#{id}", @@versions
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
data/lib/razorpay.rb
CHANGED
@@ -19,6 +19,13 @@ require 'razorpay/payment_link'
|
|
19
19
|
require 'razorpay/fund_account'
|
20
20
|
require 'razorpay/item'
|
21
21
|
require 'razorpay/qr_code'
|
22
|
+
require 'razorpay/payment_method'
|
23
|
+
require 'razorpay/webhook'
|
24
|
+
require 'razorpay/iin'
|
25
|
+
require 'razorpay/token'
|
26
|
+
require 'razorpay/product'
|
27
|
+
require 'razorpay/stakeholder'
|
28
|
+
require 'razorpay/account'
|
22
29
|
|
23
30
|
# Base Razorpay module
|
24
31
|
module Razorpay
|
data/razorpay-ruby.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_dependency 'httparty', '~> 0.14'
|
21
21
|
|
22
|
-
spec.add_development_dependency '
|
22
|
+
spec.add_development_dependency 'coveralls_reborn', '~> 0.8'
|
23
23
|
spec.add_development_dependency 'minitest', '~> 5.11'
|
24
24
|
spec.add_development_dependency 'rake', '~> 12.0'
|
25
25
|
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
# rubocop is only run in the latest ruby build
|
28
28
|
# so we use the latest version and don't switch to a
|
29
29
|
# older version for 1.9.3
|
30
|
+
spec.add_development_dependency 'simplecov-cobertura'
|
30
31
|
spec.add_development_dependency 'rubocop', '~> 0.49'
|
31
32
|
spec.add_development_dependency 'webmock', '~> 3.0'
|
32
33
|
else
|
@@ -0,0 +1,78 @@
|
|
1
|
+
{
|
2
|
+
"id": "acc_00000000000001",
|
3
|
+
"type": "standard",
|
4
|
+
"status": "created",
|
5
|
+
"email": "gauriagain.kumar@example.org",
|
6
|
+
"profile": {
|
7
|
+
"category": "healthcare",
|
8
|
+
"subcategory": "clinic",
|
9
|
+
"addresses": {
|
10
|
+
"registered": {
|
11
|
+
"street1": "507, Koramangala 1st block",
|
12
|
+
"street2": "MG Road",
|
13
|
+
"city": "Bengaluru",
|
14
|
+
"state": "KARNATAKA",
|
15
|
+
"postal_code": 560034,
|
16
|
+
"country": "IN"
|
17
|
+
},
|
18
|
+
"operation": {
|
19
|
+
"street1": "507, Koramangala 6th block",
|
20
|
+
"street2": "Kormanagalo",
|
21
|
+
"city": "Bengaluru",
|
22
|
+
"state": "KARNATAKA",
|
23
|
+
"country": "IN",
|
24
|
+
"postal_code": 560047
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"business_model": "Online Clothing ( men, women, ethnic, modern ) fashion and lifestyle, accessories, t-shirt, shirt, track pant, shoes."
|
28
|
+
},
|
29
|
+
"notes": {
|
30
|
+
"internal_ref_id": "123123"
|
31
|
+
},
|
32
|
+
"created_at": 1611136837,
|
33
|
+
"phone": "9000090000",
|
34
|
+
"business_type": "partnership",
|
35
|
+
"legal_business_name": "Acme Corp",
|
36
|
+
"customer_facing_business_name": "Example",
|
37
|
+
"legal_info": {
|
38
|
+
"pan": "AAACL1234C",
|
39
|
+
"gst": "18AABCU9603R1ZM"
|
40
|
+
},
|
41
|
+
"apps": {
|
42
|
+
"websites": [
|
43
|
+
"https://www.example.org"
|
44
|
+
],
|
45
|
+
"android": [
|
46
|
+
{
|
47
|
+
"url": "playstore.example.org",
|
48
|
+
"name": "Example"
|
49
|
+
}
|
50
|
+
],
|
51
|
+
"ios": [
|
52
|
+
{
|
53
|
+
"url": "appstore.example.org",
|
54
|
+
"name": "Example"
|
55
|
+
}
|
56
|
+
]
|
57
|
+
},
|
58
|
+
"brand": {
|
59
|
+
"color": "#FFFFFF"
|
60
|
+
},
|
61
|
+
"contact_info": {
|
62
|
+
"chargeback": {
|
63
|
+
"email": "cb@example.org",
|
64
|
+
"phone": null,
|
65
|
+
"policy_url": null
|
66
|
+
},
|
67
|
+
"refund": {
|
68
|
+
"email": "cb@example.org",
|
69
|
+
"phone": null,
|
70
|
+
"policy_url": null
|
71
|
+
},
|
72
|
+
"support": {
|
73
|
+
"email": "support@example.org",
|
74
|
+
"phone": "9999999998",
|
75
|
+
"policy_url": "https://www.google.com"
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"iin": "411111",
|
3
|
+
"entity": "iin",
|
4
|
+
"network": "Visa",
|
5
|
+
"type": "credit",
|
6
|
+
"sub_type": "consumer",
|
7
|
+
"card_iin": "null",
|
8
|
+
"issuer_code": "unknown",
|
9
|
+
"issuer_name": "unknown",
|
10
|
+
"international": true,
|
11
|
+
"tokenised": false,
|
12
|
+
"emi": {
|
13
|
+
"available": false
|
14
|
+
},
|
15
|
+
"recurring": {
|
16
|
+
"available": true
|
17
|
+
},
|
18
|
+
"authentication_types": [
|
19
|
+
{
|
20
|
+
"type": "3ds"
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
{
|
2
|
+
"requested_configuration": {
|
3
|
+
"payment_methods": []
|
4
|
+
},
|
5
|
+
"active_configuration": {
|
6
|
+
"payment_capture": {
|
7
|
+
"mode": "automatic",
|
8
|
+
"refund_speed": "normal",
|
9
|
+
"automatic_expiry_period": 7200
|
10
|
+
},
|
11
|
+
"settlements": {
|
12
|
+
"account_number": null,
|
13
|
+
"ifsc_code": null,
|
14
|
+
"beneficiary_name": null
|
15
|
+
},
|
16
|
+
"checkout": {
|
17
|
+
"theme_color": "#FFFFFF",
|
18
|
+
"flash_checkout": true
|
19
|
+
},
|
20
|
+
"refund": {
|
21
|
+
"default_refund_speed": "normal"
|
22
|
+
},
|
23
|
+
"notifications": {
|
24
|
+
"whatsapp": true,
|
25
|
+
"sms": false,
|
26
|
+
"email": [
|
27
|
+
"b963e252-1201-45b0-9c39-c53eceb0cfd6_load@gmail.com"
|
28
|
+
]
|
29
|
+
},
|
30
|
+
"payment_methods": {
|
31
|
+
"netbanking": {
|
32
|
+
"enabled": true,
|
33
|
+
"instrument": [
|
34
|
+
{
|
35
|
+
"type": "retail",
|
36
|
+
"bank": [
|
37
|
+
"hdfc",
|
38
|
+
"sbin",
|
39
|
+
"utib",
|
40
|
+
"icic",
|
41
|
+
"scbl",
|
42
|
+
"yesb"
|
43
|
+
]
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
"wallet": {
|
48
|
+
"enabled": true,
|
49
|
+
"instrument": [
|
50
|
+
"airtelmoney",
|
51
|
+
"freecharge",
|
52
|
+
"jiomoney",
|
53
|
+
"olamoney",
|
54
|
+
"payzapp",
|
55
|
+
"mobikwik"
|
56
|
+
]
|
57
|
+
},
|
58
|
+
"upi": {
|
59
|
+
"enabled": true,
|
60
|
+
"instrument": [
|
61
|
+
"upi"
|
62
|
+
]
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"requirements": [
|
67
|
+
{
|
68
|
+
"field_reference": "individual_proof_of_address",
|
69
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/stakeholders/{stakeholderId}/documents",
|
70
|
+
"status": "required",
|
71
|
+
"reason_code": "document_missing"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"field_reference": "individual_proof_of_identification",
|
75
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/stakeholders/{stakeholderId}/documents",
|
76
|
+
"status": "required",
|
77
|
+
"reason_code": "document_missing"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"field_reference": "business_proof_of_identification",
|
81
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/documents",
|
82
|
+
"status": "required",
|
83
|
+
"reason_code": "document_missing"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"field_reference": "settlements.beneficiary_name",
|
87
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/products/acc_prd_HEgNpywUFctQ9e",
|
88
|
+
"status": "required",
|
89
|
+
"reason_code": "field_missing"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"field_reference": "settlements.account_number",
|
93
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/products/acc_prd_HEgNpywUFctQ9e",
|
94
|
+
"status": "required",
|
95
|
+
"reason_code": "field_missing"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"field_reference": "settlements.ifsc_code",
|
99
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/products/acc_prd_HEgNpywUFctQ9e",
|
100
|
+
"status": "required",
|
101
|
+
"reason_code": "field_missing"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"field_reference": "contact_name",
|
105
|
+
"resolution_url": "/accounts/acc_prd_00000000000001",
|
106
|
+
"status": "required",
|
107
|
+
"reason_code": "field_missing"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"field_reference": "name",
|
111
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/stakeholders",
|
112
|
+
"status": "required",
|
113
|
+
"reason_code": "field_missing"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"field_reference": "customer_facing_business_name",
|
117
|
+
"resolution_url": "/accounts/acc_prd_00000000000001",
|
118
|
+
"status": "required",
|
119
|
+
"reason_code": "field_missing"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"field_reference": "kyc.pan",
|
123
|
+
"resolution_url": "/accounts/acc_prd_00000000000001/stakeholders",
|
124
|
+
"status": "required",
|
125
|
+
"reason_code": "field_missing"
|
126
|
+
}
|
127
|
+
],
|
128
|
+
"tnc": {
|
129
|
+
"id": "tnc_00000000000001",
|
130
|
+
"accepted": true,
|
131
|
+
"accepted_at": 1641550798
|
132
|
+
},
|
133
|
+
"id": "acc_prd_00000000000001",
|
134
|
+
"account_id": "acc_00000000000001",
|
135
|
+
"product_name": "payment_gateway",
|
136
|
+
"activation_status": "needs_clarification",
|
137
|
+
"requested_at": 1625478849
|
138
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"entity": "stakeholder",
|
3
|
+
"relationship": {
|
4
|
+
"director": true
|
5
|
+
},
|
6
|
+
"phone": {
|
7
|
+
"primary": "9000090000",
|
8
|
+
"secondary": "9000090000"
|
9
|
+
},
|
10
|
+
"notes": {
|
11
|
+
"random_key_by_partner": "random_value"
|
12
|
+
},
|
13
|
+
"kyc": {
|
14
|
+
"pan": "AVOPB1111K"
|
15
|
+
},
|
16
|
+
"id": "sth_00000000000001",
|
17
|
+
"name": "Gaurav Kumar",
|
18
|
+
"email": "gaurav.kumar@example.com",
|
19
|
+
"percentage_ownership": 10,
|
20
|
+
"addresses": {
|
21
|
+
"residential": {
|
22
|
+
"street": "506, Koramangala 1st block",
|
23
|
+
"city": "Bengaluru",
|
24
|
+
"state": "Karnataka",
|
25
|
+
"postal_code": "560034",
|
26
|
+
"country": "IN"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"id": "token_00000000000001",
|
3
|
+
"entity": "token",
|
4
|
+
"customer_id": "cust_1Aa00000000001",
|
5
|
+
"method": "card",
|
6
|
+
"card": {
|
7
|
+
"last4": "1111",
|
8
|
+
"network": "Visa",
|
9
|
+
"type": "debit",
|
10
|
+
"issuer": "HDFC",
|
11
|
+
"international": false,
|
12
|
+
"emi": true,
|
13
|
+
"sub_type": "consumer",
|
14
|
+
"token_iin": "453335"
|
15
|
+
},
|
16
|
+
"compliant_with_tokenisation_guidelines": true,
|
17
|
+
"service_provider_tokens": [
|
18
|
+
{
|
19
|
+
"id": "spt_1234abcd",
|
20
|
+
"entity": "service_provider_token",
|
21
|
+
"provider_type": "network",
|
22
|
+
"provider_name": "Visa",
|
23
|
+
"interoperable": true,
|
24
|
+
"status": "active",
|
25
|
+
"status_reason": null,
|
26
|
+
"provider_data": {
|
27
|
+
"token_reference_number": "sas7wqaoidasdfssdjjk",
|
28
|
+
"payment_account_reference": "8324ssdas7wqaoidassdjjk",
|
29
|
+
"token_iin": "453335",
|
30
|
+
"token_expiry_month": 12,
|
31
|
+
"token_expiry_year": 2030
|
32
|
+
}
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"expired_at": 1748716199,
|
36
|
+
"status": "active",
|
37
|
+
"status_reason": null,
|
38
|
+
"notes": []
|
39
|
+
}
|
40
|
+
|
@@ -0,0 +1,79 @@
|
|
1
|
+
{
|
2
|
+
"id": "H000000000000H",
|
3
|
+
"created_at": 1665648343,
|
4
|
+
"updated_at": 1695729722,
|
5
|
+
"service": "api-test",
|
6
|
+
"owner_id": "S000000000000H",
|
7
|
+
"owner_type": "merchant",
|
8
|
+
"disabled_at": 1665736246,
|
9
|
+
"url": "https://www.linkedin.com",
|
10
|
+
"created_by": "Hn1ukgebfkBJ4L",
|
11
|
+
"secret_exists": true,
|
12
|
+
"created_by_email": "gaurav.kumar@example.com",
|
13
|
+
"entity": "webhook",
|
14
|
+
"active": true,
|
15
|
+
"events": {
|
16
|
+
"payment.authorized": false,
|
17
|
+
"payment.failed": false,
|
18
|
+
"payment.captured": false,
|
19
|
+
"payment.dispute.created": false,
|
20
|
+
"order.paid": false,
|
21
|
+
"invoice.paid": false,
|
22
|
+
"invoice.partially_paid": false,
|
23
|
+
"invoice.expired": false,
|
24
|
+
"subscription.authenticated": false,
|
25
|
+
"subscription.paused": false,
|
26
|
+
"subscription.resumed": false,
|
27
|
+
"subscription.activated": false,
|
28
|
+
"subscription.pending": false,
|
29
|
+
"subscription.halted": false,
|
30
|
+
"subscription.charged": false,
|
31
|
+
"subscription.cancelled": false,
|
32
|
+
"subscription.completed": false,
|
33
|
+
"subscription.updated": false,
|
34
|
+
"settlement.processed": false,
|
35
|
+
"virtual_account.credited": false,
|
36
|
+
"virtual_account.created": false,
|
37
|
+
"virtual_account.closed": false,
|
38
|
+
"qr_code.closed": false,
|
39
|
+
"qr_code.created": false,
|
40
|
+
"qr_code.credited": false,
|
41
|
+
"payment.dispute.won": false,
|
42
|
+
"payment.dispute.lost": false,
|
43
|
+
"payment.dispute.closed": false,
|
44
|
+
"payment.dispute.under_review": false,
|
45
|
+
"payment.dispute.action_required": false,
|
46
|
+
"fund_account.validation.completed": false,
|
47
|
+
"fund_account.validation.failed": false,
|
48
|
+
"payout.processed": false,
|
49
|
+
"payout.reversed": false,
|
50
|
+
"payment.downtime.started": false,
|
51
|
+
"payment.downtime.updated": false,
|
52
|
+
"payment.downtime.resolved": false,
|
53
|
+
"payout.initiated": false,
|
54
|
+
"refund.speed_changed": false,
|
55
|
+
"refund.processed": false,
|
56
|
+
"refund.failed": false,
|
57
|
+
"refund.created": true,
|
58
|
+
"transfer.processed": false,
|
59
|
+
"transfer.failed": false,
|
60
|
+
"account.under_review": false,
|
61
|
+
"account.needs_clarification": false,
|
62
|
+
"account.activated": false,
|
63
|
+
"account.rejected": false,
|
64
|
+
"account.updated": false,
|
65
|
+
"payout.updated": false,
|
66
|
+
"payout.rejected": false,
|
67
|
+
"payout.pending": false,
|
68
|
+
"payment_link.paid": false,
|
69
|
+
"payment_link.partially_paid": false,
|
70
|
+
"payment_link.expired": false,
|
71
|
+
"payment_link.cancelled": false,
|
72
|
+
"zapier.payment_page.paid.v1": false,
|
73
|
+
"shiprocket.payment_page.paid.v1": false,
|
74
|
+
"product.route.under_review": false,
|
75
|
+
"product.route.activated": false,
|
76
|
+
"product.route.needs_clarification": false,
|
77
|
+
"product.route.rejected": false
|
78
|
+
}
|
79
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"id": "H000000000000H",
|
3
|
+
"created_at": 1654605478,
|
4
|
+
"updated_at": 1654605478,
|
5
|
+
"owner_id": "JOGUdtKu3dB03d",
|
6
|
+
"owner_type": "merchant",
|
7
|
+
"context": [],
|
8
|
+
"disabled_at": 0,
|
9
|
+
"url": "https://google.com",
|
10
|
+
"alert_email": "gaurav.kumar@example.com",
|
11
|
+
"secret_exists": true,
|
12
|
+
"entity": "webhook",
|
13
|
+
"active": true,
|
14
|
+
"events": [
|
15
|
+
"payment.authorized",
|
16
|
+
"payment.failed",
|
17
|
+
"payment.captured",
|
18
|
+
"payment.dispute.created",
|
19
|
+
"refund.failed",
|
20
|
+
"refund.created"
|
21
|
+
]
|
22
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"entity": "tnc_map",
|
3
|
+
"product_name": "payments",
|
4
|
+
"id": "tnc_map_00000000000001",
|
5
|
+
"tnc": {
|
6
|
+
"terms": "https://razorpay.com/terms",
|
7
|
+
"privacy": "https://razorpay.com/privacy",
|
8
|
+
"agreement": "https://razorpay.com/agreement"
|
9
|
+
},
|
10
|
+
"last_published_at": 1640589653
|
11
|
+
}
|