Skip to content

Commit

Permalink
feat: add partner's api's (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 authored Jun 30, 2023
1 parent 69edcbc commit 69dd174
Show file tree
Hide file tree
Showing 40 changed files with 4,071 additions and 66 deletions.
448 changes: 448 additions & 0 deletions documents/account.md

Large diffs are not rendered by default.

42 changes: 41 additions & 1 deletion documents/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,48 @@ instance.customers.deleteToken(customerId,tokenId)
}
```
-------------------------------------------------------------------------------------------------------
## Using Card Number/ Tokenised Card Number

```js
instance.cards.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

```js
instance.cards.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>
**For reference click [here](https://razorpay.com/docs/api/recurring-payments/cards/authorization-transaction/)**
43 changes: 43 additions & 0 deletions documents/payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,50 @@ instance.payments.fetchPaymentMethods();
please refer this [doc](https://razorpay.com/docs/payments/third-party-validation/s2s-integration/methods-api/#fetch-payment-methods) for response

-------------------------------------------------------------------------------------------------------
### Token IIN API

```js
var tokenIin = "412345";

instance.iins.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 69dd174

Please sign in to comment.