Skip to content

Commit 69dd174

Browse files
authored
feat: add partner's api's (#351)
1 parent 69edcbc commit 69dd174

40 files changed

+4071
-66
lines changed

documents/account.md

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

documents/card.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,48 @@ instance.customers.deleteToken(customerId,tokenId)
559559
}
560560
```
561561
-------------------------------------------------------------------------------------------------------
562+
## Using Card Number/ Tokenised Card Number
562563

564+
```js
565+
instance.cards.requestCardReference({"number":"4854980604708430"});
566+
```
567+
**Parameters:**
568+
569+
| Name | Type | Description |
570+
|-------------|---------|------------------------------------------------------------------------------|
571+
| number* | string | The card number whose PAR or network reference id should be retrieved. |
572+
| tokenised | string | Determines if the card is saved as a token. Possible value is `true` or `false` |
573+
574+
**Response:**
575+
```json
576+
{
577+
"network": "Visa",
578+
"payment_account_reference": "V0010013819231376539033235990",
579+
"network_reference_id": null
580+
}
581+
```
582+
-------------------------------------------------------------------------------------------------------
583+
584+
## Using Razporpay token
585+
586+
```js
587+
instance.cards.requestCardReference({"token":"token_4lsdksD31GaZ09"});
588+
```
589+
**Parameters:**
590+
591+
| Name | Type | Description |
592+
|-------------|---------|------------------------------------------------------------------------------|
593+
| token* | string | The token whose PAR or network reference id should be retrieved.|
594+
595+
**Response:**
596+
```json
597+
{
598+
"network": "Visa",
599+
"payment_account_reference": "V0010013819231376539033235990",
600+
"network_reference_id": null
601+
}
602+
```
603+
-------------------------------------------------------------------------------------------------------
563604
**PN: * indicates mandatory fields**
564605
<br>
565606
<br>
566-
**For reference click [here](https://razorpay.com/docs/api/recurring-payments/cards/authorization-transaction/)**

documents/payment.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,50 @@ instance.payments.fetchPaymentMethods();
833833
please refer this [doc](https://razorpay.com/docs/payments/third-party-validation/s2s-integration/methods-api/#fetch-payment-methods) for response
834834

835835
-------------------------------------------------------------------------------------------------------
836+
### Token IIN API
836837

838+
```js
839+
var tokenIin = "412345";
840+
841+
instance.iins.fetch(tokenIin);
842+
```
843+
844+
**Parameters:**
845+
846+
| Name | Type | Description |
847+
|------------|--------|-----------------------------------|
848+
| tokenIin* | string | The token IIN. |
849+
850+
**Response:**
851+
```json
852+
{
853+
"iin": "412345",
854+
"entity": "iin",
855+
"network": "Visa",
856+
"type": "credit",
857+
"sub_type": "business",
858+
"issuer_code": "HDFC",
859+
"issuer_name": "HDFC Bank Ltd",
860+
"international": false,
861+
"is_tokenized": true,
862+
"card_iin": "411111",
863+
"emi":{
864+
"available": true
865+
},
866+
"recurring": {
867+
"available": true
868+
},
869+
"authentication_types": [
870+
{
871+
"type":"3ds"
872+
},
873+
{
874+
"type":"otp"
875+
}
876+
]
877+
}
878+
```
879+
-------------------------------------------------------------------------------------------------------
837880
**PN: * indicates mandatory fields**
838881
<br>
839882
<br>

0 commit comments

Comments
 (0)