From 6b0c8c1423044cb4b38cb73886946935316c4aa0 Mon Sep 17 00:00:00 2001 From: ankitdas13 Date: Tue, 14 Jun 2022 17:42:07 +0530 Subject: [PATCH] token doc correction --- documents/token.md | 154 ++++++++++++++++++++++++--------------------- 1 file changed, 83 insertions(+), 71 deletions(-) diff --git a/documents/token.md b/documents/token.md index 25aa91e9..ccf4cf1b 100644 --- a/documents/token.md +++ b/documents/token.md @@ -70,47 +70,50 @@ client.token.all(customerId) **Response:** ```json { - "entity":"collection", - "count":1, - "items":[ - { - "id":"token_HouA2OQR5Z2jTL", - "entity":"token", - "token":"2JPRk664pZHUWG", - "bank":null, - "wallet":null, - "method":"card", - "card":{ - "entity":"card", - "name":"Gaurav Kumar", - "last4":"8950", - "network":"Visa", - "type":"credit", - "issuer":"STCB", - "international":false, - "emi":false, - "sub_type":"consumer", - "expiry_month":12, - "expiry_year":2021, - "flows":{ - "otp":true, - "recurring":true - } - }, - "recurring":true, - "recurring_details":{ - "status":"confirmed", - "failure_reason":null - }, - "auth_type":null, - "mrn":null, - "used_at":1629779657, - "created_at":1629779657, - "expired_at":1640975399, - "dcc_enabled":false, - "billing_address":null - } - ] + "entity": "collection", + "count": 1, + "items": [ + { + "id": "token_JIskPHR6HnypUV", + "entity": "token", + "token": "14LDXyJ1q4MKge", + "bank": null, + "wallet": null, + "method": "card", + "card": { + "entity": "card", + "name": "ankit", + "last4": "4366", + "network": "Visa", + "type": "credit", + "issuer": "UTIB", + "international": false, + "emi": true, + "sub_type": "consumer", + "token_iin": null, + "expiry_month": 12, + "expiry_year": 2022, + "flows": { + "otp": true, + "recurring": true + } + }, + "recurring": true, + "recurring_details": { + "status": "confirmed", + "failure_reason": null + }, + "auth_type": null, + "mrn": null, + "used_at": 1649861969, + "created_at": 1649861969, + "expired_at": 1672511399, + "status": null, + "notes": [], + "dcc_enabled": false, + "compliant_with_tokenisation_guidelines": false + } + ] } ``` ------------------------------------------------------------------------------------------------------- @@ -130,35 +133,44 @@ client.token.fetch(customerId, tokenId) **Response:** ```json { - "id": "token_Hxe0skTXLeg9pF", - "entity": "token", - "token": "F85BgXnGVwcuqV", - "bank": null, - "wallet": null, - "method": "card", - "card": { - "entity": "card", - "name": "ankit", - "last4": "5449", - "network": "MasterCard", - "type": "credit", - "issuer": "UTIB", - "international": false, - "emi": false, - "sub_type": "consumer", - "expiry_month": 12, - "expiry_year": 2024, - "flows": { - "recurring": true - } - }, - "recurring": true, - "auth_type": null, - "mrn": null, - "used_at": 1632976165, - "created_at": 1631687852, - "expired_at": 1634215992, - "dcc_enabled": false + "id": "token_JIskPHR6HnypUV", + "entity": "token", + "token": "14LDXyJ1q4MKge", + "bank": null, + "wallet": null, + "method": "card", + "card": { + "entity": "card", + "name": "ankit", + "last4": "4366", + "network": "Visa", + "type": "credit", + "issuer": "UTIB", + "international": false, + "emi": true, + "sub_type": "consumer", + "token_iin": null, + "expiry_month": 12, + "expiry_year": 2022, + "flows": { + "otp": true, + "recurring": true + } + }, + "recurring": true, + "recurring_details": { + "status": "confirmed", + "failure_reason": null + }, + "auth_type": null, + "mrn": null, + "used_at": 1649861969, + "created_at": 1649861969, + "expired_at": 1672511399, + "status": null, + "notes": [], + "dcc_enabled": false, + "compliant_with_tokenisation_guidelines": false } ``` ------------------------------------------------------------------------------------------------------- @@ -187,4 +199,4 @@ client.token.delete(customerId, tokenId) **PN: * indicates mandatory fields**

-**For reference click [here](https://razorpay.com/docs/api/recurring-payments/upi/tokens/)** \ No newline at end of file +**For reference click [here](https://razorpay.com/docs/api/payments/recurring-payments/upi/tokens/)** \ No newline at end of file