Skip to content

Commit

Permalink
feat: add partner's api's (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 authored Aug 3, 2023
1 parent 60df5f0 commit 6fa5fe2
Show file tree
Hide file tree
Showing 57 changed files with 3,125 additions and 120 deletions.
446 changes: 446 additions & 0 deletions documents/account.md

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions documents/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,48 @@ client.token.delete(customerId,tokenId)
}
```
-------------------------------------------------------------------------------------------------------
## Using Card Number/ Tokenised Card Number

```py
client.card.requestCardReference({"number":"4854980604708430"})
```
**Parameters:**

| Name | Type | Description |
|-------------|---------|------------------------------------------------------------------------------|
| number* | string | The card number whose PAR or network reference id should be retrieved. |
| tokenised | string | Determines if the card is saved as a token. Possible value is `true` or `false` |

**Response:**
```json
{
"network": "Visa",
"payment_account_reference": "V0010013819231376539033235990",
"network_reference_id": null
}
```
-------------------------------------------------------------------------------------------------------

## Using Razporpay token

```py
client.card.requestCardReference({"token":"token_4lsdksD31GaZ09"})
```
**Parameters:**

| Name | Type | Description |
|-------------|---------|------------------------------------------------------------------------------|
| token* | string | The token whose PAR or network reference id should be retrieved.|

**Response:**
```json
{
"network": "Visa",
"payment_account_reference": "V0010013819231376539033235990",
"network_reference_id": null
}
```
-------------------------------------------------------------------------------------------------------
**PN: * indicates mandatory fields**
<br>
<br>
Expand Down
45 changes: 44 additions & 1 deletion documents/payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ client.payment.fetch(paymentId)
### Fetch payments for an order

```py
client.order.payment(orderId)
client.order.payments(orderId)
```
**Parameters**

Expand Down Expand Up @@ -717,7 +717,50 @@ Doc reference [doc](https://razorpay.com/docs/payments/payment-methods/cards/aut
}
```
-------------------------------------------------------------------------------------------------------
### Token IIN API

```py
tokenIin = "412345"

client.iin.fetch(tokenIin)
```

**Parameters:**

| Name | Type | Description |
|------------|--------|-----------------------------------|
| tokenIin* | string | The token IIN. |

**Response:**
```json
{
"iin": "412345",
"entity": "iin",
"network": "Visa",
"type": "credit",
"sub_type": "business",
"issuer_code": "HDFC",
"issuer_name": "HDFC Bank Ltd",
"international": false,
"is_tokenized": true,
"card_iin": "411111",
"emi":{
"available": true
},
"recurring": {
"available": true
},
"authentication_types": [
{
"type":"3ds"
},
{
"type":"otp"
}
]
}
```
-------------------------------------------------------------------------------------------------------
**PN: * indicates mandatory fields**
<br>
<br>
Expand Down
Loading

0 comments on commit 6fa5fe2

Please sign in to comment.