Skip to content

Commit 6fa5fe2

Browse files
authored
feat: add partner's api's (#255)
1 parent 60df5f0 commit 6fa5fe2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3125
-120
lines changed

documents/account.md

Lines changed: 446 additions & 0 deletions
Large diffs are not rendered by default.

documents/card.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,48 @@ client.token.delete(customerId,tokenId)
571571
}
572572
```
573573
-------------------------------------------------------------------------------------------------------
574+
## Using Card Number/ Tokenised Card Number
574575

576+
```py
577+
client.card.requestCardReference({"number":"4854980604708430"})
578+
```
579+
**Parameters:**
580+
581+
| Name | Type | Description |
582+
|-------------|---------|------------------------------------------------------------------------------|
583+
| number* | string | The card number whose PAR or network reference id should be retrieved. |
584+
| tokenised | string | Determines if the card is saved as a token. Possible value is `true` or `false` |
585+
586+
**Response:**
587+
```json
588+
{
589+
"network": "Visa",
590+
"payment_account_reference": "V0010013819231376539033235990",
591+
"network_reference_id": null
592+
}
593+
```
594+
-------------------------------------------------------------------------------------------------------
595+
596+
## Using Razporpay token
597+
598+
```py
599+
client.card.requestCardReference({"token":"token_4lsdksD31GaZ09"})
600+
```
601+
**Parameters:**
602+
603+
| Name | Type | Description |
604+
|-------------|---------|------------------------------------------------------------------------------|
605+
| token* | string | The token whose PAR or network reference id should be retrieved.|
606+
607+
**Response:**
608+
```json
609+
{
610+
"network": "Visa",
611+
"payment_account_reference": "V0010013819231376539033235990",
612+
"network_reference_id": null
613+
}
614+
```
615+
-------------------------------------------------------------------------------------------------------
575616
**PN: * indicates mandatory fields**
576617
<br>
577618
<br>

documents/payment.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ client.payment.fetch(paymentId)
172172
### Fetch payments for an order
173173

174174
```py
175-
client.order.payment(orderId)
175+
client.order.payments(orderId)
176176
```
177177
**Parameters**
178178

@@ -717,7 +717,50 @@ Doc reference [doc](https://razorpay.com/docs/payments/payment-methods/cards/aut
717717
}
718718
```
719719
-------------------------------------------------------------------------------------------------------
720+
### Token IIN API
720721

722+
```py
723+
tokenIin = "412345"
724+
725+
client.iin.fetch(tokenIin)
726+
```
727+
728+
**Parameters:**
729+
730+
| Name | Type | Description |
731+
|------------|--------|-----------------------------------|
732+
| tokenIin* | string | The token IIN. |
733+
734+
**Response:**
735+
```json
736+
{
737+
"iin": "412345",
738+
"entity": "iin",
739+
"network": "Visa",
740+
"type": "credit",
741+
"sub_type": "business",
742+
"issuer_code": "HDFC",
743+
"issuer_name": "HDFC Bank Ltd",
744+
"international": false,
745+
"is_tokenized": true,
746+
"card_iin": "411111",
747+
"emi":{
748+
"available": true
749+
},
750+
"recurring": {
751+
"available": true
752+
},
753+
"authentication_types": [
754+
{
755+
"type":"3ds"
756+
},
757+
{
758+
"type":"otp"
759+
}
760+
]
761+
}
762+
```
763+
-------------------------------------------------------------------------------------------------------
721764
**PN: * indicates mandatory fields**
722765
<br>
723766
<br>

0 commit comments

Comments
 (0)