From 3d8286ec54ea0be19b5db1ab5c12f474df7dbe0e Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Wed, 29 Jun 2022 00:19:34 +0530 Subject: [PATCH 1/3] fixed according doc --- documents/upi.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/documents/upi.md b/documents/upi.md index 0bbbe311..00f1727d 100644 --- a/documents/upi.md +++ b/documents/upi.md @@ -6,6 +6,7 @@ client.customer.create({ "name": "Gaurav Kumar", "contact": 9123456780, "email": "gaurav.kumar@example.com", + "fail_existing": 0, "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Grey… decaf." @@ -139,18 +140,16 @@ client.registration_link.create({ | Name | Type | Description | |-----------------|---------|------------------------------------------------------------------------------| -| customer | object | Details of the customer to whom the registration link will be sent. | +| customer | array | All parameters listed [here](https://razorpay.com/docs/api/payments/recurring-payments/upi/create-authorization-transaction/#121-create-a-registration-link) are supported | | type* | string | In this case, the value is `link`. | | currency* | string | The 3-letter ISO currency code for the payment. Currently, only `INR` is supported. | | amount* | integer | The payment amount in the smallest currency sub-unit. | | description* | string | A description that appears on the hosted page. For example, `12:30 p.m. Thali meals (Gaurav Kumar`). | -| subscription_registration | object | Details of the authorization payment. | -| notes | object | A key-value pair | -|sms_notify | array | Details of the line item that is billed in the invoice. | -|email_notify | array | Details of the line item that is billed in the invoice. | -|expire_by | array | Details of the line item that is billed in the invoice. | -|receipt | string | Your system order reference id. | -|notes | object | A key-value pair | +| subscription_registration | array | All parameters listed [here](https://razorpay.com/docs/api/payments/recurring-payments/upi/create-authorization-transaction/#121-create-a-registration-link) are supported | +| sms_notify | boolean | SMS notifications are to be sent by Razorpay (default : 1) | +| email_notify | boolean | Email notifications are to be sent by Razorpay (default : 1) | +| expire_by | integer | The timestamp, in Unix format, till when the customer can make the authorization payment. | +| notes | array | A key-value pair | **Response:** ```json @@ -436,6 +435,7 @@ client.order.create({ "amount":1000, "currency":"INR", "receipt":"Receipt No. 1", + "payment_capture":True, "notes": { "notes_key_1":"Tea, Earl Grey, Hot", "notes_key_2":"Tea, Earl Grey… decaf." @@ -450,7 +450,8 @@ client.order.create({ | amount* | integer | Amount of the order to be paid | | currency* | string | Currency of the order. Currently only `INR` is supported. | | receipt | string | Your system order reference id. | -| notes | object | A key-value pair | +| notes | array | A key-value pair | +| payment_capture | boolean | Indicates whether payment status should be changed to captured automatically or not. Possible values: true - Payments are captured automatically. false - Payments are not captured automatically. | **Response:** ```json From ed24dd5d71ebcb0ead3fabdd3227c5c890580eeb Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Fri, 1 Jul 2022 17:31:38 +0530 Subject: [PATCH 2/3] fixed according comments --- documents/upi.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/documents/upi.md b/documents/upi.md index 00f1727d..dc08815a 100644 --- a/documents/upi.md +++ b/documents/upi.md @@ -47,24 +47,20 @@ client.customer.create({ ```py client.order.create({ - "amount": 0, + "amount": 100, "currency": "INR", "method": "upi", "customer_id": "cust_1Aa00000000001", "receipt": "Receipt No. 1", + "token": { + "max_amount": 9999900, + "expire_at": 4102444799, + "frequency": "monthly" + }, "notes": { "notes_key_1": "Beam me up Scotty", "notes_key_2": "Engage" }, - "token": { - "auth_type": "netbanking", - "max_amount": 9999900, - "expire_at": 4102444799, - "notes": { - "notes_key_1": "Tea, Earl Grey, Hot", - "notes_key_2": "Tea, Earl Grey… decaf." - } - } }) ``` @@ -77,7 +73,8 @@ client.order.create({ | method* | string | The authorization method. In this case the value will be `emandate` | | receipt | string | Your system order reference id. | | notes | object | A key-value pair | -| token | object | A key-value pair | +| token | object | All parameters listed [here](https://razorpay.com/docs/api/payments/recurring-payments/upi/create-authorization-transaction#112-create-an-order) are supported | + **Response:** ```json From fede84eb09d4e2f5f0876e8b7150688096261a2f Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Fri, 1 Jul 2022 18:32:29 +0530 Subject: [PATCH 3/3] add mandatory --- documents/upi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documents/upi.md b/documents/upi.md index dc08815a..a4aa0dd4 100644 --- a/documents/upi.md +++ b/documents/upi.md @@ -448,7 +448,7 @@ client.order.create({ | currency* | string | Currency of the order. Currently only `INR` is supported. | | receipt | string | Your system order reference id. | | notes | array | A key-value pair | -| payment_capture | boolean | Indicates whether payment status should be changed to captured automatically or not. Possible values: true - Payments are captured automatically. false - Payments are not captured automatically. | +| payment_capture* | boolean | Indicates whether payment status should be changed to captured automatically or not. Possible values: true - Payments are captured automatically. false - Payments are not captured automatically. | **Response:** ```json