razorruby 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.editorconfig +12 -0
  4. data/.github/dependabot.yml +8 -0
  5. data/.github/workflows/ruby.yml +38 -0
  6. data/.gitignore +23 -0
  7. data/.rubocop.yml +22 -0
  8. data/.simplecov +3 -0
  9. data/CHANGELOG.md +168 -0
  10. data/Gemfile +4 -0
  11. data/LICENSE.txt +22 -0
  12. data/README.md +102 -0
  13. data/Rakefile +26 -0
  14. data/documents/Invoice.md +539 -0
  15. data/documents/addon.md +191 -0
  16. data/documents/card.md +610 -0
  17. data/documents/customer.md +163 -0
  18. data/documents/emandate.md +492 -0
  19. data/documents/fund.md +89 -0
  20. data/documents/items.md +208 -0
  21. data/documents/order.md +281 -0
  22. data/documents/papernach.md +738 -0
  23. data/documents/payment.md +826 -0
  24. data/documents/paymentLink.md +1063 -0
  25. data/documents/paymentVerification.md +79 -0
  26. data/documents/plan.md +184 -0
  27. data/documents/qrcode.md +439 -0
  28. data/documents/refund.md +325 -0
  29. data/documents/registerEmandate.md +452 -0
  30. data/documents/registerNach.md +653 -0
  31. data/documents/settlement.md +478 -0
  32. data/documents/subscriptions.md +752 -0
  33. data/documents/tokens.md +262 -0
  34. data/documents/transfers.md +781 -0
  35. data/documents/upi.md +545 -0
  36. data/documents/virtualAccount.md +591 -0
  37. data/lib/ca-bundle.crt +3988 -0
  38. data/lib/extensions/httparty/hash_conversions.rb +44 -0
  39. data/lib/razorpay/addon.rb +32 -0
  40. data/lib/razorpay/card.rb +17 -0
  41. data/lib/razorpay/collection.rb +6 -0
  42. data/lib/razorpay/constants.rb +6 -0
  43. data/lib/razorpay/customer.rb +42 -0
  44. data/lib/razorpay/entity.rb +46 -0
  45. data/lib/razorpay/errors/bad_request_error.rb +14 -0
  46. data/lib/razorpay/errors/gateway_error.rb +7 -0
  47. data/lib/razorpay/errors/razorpay_error.rb +11 -0
  48. data/lib/razorpay/errors/server_error.rb +7 -0
  49. data/lib/razorpay/errors.rb +4 -0
  50. data/lib/razorpay/fund_account.rb +19 -0
  51. data/lib/razorpay/invoice.rb +68 -0
  52. data/lib/razorpay/item.rb +34 -0
  53. data/lib/razorpay/order.rb +39 -0
  54. data/lib/razorpay/payment.rb +116 -0
  55. data/lib/razorpay/payment_link.rb +36 -0
  56. data/lib/razorpay/payment_method.rb +17 -0
  57. data/lib/razorpay/plan.rb +24 -0
  58. data/lib/razorpay/qr_code.rb +34 -0
  59. data/lib/razorpay/refund.rb +27 -0
  60. data/lib/razorpay/request.rb +119 -0
  61. data/lib/razorpay/settlement.rb +39 -0
  62. data/lib/razorpay/subscription.rb +60 -0
  63. data/lib/razorpay/subscription_registration.rb +16 -0
  64. data/lib/razorpay/transfer.rb +35 -0
  65. data/lib/razorpay/utility.rb +57 -0
  66. data/lib/razorpay/virtual_account.rb +49 -0
  67. data/lib/razorpay.rb +37 -0
  68. data/razorpay-ruby.gemspec +36 -0
  69. data/test/fixtures/addon_collection.json +60 -0
  70. data/test/fixtures/bad_request_error.json +7 -0
  71. data/test/fixtures/cancel_invoice.json +44 -0
  72. data/test/fixtures/cancel_subscription.json +20 -0
  73. data/test/fixtures/create_json_payment.json +13 -0
  74. data/test/fixtures/customer_collection.json +22 -0
  75. data/test/fixtures/delete_token.json +3 -0
  76. data/test/fixtures/downtimes_collection.json +21 -0
  77. data/test/fixtures/empty.json +2 -0
  78. data/test/fixtures/fake_addon.json +24 -0
  79. data/test/fixtures/fake_captured_payment.json +13 -0
  80. data/test/fixtures/fake_card.json +9 -0
  81. data/test/fixtures/fake_create_upi_payment.json +3 -0
  82. data/test/fixtures/fake_customer.json +8 -0
  83. data/test/fixtures/fake_customer_edited.json +8 -0
  84. data/test/fixtures/fake_direct_transfer.json +32 -0
  85. data/test/fixtures/fake_downtime.json +14 -0
  86. data/test/fixtures/fake_fund_account.json +18 -0
  87. data/test/fixtures/fake_instant_settlement.json +19 -0
  88. data/test/fixtures/fake_invoice.json +30 -0
  89. data/test/fixtures/fake_item.json +9 -0
  90. data/test/fixtures/fake_order.json +10 -0
  91. data/test/fixtures/fake_order_transfers.json +88 -0
  92. data/test/fixtures/fake_otp_generate.json +19 -0
  93. data/test/fixtures/fake_otp_resend.json +7 -0
  94. data/test/fixtures/fake_otp_submit.json +5 -0
  95. data/test/fixtures/fake_payment.json +14 -0
  96. data/test/fixtures/fake_payment_authorized_webhook.json +40 -0
  97. data/test/fixtures/fake_payment_bank_transfer.json +12 -0
  98. data/test/fixtures/fake_payment_link.json +40 -0
  99. data/test/fixtures/fake_pending_update.json +30 -0
  100. data/test/fixtures/fake_plan.json +26 -0
  101. data/test/fixtures/fake_qrcode.json +20 -0
  102. data/test/fixtures/fake_qrcode_close.json +22 -0
  103. data/test/fixtures/fake_recurring.json +5 -0
  104. data/test/fixtures/fake_refund.json +8 -0
  105. data/test/fixtures/fake_refunded_payment.json +14 -0
  106. data/test/fixtures/fake_settlement.json +11 -0
  107. data/test/fixtures/fake_settlement_on_demand.json +39 -0
  108. data/test/fixtures/fake_subscription.json +20 -0
  109. data/test/fixtures/fake_subscription_pause.json +19 -0
  110. data/test/fixtures/fake_subscription_registration.json +91 -0
  111. data/test/fixtures/fake_subscription_resume.json +19 -0
  112. data/test/fixtures/fake_token.json +31 -0
  113. data/test/fixtures/fake_transfer.json +18 -0
  114. data/test/fixtures/fake_transfer_reverse.json +15 -0
  115. data/test/fixtures/fake_update_payment.json +39 -0
  116. data/test/fixtures/fake_validate_vpa.json +5 -0
  117. data/test/fixtures/fake_virtual_account.json +21 -0
  118. data/test/fixtures/fake_virtual_account_allowed.json +46 -0
  119. data/test/fixtures/fake_virtual_account_closed.json +21 -0
  120. data/test/fixtures/fake_virtual_account_collection.json +48 -0
  121. data/test/fixtures/fake_virtual_account_receiver.json +46 -0
  122. data/test/fixtures/fund_collection.json +20 -0
  123. data/test/fixtures/hello_response.json +3 -0
  124. data/test/fixtures/invoice_collection.json +93 -0
  125. data/test/fixtures/issue_invoice.json +44 -0
  126. data/test/fixtures/item_collection.json +24 -0
  127. data/test/fixtures/order_collection.json +36 -0
  128. data/test/fixtures/order_payments.json +29 -0
  129. data/test/fixtures/payment_collection.json +32 -0
  130. data/test/fixtures/payment_collection_with_one_payment.json +19 -0
  131. data/test/fixtures/payment_link_collection.json +43 -0
  132. data/test/fixtures/payment_link_response.json +3 -0
  133. data/test/fixtures/payment_methods_collection.json +149 -0
  134. data/test/fixtures/plan_collection.json +32 -0
  135. data/test/fixtures/qrcode_collection.json +50 -0
  136. data/test/fixtures/qrcode_payments_collection.json +74 -0
  137. data/test/fixtures/refund_collection.json +30 -0
  138. data/test/fixtures/refund_collection_for_payment.json +22 -0
  139. data/test/fixtures/settlement_collection.json +26 -0
  140. data/test/fixtures/settlement_instant_collection.json +84 -0
  141. data/test/fixtures/settlement_report_collection.json +117 -0
  142. data/test/fixtures/subscription_collection.json +26 -0
  143. data/test/fixtures/success.json +3 -0
  144. data/test/fixtures/tokens_collection.json +36 -0
  145. data/test/fixtures/transfer_settlements_collection.json +38 -0
  146. data/test/fixtures/transfers_collection.json +41 -0
  147. data/test/fixtures/update_invoice.json +44 -0
  148. data/test/fixtures/welcome.json +3 -0
  149. data/test/razorpay/test_addon.rb +76 -0
  150. data/test/razorpay/test_card.rb +23 -0
  151. data/test/razorpay/test_customer.rb +69 -0
  152. data/test/razorpay/test_entity.rb +55 -0
  153. data/test/razorpay/test_fund_account.rb +42 -0
  154. data/test/razorpay/test_invoice.rb +143 -0
  155. data/test/razorpay/test_item.rb +66 -0
  156. data/test/razorpay/test_order.rb +71 -0
  157. data/test/razorpay/test_payment.rb +303 -0
  158. data/test/razorpay/test_payment_link.rb +83 -0
  159. data/test/razorpay/test_plan.rb +65 -0
  160. data/test/razorpay/test_qr_code.rb +63 -0
  161. data/test/razorpay/test_razorpay.rb +53 -0
  162. data/test/razorpay/test_refund.rb +56 -0
  163. data/test/razorpay/test_request.rb +15 -0
  164. data/test/razorpay/test_settlement.rb +76 -0
  165. data/test/razorpay/test_subscription.rb +190 -0
  166. data/test/razorpay/test_subscription_registration.rb +58 -0
  167. data/test/razorpay/test_transfer.rb +77 -0
  168. data/test/razorpay/test_utility.rb +84 -0
  169. data/test/razorpay/test_virtual_account.rb +135 -0
  170. data/test/test_helper.rb +54 -0
  171. metadata +400 -0
@@ -0,0 +1,1063 @@
1
+ ## Payment Links
2
+
3
+ ```rb
4
+ require "razorpay"
5
+ Razorpay.setup('key_id', 'key_secret')
6
+ ```
7
+
8
+ ### Create payment link
9
+
10
+ Request #1
11
+ Standard Payment Link
12
+
13
+ ```rb
14
+ Razorpay.headers = {"Content-type" => "application/json"}
15
+
16
+ para_attr = {
17
+ "amount": 500,
18
+ "currency": "INR",
19
+ "accept_partial": true,
20
+ "first_min_partial_amount": 100,
21
+ "description": "For XYZ purpose",
22
+ "customer": {
23
+ "name": "Gaurav Kumar",
24
+ "email": "gaurav.kumar@example.com",
25
+ "contact": "+919999999999"
26
+ },
27
+ "notify": {
28
+ "sms": true,
29
+ "email": true
30
+ },
31
+ "reminder_enable": true,
32
+ "notes": {
33
+ "policy_name": "Jeevan Bima"
34
+ },
35
+ "callback_url": "https://example-callback-url.com/",
36
+ "callback_method": "get"
37
+ }
38
+
39
+ Razorpay::PaymentLink.create(para_attr.to_json)
40
+ ```
41
+
42
+ Request #2
43
+ UPI Payment Link
44
+
45
+ ```rb
46
+
47
+ Razorpay.headers = {"Content-type" => "application/json"}
48
+
49
+ para_attr = {
50
+ "upi_link": true,
51
+ "amount": 500,
52
+ "currency": "INR",
53
+ "description": "For XYZ purpose",
54
+ "customer": {
55
+ "name": "Gaurav Kumar",
56
+ "email": "gaurav.kumar@example.com",
57
+ "contact": "+919999999999"
58
+ },
59
+ "notify": {
60
+ "sms": true,
61
+ "email": true
62
+ },
63
+ "reminder_enable": true,
64
+ "notes": {
65
+ "policy_name": "Jeevan Bima"
66
+ }
67
+ }
68
+
69
+ Razorpay::PaymentLink.create(para_attr.to_json)
70
+ ```
71
+
72
+ **Parameters:**
73
+
74
+ | Name | Type | Description |
75
+ |-----------------|---------|------------------------------------------------------------------------------|
76
+ |upi_link* | boolean | boolean Must be set to true // to creating UPI Payment Link only |
77
+ |amount* | integer | Amount to be paid using the Payment Link. |
78
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
79
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values: true - Customer can make partial payments. false (default) - Customer cannot make partial payments. // UPI Payment Link is not supported partial payment |
80
+ |description | string | A brief description of the Payment Link |
81
+ |first_min_partial_amount | integer |Minimum amount, in currency subunits, that must be paid by the customer as the first partial payment. // UPI Payment Link is not supported partial payment |
82
+ |reference_id | string | Reference number tagged to a Payment Link. |
83
+ |customer | object | All parameters listed [here](https://razorpay.com/docs/api/payments/payment-links/#sample-codes-for-standard-payment-links) are supported |
84
+ |expire_by | integer | Timestamp, in Unix, at which the Payment Link will expire. By default, a Payment Link will be valid for six months from the date of creation. |
85
+ |notify | object | sms or email (boolean) |
86
+ |notes | json object | Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty” |
87
+
88
+
89
+ **Response:**
90
+ For create payment link response please click [here](https://razorpay.com/docs/api/payment-links/#create-payment-link)
91
+
92
+ -------------------------------------------------------------------------------------------------------
93
+
94
+ ### Fetch all payment link
95
+
96
+ ```rb
97
+ Razorpay::PaymentLink.all()
98
+ ```
99
+
100
+ **Parameters:**
101
+
102
+ | Name | Type | Description |
103
+ |-----------------|---------|------------------------------------------------------------------------------|
104
+ |payment_id | string | Unique identifier of the payment associated with the Payment Link. |
105
+ |reference_id | string | The unique reference number entered by you while creating the Payment Link. |
106
+
107
+ **Response:**
108
+ For fetch all payment link response please click [here](https://razorpay.com/docs/api/payment-links/#all-payment-links)
109
+
110
+ -------------------------------------------------------------------------------------------------------
111
+
112
+ ### Fetch specific payment link
113
+
114
+ ```rb
115
+ paymentLinkId = "plink_ExjpAUN3gVHrPJ"
116
+
117
+ Razorpay::PaymentLink.fetch(paymentLinkId)
118
+ ```
119
+
120
+ **Parameters:**
121
+
122
+ | Name | Type | Description |
123
+ |-----------------|---------|------------------------------------------------------------------------------|
124
+ | paymentLinkId* | string | Unique identifier of the Payment Link. |
125
+
126
+ **Response:**
127
+ For fetch specific payment link response please click [here](https://razorpay.com/docs/api/payment-links/#specific-payment-links-by-id)
128
+
129
+ -------------------------------------------------------------------------------------------------------
130
+
131
+ ### Update payment link
132
+
133
+ ```rb
134
+
135
+ Razorpay.headers = {"Content-type" => "application/json"}
136
+
137
+ paymentLinkId = "plink_ExjpAUN3gVHrPJ"
138
+
139
+ para_attr = {
140
+ "reference_id": "TS35",
141
+ "expire_by": 1653347540,
142
+ "reminder_enable": false,
143
+ "notes":{
144
+ "policy_name": "Jeevan Saral"
145
+ }
146
+ }
147
+
148
+ Razorpay::PaymentLink.edit(paymentLinkId, para_attr.to_json)
149
+ ```
150
+
151
+ **Parameters:**
152
+
153
+ | Name | Type | Description |
154
+ |-----------------|---------|------------------------------------------------------------------------------|
155
+ | paymentLinkId* | string | The unique identifier of the Payment Link that needs to be updated. |
156
+ | accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values: true - Customer can make partial payments. false (default) - Customer cannot make partial payments. |
157
+ | reference_id | string | Adds a unique reference number to an existing link. |
158
+ | expire_by | integer | Timestamp, in Unix format, when the payment links should expire. |
159
+ | notes | string | object Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, "note_key": "Beam me up Scotty”. |
160
+
161
+ **Response:**
162
+ For updating payment link response please click [here](https://razorpay.com/docs/api/payment-links/#update-payment-link)
163
+
164
+ -------------------------------------------------------------------------------------------------------
165
+
166
+ ### Cancel a payment link
167
+
168
+ ```rb
169
+ paymentLinkId = "plink_ExjpAUN3gVHrPJ"
170
+
171
+ Razorpay::PaymentLink.cancel(paymentLinkId)
172
+ ```
173
+
174
+ **Parameters:**
175
+
176
+ | Name | Type | Description |
177
+ |-----------------|---------|------------------------------------------------------------------------------|
178
+ | paymentLinkId* | string | Unique identifier of the Payment Link. |
179
+
180
+ **Response:**
181
+ For canceling payment link response please click [here](https://razorpay.com/docs/api/payment-links/#cancel-payment-link)
182
+ -------------------------------------------------------------------------------------------------------
183
+
184
+ ### Send notification
185
+
186
+ ```rb
187
+ paymentLinkId = "plink_ExjpAUN3gVHrPJ"
188
+
189
+ medium = "email"
190
+
191
+ Razorpay::PaymentLink.notify_by(paymentLinkId, medium)
192
+ ```
193
+
194
+ **Parameters:**
195
+
196
+ | Name | Type | Description |
197
+ |-----------------|---------|------------------------------------------------------------------------------|
198
+ | paymentLinkId* | string | Unique identifier of the Payment Link that should be resent. |
199
+ | medium* | string | `sms`/`email`,Medium through which the Payment Link must be resent. Allowed values are: |
200
+
201
+ **Response:**
202
+ ```json
203
+ {
204
+ "success": true
205
+ }
206
+ ```
207
+ -------------------------------------------------------------------------------------------------------
208
+
209
+ ### Transfer payments received using payment links
210
+
211
+ ```rb
212
+
213
+ para_attr = {
214
+ "amount": 1500,
215
+ "currency": "INR",
216
+ "accept_partial": false,
217
+ "reference_id": "#aasasw8",
218
+ "description": "Payment for policy no #23456",
219
+ "customer": {
220
+ "name": "Gaurav Kumar",
221
+ "contact": "+919999999999",
222
+ "email": "gaurav.kumar@example.com"
223
+ },
224
+ "notify": {
225
+ "sms": true,
226
+ "email": true
227
+ },
228
+ "reminder_enable": true,
229
+ "options": {
230
+ "order": {
231
+ "transfers": [
232
+ {
233
+ "account": "acc_CPRsN1LkFccllA",
234
+ "amount": 500,
235
+ "currency": "INR",
236
+ "notes": {
237
+ "branch": "Acme Corp Bangalore North",
238
+ "name": "Bhairav Kumar"
239
+ },
240
+ "linked_account_notes": [
241
+ "branch"
242
+ ]
243
+ },
244
+ {
245
+ "account": "acc_CNo3jSI8OkFJJJ",
246
+ "amount": 500,
247
+ "currency": "INR",
248
+ "notes": {
249
+ "branch": "Acme Corp Bangalore South",
250
+ "name": "Saurav Kumar"
251
+ },
252
+ "linked_account_notes": [
253
+ "branch"
254
+ ]
255
+ }
256
+ ]
257
+ }
258
+ }
259
+ }
260
+
261
+ Razorpay.headers = {"Content-type" => "application/json"}
262
+
263
+ Razorpay::PaymentLink.create(para_attr.to_json)
264
+ ```
265
+
266
+ **Parameters:**
267
+
268
+ | Name | Type | Description |
269
+ |-----------------|---------|------------------------------------------------------------------------------|
270
+ |amount* | integer | Amount to be paid using the Payment Link. |
271
+ |options* | array | Options to configure the transfer in the Payment Link. Parent parameter under which the order child parameter must be passed. |
272
+
273
+ **Response:**
274
+ ```json
275
+ {
276
+ "accept_partial": false,
277
+ "amount": 1500,
278
+ "amount_paid": 0,
279
+ "callback_method": "",
280
+ "callback_url": "",
281
+ "cancelled_at": 0,
282
+ "created_at": 1596526969,
283
+ "currency": "INR",
284
+ "customer": {
285
+ "contact": "+919999999999",
286
+ "email": "gaurav.kumar@example.com",
287
+ "name": "Gaurav Kumar"
288
+ },
289
+ "deleted_at": 0,
290
+ "description": "Payment for policy no #23456",
291
+ "expire_by": 0,
292
+ "expired_at": 0,
293
+ "first_min_partial_amount": 0,
294
+ "id": "plink_FMbhpT6nqDjDei",
295
+ "notes": null,
296
+ "notify": {
297
+ "email": true,
298
+ "sms": true
299
+ },
300
+ "payments": null,
301
+ "reference_id": "#aasasw8",
302
+ "reminder_enable": true,
303
+ "reminders": [],
304
+ "short_url": "https://rzp.io/i/ORor1MT",
305
+ "source": "",
306
+ "source_id": "",
307
+ "status": "created",
308
+ "updated_at": 1596526969,
309
+ "user_id": ""
310
+ }
311
+ ```
312
+ -------------------------------------------------------------------------------------------------------
313
+
314
+ ### Offers on payment links
315
+
316
+ ```rb
317
+ para_attr = {
318
+ "amount": 3400,
319
+ "currency": "INR",
320
+ "accept_partial": false,
321
+ "reference_id": "#425",
322
+ "description": "Payment for policy no #23456",
323
+ "customer": {
324
+ "name": "Gaurav Kumar",
325
+ "contact": "+919999999999",
326
+ "email": "gaurav.kumar@example.com"
327
+ },
328
+ "notify": {
329
+ "sms": true,
330
+ "email": true
331
+ },
332
+ "reminder_enable": false,
333
+ "options": {
334
+ "order": {
335
+ "offers": [
336
+ "offer_F4WMTC3pwFKnzq",
337
+ "offer_F4WJHqvGzw8dWF"
338
+ ]
339
+ }
340
+ }
341
+ }
342
+
343
+ Razorpay.headers = {"Content-type" => "application/json"}
344
+
345
+ Razorpay::PaymentLink.create(para_attr.to_json)
346
+ ```
347
+
348
+ **Parameters:**
349
+
350
+ | Name | Type | Description |
351
+ |-----------------|---------|------------------------------------------------------------------------------|
352
+ |amount* | integer | Amount to be paid using the Payment Link. |
353
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
354
+ |description | string | A brief description of the Payment Link |
355
+ |reference_id | string | AReference number tagged to a Payment Link. |
356
+ |customer | array | name, email, contact |
357
+ |expire_by | integer | Timestamp, in Unix, at which the Payment Link will expire. By default, a Payment Link will be valid for six months from the date of creation. |
358
+ |notify | object | sms or email (boolean) |
359
+ |options* | array | Options to associate the offer_id with the Payment Link. Parent parameter under which the order child parameter must be passed. |
360
+
361
+ **Response:**
362
+ ```json
363
+ {
364
+ "accept_partial": false,
365
+ "amount": 3400,
366
+ "amount_paid": 0,
367
+ "cancelled_at": 0,
368
+ "created_at": 1600183040,
369
+ "currency": "INR",
370
+ "customer": {
371
+ "contact": "+919999999999",
372
+ "email": "gaurav.kumar@example.com",
373
+ "name": "Gaurav Kumar"
374
+ },
375
+ "description": "Payment for policy no #23456",
376
+ "expire_by": 0,
377
+ "expired_at": 0,
378
+ "first_min_partial_amount": 0,
379
+ "id": "plink_FdLt0WBldRyE5t",
380
+ "notes": null,
381
+ "notify": {
382
+ "email": true,
383
+ "sms": true
384
+ },
385
+ "payments": null,
386
+ "reference_id": "#425",
387
+ "reminder_enable": false,
388
+ "reminders": [],
389
+ "short_url": "https://rzp.io/i/CM5ohDC",
390
+ "status": "created",
391
+ "user_id": ""
392
+ }
393
+ ```
394
+ -------------------------------------------------------------------------------------------------------
395
+
396
+ ### Managing reminders for payment links
397
+
398
+ ```rb
399
+
400
+ para_attr = {
401
+ "amount": 1000,
402
+ "currency": "INR",
403
+ "accept_partial": true,
404
+ "first_min_partial_amount": 100,
405
+ "reference_id": "#425",
406
+ "description": "Payment for policy no #23456",
407
+ "customer": {
408
+ "name": "Gaurav Kumar",
409
+ "contact": "+919999999999",
410
+ "email": "gaurav.kumar@example.com"
411
+ },
412
+ "notify": {
413
+ "sms": true,
414
+ "email": true
415
+ },
416
+ "reminder_enable": false
417
+ }
418
+
419
+ Razorpay.headers = {"Content-type" => "application/json"}
420
+
421
+ Razorpay::PaymentLink.create(para_attr.to_json)
422
+ ```
423
+
424
+ **Parameters:**
425
+
426
+ | Name | Type | Description |
427
+ |-----------------|---------|------------------------------------------------------------------------------|
428
+ |amount* | integer | Amount to be paid using the Payment Link. |
429
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
430
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
431
+ |description | string | A brief description of the Payment Link |
432
+ |customer | object | name, email, contact |
433
+ |expire_by | integer | Timestamp, in Unix, at which the Payment Link will expire. By default, a Payment Link will be valid for six months from the date of creation. |
434
+ |notify | object | sms or email (boolean) |
435
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
436
+
437
+ **Response:**
438
+ ```json
439
+ {
440
+ "amount": 340000,
441
+ "amount_due": 340000,
442
+ "amount_paid": 0,
443
+ "billing_end": null,
444
+ "billing_start": null,
445
+ "cancelled_at": null,
446
+ "comment": null,
447
+ "created_at": 1592579126,
448
+ "currency": "INR",
449
+ "currency_symbol": "₹",
450
+ "customer_details": {
451
+ "billing_address": null,
452
+ "contact": "9900990099",
453
+ "customer_contact": "9900990099",
454
+ "customer_email": "gaurav.kumar@example.com",
455
+ "customer_name": "Gaurav Kumar",
456
+ "email": "gaurav.kumar@example.com",
457
+ "gstin": null,
458
+ "id": "cust_F4WNtqj1xb0Duv",
459
+ "name": "Gaurav Kumar",
460
+ "shipping_address": null
461
+ },
462
+ "customer_id": "cust_F4WNtqj1xb0Duv",
463
+ "date": 1592579126,
464
+ "description": "Salon at Home Service",
465
+ "email_status": null,
466
+ "entity": "invoice",
467
+ "expire_by": 1608390326,
468
+ "expired_at": null,
469
+ "first_payment_min_amount": 0,
470
+ "gross_amount": 340000,
471
+ "group_taxes_discounts": false,
472
+ "id": "inv_F4WfpZLk1ct35b",
473
+ "invoice_number": null,
474
+ "issued_at": 1592579126,
475
+ "line_items": [],
476
+ "notes": [],
477
+ "order_id": "order_F4WfpxUzWmYOTl",
478
+ "paid_at": null,
479
+ "partial_payment": false,
480
+ "payment_id": null,
481
+ "receipt": "5757",
482
+ "reminder_enable": false,
483
+ "short_url": "https://rzp.io/i/vitLptM",
484
+ "sms_status": null,
485
+ "status": "issued",
486
+ "tax_amount": 0,
487
+ "taxable_amount": 0,
488
+ "terms": null,
489
+ "type": "link",
490
+ "user_id": "",
491
+ "view_less": true
492
+ }
493
+ ```
494
+ -------------------------------------------------------------------------------------------------------
495
+
496
+ ### Rename labels in checkout section
497
+
498
+ ```rb
499
+
500
+ para_attr = {
501
+ "amount": 500,
502
+ "currency": "INR",
503
+ "accept_partial": true,
504
+ "first_min_partial_amount": 100,
505
+ "description": "For XYZ purpose",
506
+ "customer": {
507
+ "name": "Gaurav Kumar",
508
+ "email": "gaurav.kumar@example.com",
509
+ "contact": "+919999999999"
510
+ },
511
+ "notify": {
512
+ "sms": true,
513
+ "email": true
514
+ },
515
+ "reminder_enable": true,
516
+ "options": {
517
+ "checkout": {
518
+ "partial_payment": {
519
+ "min_amount_label": "Minimum Money to be paid",
520
+ "partial_amount_label": "Pay in parts",
521
+ "partial_amount_description": "Pay at least ₹100",
522
+ "full_amount_label": "Pay the entire amount"
523
+ }
524
+ }
525
+ }
526
+ }
527
+
528
+ Razorpay.headers = {"Content-type" => "application/json"}
529
+
530
+ Razorpay::PaymentLink.create(para_attr.to_json)
531
+ ```
532
+
533
+ **Parameters:**
534
+
535
+ | Name | Type | Description |
536
+ |-----------------|---------|------------------------------------------------------------------------------|
537
+ |amount* | integer | Amount to be paid using the Payment Link. |
538
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
539
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
540
+ |description | string | A brief description of the Payment Link |
541
+ |customer | object | name, email, contact |
542
+ |expire_by | integer | Timestamp, in Unix, at which the Payment Link will expire. By default, a Payment Link will be valid for six months from the date of creation. |
543
+ |notify | object | sms or email (boolean) |
544
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
545
+ |options* | object | Options to rename the labels for partial payment fields in the checkout form. Parent parameter under which the checkout and partial_payment child parameters must be passed. |
546
+
547
+ **Response:**
548
+ ```json
549
+ {
550
+ "accept_partial": true,
551
+ "amount": 1000,
552
+ "amount_paid": 0,
553
+ "callback_method": "",
554
+ "callback_url": "",
555
+ "cancelled_at": 0,
556
+ "created_at": 1596193199,
557
+ "currency": "INR",
558
+ "customer": {
559
+ "contact": "+919999999999",
560
+ "email": "gaurav.kumar@example.com",
561
+ "name": "Gaurav Kumar"
562
+ },
563
+ "deleted_at": 0,
564
+ "description": "Payment for policy no #23456",
565
+ "expire_by": 0,
566
+ "expired_at": 0,
567
+ "first_min_partial_amount": 100,
568
+ "id": "plink_FL4vbXVKfW7PAz",
569
+ "notes": null,
570
+ "notify": {
571
+ "email": true,
572
+ "sms": true
573
+ },
574
+ "payments": null,
575
+ "reference_id": "#42321",
576
+ "reminder_enable": true,
577
+ "reminders": [],
578
+ "short_url": "https://rzp.io/i/F4GC9z1",
579
+ "source": "",
580
+ "source_id": "",
581
+ "status": "created",
582
+ "updated_at": 1596193199,
583
+ "user_id": ""
584
+ }
585
+ ```
586
+ -------------------------------------------------------------------------------------------------------
587
+
588
+ ### Change Business name
589
+
590
+ ```rb
591
+
592
+ para_attr = {
593
+ "amount": 1000,
594
+ "currency": "INR",
595
+ "accept_partial": true,
596
+ "first_min_partial_amount": 100,
597
+ "reference_id": "#2234542",
598
+ "description": "Payment for policy no #23456",
599
+ "customer": {
600
+ "name": "Gaurav Kumar",
601
+ "contact": "+919999999999",
602
+ "email": "gaurav.kumar@example.com"
603
+ },
604
+ "notify": {
605
+ "sms": true,
606
+ "email": true
607
+ },
608
+ "reminder_enable": true,
609
+ "options": {
610
+ "checkout": {
611
+ "name": "Lacme Corp"
612
+ }
613
+ }
614
+ }
615
+
616
+ Razorpay.headers = {"Content-type" => "application/json"}
617
+
618
+ Razorpay::PaymentLink.create(para_attr.to_json)
619
+ ```
620
+
621
+ **Parameters:**
622
+
623
+ | Name | Type | Description |
624
+ |-----------------|---------|------------------------------------------------------------------------------|
625
+ |amount* | integer | Amount to be paid using the Payment Link. |
626
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
627
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
628
+ |first_min_partial_amount | integer | |
629
+ |description | string | A brief description of the Payment Link |
630
+ |customer | object | name, email, contact |
631
+ |notify | object | sms or email (boolean) |
632
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
633
+ |options* | object | Option to customize the business name. Parent parameter under which the checkout child parameter must be passed.|
634
+
635
+ **Response:**
636
+ ```json
637
+ {
638
+ "accept_partial": true,
639
+ "amount": 1000,
640
+ "amount_paid": 0,
641
+ "callback_method": "",
642
+ "callback_url": "",
643
+ "cancelled_at": 0,
644
+ "created_at": 1596187657,
645
+ "currency": "INR",
646
+ "customer": {
647
+ "contact": "+919999999999",
648
+ "email": "gaurav.kumar@example.com",
649
+ "name": "Gaurav Kumar"
650
+ },
651
+ "description": "Payment for policy no #23456",
652
+ "expire_by": 0,
653
+ "expired_at": 0,
654
+ "first_min_partial_amount": 100,
655
+ "id": "plink_FL3M2gJFs1Jkma",
656
+ "notes": null,
657
+ "notify": {
658
+ "email": true,
659
+ "sms": true
660
+ },
661
+ "payments": null,
662
+ "reference_id": "#2234542",
663
+ "reminder_enable": true,
664
+ "reminders": [],
665
+ "short_url": "https://rzp.io/i/at2OOsR",
666
+ "source": "",
667
+ "source_id": "",
668
+ "status": "created",
669
+ "updated_at": 1596187657,
670
+ "user_id": ""
671
+ }
672
+ ```
673
+ -------------------------------------------------------------------------------------------------------
674
+
675
+ ### Prefill checkout fields
676
+
677
+ ```rb
678
+
679
+ para_attr = {
680
+ "amount": 1000,
681
+ "currency": "INR",
682
+ "accept_partial": true,
683
+ "first_min_partial_amount": 100,
684
+ "reference_id": "#417",
685
+ "description": "Payment for policy no #23456",
686
+ "customer": {
687
+ "name": "Gaurav Kumar",
688
+ "contact": "+919999999999",
689
+ "email": "gaurav.kumar@example.com"
690
+ },
691
+ "notify": {
692
+ "sms": true,
693
+ "email": true
694
+ },
695
+ "reminder_enable": true,
696
+ "options": {
697
+ "checkout": {
698
+ "prefill": {
699
+ "method": "card",
700
+ "card[name]": "Gaurav Kumar",
701
+ "card[number]": "4111111111111111",
702
+ "card[expiry]": "12/21",
703
+ "card[cvv]": "123"
704
+ }
705
+ }
706
+ }
707
+ }
708
+
709
+ Razorpay.headers = {"Content-type" => "application/json"}
710
+
711
+ Razorpay::PaymentLink.create(para_attr.to_json)
712
+ ```
713
+
714
+ **Parameters:**
715
+
716
+ | Name | Type | Description |
717
+ |-----------------|---------|------------------------------------------------------------------------------|
718
+ |amount* | integer | Amount to be paid using the Payment Link. |
719
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
720
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
721
+ |first_min_partial_amount | integer | |
722
+ |description | string | A brief description of the Payment Link |
723
+ |customer | object | name, email, contact |
724
+ |notify | object | sms or email (boolean) |
725
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
726
+ |options* | array | Options to customize Checkout. Parent parameter under which the checkout and prefill child parameters must be passed.|
727
+
728
+ **Response:**
729
+ For prefill checkout fields response please click [here](https://razorpay.com/docs/payment-links/api/new/advanced-options/customize/prefill/)
730
+
731
+ -------------------------------------------------------------------------------------------------------
732
+
733
+ ### Customize payment methods
734
+
735
+ ```rb
736
+
737
+ para_attr = {
738
+ "amount": 500,
739
+ "currency": "INR",
740
+ "accept_partial": true,
741
+ "first_min_partial_amount": 100,
742
+ "description": "For XYZ purpose",
743
+ "customer": {
744
+ "name": "Gaurav Kumar",
745
+ "email": "gaurav.kumar@example.com",
746
+ "contact": "+919999999999"
747
+ },
748
+ "notify": {
749
+ "sms": true,
750
+ "email": true
751
+ },
752
+ "reminder_enable": true,
753
+ "options": {
754
+ "checkout": {
755
+ "method": {
756
+ "netbanking": "1",
757
+ "card": "1",
758
+ "upi": "0",
759
+ "wallet": "0"
760
+ }
761
+ }
762
+ }
763
+ }
764
+
765
+ Razorpay.headers = {"Content-type" => "application/json"}
766
+
767
+ Razorpay::PaymentLink.create(para_attr.to_json)
768
+ ```
769
+
770
+ **Parameters:**
771
+
772
+ | Name | Type | Description |
773
+ |-----------------|---------|------------------------------------------------------------------------------|
774
+ |amount* | integer | Amount to be paid using the Payment Link. |
775
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
776
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
777
+ |first_min_partial_amount | integer | |
778
+ |description | string | A brief description of the Payment Link |
779
+ |customer | object | name, email, contact |
780
+ |notify | object | sms or email (boolean) |
781
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
782
+ |options* | object | Options to display or hide payment methods on the Checkout section. Parent parameter under which the checkout and method child parameters must be passed.|
783
+
784
+ **Response:**
785
+ ```json
786
+ {
787
+ "accept_partial": true,
788
+ "amount": 1000,
789
+ "amount_paid": 0,
790
+ "callback_method": "",
791
+ "callback_url": "",
792
+ "cancelled_at": 0,
793
+ "created_at": 1596188371,
794
+ "currency": "INR",
795
+ "customer": {
796
+ "contact": "+919999999999",
797
+ "email": "gaurav.kumar@example.com",
798
+ "name": "Gaurav Kumar"
799
+ },
800
+ "deleted_at": 0,
801
+ "description": "Payment for policy no #23456",
802
+ "expire_by": 0,
803
+ "expired_at": 0,
804
+ "first_min_partial_amount": 100,
805
+ "id": "plink_FL3YbdvN2Cj6gh",
806
+ "notes": null,
807
+ "notify": {
808
+ "email": true,
809
+ "sms": true
810
+ },
811
+ "payments": null,
812
+ "reference_id": "#543422",
813
+ "reminder_enable": true,
814
+ "reminders": [],
815
+ "short_url": "https://rzp.io/i/wKiXKud",
816
+ "source": "",
817
+ "source_id": "",
818
+ "status": "created",
819
+ "updated_at": 1596188371,
820
+ "user_id": ""
821
+ }
822
+ ```
823
+ -------------------------------------------------------------------------------------------------------
824
+
825
+ ### Set checkout fields as read-only
826
+
827
+ ```rb
828
+ para_attr = {
829
+ "amount": 1000,
830
+ "currency": "INR",
831
+ "accept_partial": true,
832
+ "first_min_partial_amount": 100,
833
+ "reference_id": "#20",
834
+ "description": "Payment for policy no #23456",
835
+ "customer": {
836
+ "name": "Gaurav Kumar",
837
+ "contact": "+919999999999",
838
+ "email": "gaurav.kumar@example.com"
839
+ },
840
+ "notify": {
841
+ "sms": true,
842
+ "email": true
843
+ },
844
+ "reminder_enable": true,
845
+ "options": {
846
+ "checkout": {
847
+ "readonly": {
848
+ "email": "1",
849
+ "contact": "1"
850
+ }
851
+ }
852
+ }
853
+ }
854
+
855
+ Razorpay.headers = {"Content-type" => "application/json"}
856
+
857
+ Razorpay::PaymentLink.create(para_attr.to_json)
858
+ ```
859
+
860
+ **Parameters:**
861
+
862
+ | Name | Type | Description |
863
+ |-----------------|---------|------------------------------------------------------------------------------|
864
+ |amount* | integer | Amount to be paid using the Payment Link. |
865
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
866
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
867
+ |first_min_partial_amount | integer | |
868
+ |description | string | A brief description of the Payment Link |
869
+ |customer | object | name, email, contact |
870
+ |notify | object | sms or email (boolean) |
871
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
872
+ |options* | object | All parameters listed [here](https://razorpay.com/docs/api/payments/payment-links/v1/customise/read-only/#request-parameters) are supported |
873
+
874
+ **Response:**
875
+ ```json
876
+ {
877
+ "accept_partial": true,
878
+ "amount": 1000,
879
+ "amount_paid": 0,
880
+ "callback_method": "",
881
+ "callback_url": "",
882
+ "cancelled_at": 0,
883
+ "created_at": 1596190845,
884
+ "currency": "INR",
885
+ "customer": {
886
+ "contact": "+919999999999",
887
+ "email": "gaurav.kumar@example.com",
888
+ "name": "Gaurav Kumar"
889
+ },
890
+ "deleted_at": 0,
891
+ "description": "Payment for policy no #23456",
892
+ "expire_by": 0,
893
+ "expired_at": 0,
894
+ "first_min_partial_amount": 100,
895
+ "id": "plink_FL4GA1t6FBcaVR",
896
+ "notes": null,
897
+ "notify": {
898
+ "email": true,
899
+ "sms": true
900
+ },
901
+ "payments": null,
902
+ "reference_id": "#19129",
903
+ "reminder_enable": true,
904
+ "reminders": [],
905
+ "short_url": "https://rzp.io/i/QVwUglR",
906
+ "source": "",
907
+ "source_id": "",
908
+ "status": "created",
909
+ "updated_at": 1596190845,
910
+ "user_id": ""
911
+ }
912
+ ```
913
+ -------------------------------------------------------------------------------------------------------
914
+
915
+ ### Implement thematic changes in payment links checkout section
916
+
917
+ ```rb
918
+
919
+ para_attr = {
920
+ "amount": 1000,
921
+ "currency": "INR",
922
+ "accept_partial": true,
923
+ "first_min_partial_amount": 100,
924
+ "reference_id": "#423212",
925
+ "description": "Payment for policy no #23456",
926
+ "customer": {
927
+ "name": "Gaurav Kumar",
928
+ "contact": "+919999999999",
929
+ "email": "gaurav.kumar@example.com"
930
+ },
931
+ "notify": {
932
+ "sms": true,
933
+ "email": true
934
+ },
935
+ "reminder_enable": true,
936
+ "options": {
937
+ "checkout": {
938
+ "theme": {
939
+ "hide_topbar": true
940
+ }
941
+ }
942
+ }
943
+ }
944
+
945
+ Razorpay.headers = {"Content-type" => "application/json"}
946
+
947
+ Razorpay::PaymentLink.create(para_attr.to_json)
948
+ ```
949
+
950
+ **Parameters:**
951
+
952
+ | Name | Type | Description |
953
+ |-----------------|---------|------------------------------------------------------------------------------|
954
+ |amount* | integer | Amount to be paid using the Payment Link. |
955
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
956
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
957
+ |first_min_partial_amount | integer | |
958
+ |description | string | A brief description of the Payment Link |
959
+ |customer | object | name, email, contact |
960
+ |notify | object | sms or email (boolean) |
961
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
962
+ |options* | object | Options to show or hide the top bar. Parent parameter under which the checkout and theme child parameters must be passed.|
963
+
964
+ **Response:**
965
+ ```json
966
+ {
967
+ "accept_partial": true,
968
+ "amount": 1000,
969
+ "amount_paid": 0,
970
+ "callback_method": "",
971
+ "callback_url": "",
972
+ "cancelled_at": 0,
973
+ "created_at": 1596187814,
974
+ "currency": "INR",
975
+ "customer": {
976
+ "contact": "+919999999999",
977
+ "email": "gaurav.kumar@example.com",
978
+ "name": "Gaurav Kumar"
979
+ },
980
+ "description": "Payment for policy no #23456",
981
+ "expire_by": 0,
982
+ "expired_at": 0,
983
+ "first_min_partial_amount": 100,
984
+ "id": "plink_FL3Oncr7XxXFf6",
985
+ "notes": null,
986
+ "notify": {
987
+ "email": true,
988
+ "sms": true
989
+ },
990
+ "payments": null,
991
+ "reference_id": "#423212",
992
+ "reminder_enable": true,
993
+ "reminders": [],
994
+ "short_url": "https://rzp.io/i/j45EmLE",
995
+ "source": "",
996
+ "source_id": "",
997
+ "status": "created",
998
+ "updated_at": 1596187814,
999
+ "user_id": ""
1000
+ }
1001
+ ```
1002
+ -------------------------------------------------------------------------------------------------------
1003
+
1004
+ ### Rename labels in payment details section
1005
+
1006
+ ```rb
1007
+ para_attr = {
1008
+ "amount": 1000,
1009
+ "currency": "INR",
1010
+ "accept_partial": true,
1011
+ "first_min_partial_amount": 100,
1012
+ "reference_id": "#421",
1013
+ "description": "Payment for policy no #23456",
1014
+ "customer": {
1015
+ "name": "Gaurav Kumar",
1016
+ "contact": "+919999999999",
1017
+ "email": "gaurav.kumar@example.com"
1018
+ },
1019
+ "notify": {
1020
+ "sms": true,
1021
+ "email": true
1022
+ },
1023
+ "reminder_enable": true,
1024
+ "options": {
1025
+ "checkout": {
1026
+ "partial_payment": {
1027
+ "min_amount_label": "Minimum Money to be paid",
1028
+ "partial_amount_label": "Pay in parts",
1029
+ "partial_amount_description": "Pay at least ₹100",
1030
+ "full_amount_label": "Pay the entire amount"
1031
+ }
1032
+ }
1033
+ }
1034
+ }
1035
+
1036
+ Razorpay.headers = {"Content-type" => "application/json"}
1037
+
1038
+ Razorpay::PaymentLink.create(para_attr.to_json)
1039
+ ```
1040
+
1041
+ **Parameters:**
1042
+
1043
+ | Name | Type | Description |
1044
+ |-----------------|---------|------------------------------------------------------------------------------|
1045
+ |amount* | integer | Amount to be paid using the Payment Link. |
1046
+ |currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
1047
+ |accept_partial | boolean | Indicates whether customers can make partial payments using the Payment Link. Possible values:true - Customer can make partial payments.false (default) - Customer cannot make partial payments. |
1048
+ |first_min_partial_amount | integer | |
1049
+ |description | string | A brief description of the Payment Link |
1050
+ |customer | object | name, email, contact |
1051
+ |notify | object | sms or email (boolean) |
1052
+ |reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
1053
+ |options* | object | Parent parameter under which the hosted_page and label child parameters must be passed.|
1054
+
1055
+ **Response:**
1056
+ For rename labels in payment details section response please click [here](https://razorpay.com/docs/payment-links/api/new/advanced-options/customize/rename-payment-details-labels/)
1057
+
1058
+ -------------------------------------------------------------------------------------------------------
1059
+
1060
+ **PN: * indicates mandatory fields**
1061
+ <br>
1062
+ <br>
1063
+ **For reference click [here](https://razorpay.com/docs/api/payment-links/)**