Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions documents/payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -127,6 +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`, `transaction`, `transaction.settlement`, `refunds`, `token` or `emi`|

**Response:**
```json
Expand Down Expand Up @@ -259,6 +261,7 @@ client.payment.edit(paymentId,{
"wallet": null,
"vpa": null,
"email": "testme@acme.com",
"customer_id": "cust_JR4BVKjKyJ7enk",
"notes": {
"key1": "value1",
"key2": "value2"
Expand Down Expand Up @@ -312,24 +315,25 @@ 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
}
```
-------------------------------------------------------------------------------------------------------

### Fetch Payment Downtime Details

```py
client.payment.fetchPaymentDowntime()
client.payment.fetchDownTime()
```
**Response:** <br>
For payment downtime response please click [here](https://razorpay.com/docs/api/payments/downtime/#fetch-payment-downtime-details)
Expand Down Expand Up @@ -377,22 +381,27 @@ 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:** <br>
```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
}
```
-------------------------------------------------------------------------------------------------------
Expand Down