documents/paymentLink.md in razorpay-3.0.0 vs documents/paymentLink.md in razorpay-3.0.1
- old
+ new
@@ -74,17 +74,20 @@
| Name | Type | Description |
|-----------------|---------|------------------------------------------------------------------------------|
|upi_link* | boolean | boolean Must be set to true // to creating UPI Payment Link only |
|amount* | integer | Amount to be paid using the Payment Link. |
|currency | string | A three-letter ISO code for the currency in which you want to accept the payment. For example, INR. |
+|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 |
|description | string | A brief description of the Payment Link |
-|reference_id | string | AReference number tagged to a Payment Link. |
-|customer | object | name, email, contact |
+|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 |
+|reference_id | string | Reference number tagged to a Payment Link. |
+|customer | object | All parameters listed [here](https://razorpay.com/docs/api/payments/payment-links/#sample-codes-for-standard-payment-links) are supported |
|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. |
|notify | object | sms or email (boolean) |
-|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” |
+|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” |
+
**Response:**
For create payment link response please click [here](https://razorpay.com/docs/api/payment-links/#create-payment-link)
-------------------------------------------------------------------------------------------------------
@@ -134,11 +137,11 @@
paymentLinkId = "plink_ExjpAUN3gVHrPJ"
para_attr = {
"reference_id": "TS35",
"expire_by": 1653347540,
- "reminder_enable":false,
+ "reminder_enable": false,
"notes":{
"policy_name": "Jeevan Saral"
}
}
@@ -206,39 +209,54 @@
### Transfer payments received using payment links
```rb
para_attr = {
- "amount": 20000,
+ "amount": 1500,
"currency": "INR",
"accept_partial": false,
- "description": "For XYZ purpose",
+ "reference_id": "#aasasw8",
+ "description": "Payment for policy no #23456",
"customer": {
"name": "Gaurav Kumar",
- "email": "gaurav.kumar@example.com",
- "contact": "+919999999999"
+ "contact": "+919999999999",
+ "email": "gaurav.kumar@example.com"
},
"notify": {
"sms": true,
"email": true
},
"reminder_enable": true,
"options": {
- "order": [
- {
- "account": "acc_CNo3jSI8OkFJJJ",
- "amount": 500,
- "currency": "INR",
- "notes": {
- "branch": "Acme Corp Bangalore North",
- "name": "Saurav Kumar",
+ "order": {
+ "transfers": [
+ {
+ "account": "acc_CPRsN1LkFccllA",
+ "amount": 500,
+ "currency": "INR",
+ "notes": {
+ "branch": "Acme Corp Bangalore North",
+ "name": "Bhairav Kumar"
+ },
"linked_account_notes": [
"branch"
]
+ },
+ {
+ "account": "acc_CNo3jSI8OkFJJJ",
+ "amount": 500,
+ "currency": "INR",
+ "notes": {
+ "branch": "Acme Corp Bangalore South",
+ "name": "Saurav Kumar"
+ },
+ "linked_account_notes": [
+ "branch"
+ ]
}
- }
- ]
+ ]
+ }
}
}
Razorpay.headers = {"Content-type" => "application/json"}
@@ -849,10 +867,10 @@
|first_min_partial_amount | integer | |
|description | string | A brief description of the Payment Link |
|customer | object | name, email, contact |
|notify | object | sms or email (boolean) |
|reminder_enable | boolean | To disable reminders for a Payment Link, pass reminder_enable as false |
-|options* | object | Options to set contact and email as read-only fields on Checkout. Parent parameter under which the checkout and readonly child parameters must be passed.|
+|options* | object | All parameters listed [here](https://razorpay.com/docs/api/payments/payment-links/v1/customise/read-only/#request-parameters) are supported |
**Response:**
```json
{
"accept_partial": true,
\ No newline at end of file