From 75792d9f6d838f6da5ba25eb9ea8458656f9793a Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Tue, 14 Jun 2022 18:40:57 +0530 Subject: [PATCH 1/3] payment doc correction --- documents/payment.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/documents/payment.md b/documents/payment.md index b9addc4a..1aae3d30 100644 --- a/documents/payment.md +++ b/documents/payment.md @@ -15,7 +15,7 @@ client.payment.capture(paymentId,{ |-----------|---------|--------------------------------------------------------------------------------| | paymentId* | string | Id of the payment to capture | | amount* | integer | The amount to be captured (should be equal to the authorized amount, in paise) | -| currency | string | The currency of the payment (defaults to INR) | +| currency* | string | The currency of the payment (defaults to INR) | **Response:** ```json @@ -127,6 +127,7 @@ client.payment.fetch(paymentId) | Name | Type | Description | |------------|--------|-----------------------------------| | paymentId* | string | Id of the payment to be retrieved | +| expand[] | string | Used to retrieve additional information about the payment. Possible value is `card`, `offers` or `emi`| **Response:** ```json @@ -259,6 +260,7 @@ client.payment.edit(paymentId,{ "wallet": null, "vpa": null, "email": "testme@acme.com", + "customer_id": "cust_JR4BVKjKyJ7enk", "notes": { "key1": "value1", "key2": "value2" @@ -312,16 +314,17 @@ client.payment.fetchCardDetails(paymentId) **Response:** ```json { - "id": "card_6krZ6bcjoeqyV9", + "id": "card_JXPULjlKqC5j0i", "entity": "card", - "name": "Gaurav", - "last4": "3335", + "name": "gaurav", + "last4": "4366", "network": "Visa", - "type": "debit", - "issuer": "SBIN", + "type": "credit", + "issuer": "UTIB", "international": false, - "emi": null, - "sub_type": "business" + "emi": true, + "sub_type": "consumer", + "token_iin": null } ``` ------------------------------------------------------------------------------------------------------- @@ -329,7 +332,7 @@ client.payment.fetchCardDetails(paymentId) ### Fetch Payment Downtime Details ```py -client.payment.fetchPaymentDowntime() +client.payment.fetchDownTime() ``` **Response:**
For payment downtime response please click [here](https://razorpay.com/docs/api/payments/downtime/#fetch-payment-downtime-details) From 38e40815d9b4528a931eaecf82be74be88e4db1d Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Thu, 30 Jun 2022 16:20:35 +0530 Subject: [PATCH 2/3] update params in readme --- documents/payment.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/documents/payment.md b/documents/payment.md index 1aae3d30..f63513d3 100644 --- a/documents/payment.md +++ b/documents/payment.md @@ -70,6 +70,7 @@ client.payment.all(option) | to | timestamp | timestamp before which the payments were created | | count | integer | number of payments to fetch (default: 10) | | skip | integer | number of payments to be skipped (default: 0) | +| expand[] | string | Used to retrieve additional information about the payment. Possible value is `card`, `offers`, `transaction`, `transaction.settlement`, `refunds`, `token` or `emi`| **Response:** ```json @@ -127,7 +128,7 @@ client.payment.fetch(paymentId) | Name | Type | Description | |------------|--------|-----------------------------------| | paymentId* | string | Id of the payment to be retrieved | -| expand[] | string | Used to retrieve additional information about the payment. Possible value is `card`, `offers` or `emi`| +| expand[] | string | Used to retrieve additional information about the payment. Possible value is `card`, `offers`, `transaction`, `transaction.settlement`, `refunds`, `token` or `emi`| **Response:** ```json @@ -385,17 +386,21 @@ client.order.create({ **Response:**
```json { - "id": "order_DBJOWzybf0sJbb", + "id": "order_Jng8xOZRVEf97O", "entity": "order", "amount": 50000, "amount_paid": 0, "amount_due": 50000, "currency": "INR", "receipt": "rcptid_11", + "offer_id": "offer_JTUADI4ZWBGWur", + "offers": [ + "offer_JTUADI4ZWBGWur" + ], "status": "created", "attempts": 0, "notes": [], - "created_at": 1566986570 + "created_at": 1656586126 } ``` ------------------------------------------------------------------------------------------------------- From aa8a5f7eb5693c3d72cf560952765b0f55e0efb9 Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Fri, 1 Jul 2022 01:08:44 +0530 Subject: [PATCH 3/3] added notes param --- documents/payment.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documents/payment.md b/documents/payment.md index f63513d3..37471048 100644 --- a/documents/payment.md +++ b/documents/payment.md @@ -381,7 +381,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. | -| payment | object | please refer this [doc](https://razorpay.com/docs/payments/payments/capture-settings/api/) for params | +| payment | object | please refer this [doc](https://razorpay.com/docs/payments/payments/capture-settings/api/) for params | +| notes | object | A key-value pair | **Response:**
```json