@gofynd/fdk-client-javascript 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/on_create_release.yml +23 -0
- package/.github/workflows/on_merge_main.yml +38 -0
- package/.github/workflows/on_pull_request.yml +35 -0
- package/.prettierrc +5 -0
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/application.d.ts +3 -0
- package/application.js +6 -0
- package/common.d.ts +4 -0
- package/common.js +9 -0
- package/documentation/application/CART.md +7290 -0
- package/documentation/application/CATALOG.md +9570 -0
- package/documentation/application/COMMON.md +448 -0
- package/documentation/application/COMMUNICATION.md +463 -0
- package/documentation/application/CONFIGURATION.md +2902 -0
- package/documentation/application/CONTENT.md +3350 -0
- package/documentation/application/FILESTORAGE.md +491 -0
- package/documentation/application/LEAD.md +1891 -0
- package/documentation/application/LOGISTIC.md +439 -0
- package/documentation/application/ORDER.md +3428 -0
- package/documentation/application/PAYMENT.md +5035 -0
- package/documentation/application/POSCART.md +7889 -0
- package/documentation/application/README.md +21 -0
- package/documentation/application/REWARDS.md +714 -0
- package/documentation/application/SHARE.md +729 -0
- package/documentation/application/THEME.md +5796 -0
- package/documentation/application/USER.md +4326 -0
- package/documentation/platform/ANALYTICS.md +1150 -0
- package/documentation/platform/AUDITTRAIL.md +572 -0
- package/documentation/platform/BILLING.md +2396 -0
- package/documentation/platform/CART.md +5539 -0
- package/documentation/platform/CATALOG.md +21624 -0
- package/documentation/platform/COMMON.md +448 -0
- package/documentation/platform/COMMUNICATION.md +5714 -0
- package/documentation/platform/COMPANYPROFILE.md +2141 -0
- package/documentation/platform/CONFIGURATION.md +7335 -0
- package/documentation/platform/CONTENT.md +8989 -0
- package/documentation/platform/DISCOUNT.md +773 -0
- package/documentation/platform/FILESTORAGE.md +994 -0
- package/documentation/platform/INVENTORY.md +1775 -0
- package/documentation/platform/LEAD.md +4736 -0
- package/documentation/platform/ORDER.md +3764 -0
- package/documentation/platform/PARTNER.md +216 -0
- package/documentation/platform/PAYMENT.md +3444 -0
- package/documentation/platform/README.md +27 -0
- package/documentation/platform/REWARDS.md +871 -0
- package/documentation/platform/SHARE.md +602 -0
- package/documentation/platform/THEME.md +35725 -0
- package/documentation/platform/USER.md +2305 -0
- package/documentation/platform/WEBHOOK.md +587 -0
- package/documentation/public/CONFIGURATION.md +448 -0
- package/documentation/public/INVENTORY.md +686 -0
- package/documentation/public/WEBHOOK.md +348 -0
- package/index.d.ts +10 -0
- package/index.js +18 -0
- package/jest.config.d.ts +4 -0
- package/jest.config.js +6 -0
- package/package.json +35 -0
- package/platform.d.ts +3 -0
- package/platform.js +6 -0
- package/public.d.ts +3 -0
- package/public.js +6 -0
- package/sdk/application/ApplicationAPIClient.d.ts +11 -0
- package/sdk/application/ApplicationAPIClient.js +44 -0
- package/sdk/application/ApplicationClient.d.ts +40 -0
- package/sdk/application/ApplicationClient.js +84 -0
- package/sdk/application/ApplicationConfig.d.ts +19 -0
- package/sdk/application/ApplicationConfig.js +55 -0
- package/sdk/application/ApplicationModels.d.ts +826 -0
- package/sdk/application/ApplicationModels.js +10474 -0
- package/sdk/application/client/CartApplicationClient.d.ts +432 -0
- package/sdk/application/client/CartApplicationClient.js +1066 -0
- package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
- package/sdk/application/client/CatalogApplicationClient.js +1629 -0
- package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
- package/sdk/application/client/CommonApplicationClient.js +105 -0
- package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
- package/sdk/application/client/CommunicationApplicationClient.js +131 -0
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
- package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
- package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
- package/sdk/application/client/ContentApplicationClient.js +785 -0
- package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
- package/sdk/application/client/FileStorageApplicationClient.js +214 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
- package/sdk/application/client/LeadApplicationClient.js +264 -0
- package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
- package/sdk/application/client/LogisticApplicationClient.js +128 -0
- package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
- package/sdk/application/client/OrderApplicationClient.js +479 -0
- package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
- package/sdk/application/client/PaymentApplicationClient.js +1378 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
- package/sdk/application/client/PosCartApplicationClient.js +1123 -0
- package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
- package/sdk/application/client/RewardsApplicationClient.js +293 -0
- package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
- package/sdk/application/client/ShareApplicationClient.js +268 -0
- package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
- package/sdk/application/client/ThemeApplicationClient.js +161 -0
- package/sdk/application/client/UserApplicationClient.d.ts +446 -0
- package/sdk/application/client/UserApplicationClient.js +1275 -0
- package/sdk/application/constructUrl.d.ts +5 -0
- package/sdk/application/constructUrl.js +13 -0
- package/sdk/application/index.d.ts +2 -0
- package/sdk/application/index.js +4 -0
- package/sdk/application/models/CartValidator.d.ts +29 -0
- package/sdk/application/models/CartValidator.js +223 -0
- package/sdk/application/models/CatalogValidator.d.ts +33 -0
- package/sdk/application/models/CatalogValidator.js +233 -0
- package/sdk/application/models/CommonValidator.d.ts +5 -0
- package/sdk/application/models/CommonValidator.js +18 -0
- package/sdk/application/models/CommunicationValidator.d.ts +6 -0
- package/sdk/application/models/CommunicationValidator.js +20 -0
- package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
- package/sdk/application/models/ConfigurationValidator.js +88 -0
- package/sdk/application/models/ContentValidator.d.ts +22 -0
- package/sdk/application/models/ContentValidator.js +106 -0
- package/sdk/application/models/FileStorageValidator.d.ts +6 -0
- package/sdk/application/models/FileStorageValidator.js +24 -0
- package/sdk/application/models/LeadValidator.d.ts +10 -0
- package/sdk/application/models/LeadValidator.js +48 -0
- package/sdk/application/models/LogisticValidator.d.ts +6 -0
- package/sdk/application/models/LogisticValidator.js +22 -0
- package/sdk/application/models/OrderValidator.d.ts +15 -0
- package/sdk/application/models/OrderValidator.js +87 -0
- package/sdk/application/models/PaymentValidator.d.ts +40 -0
- package/sdk/application/models/PaymentValidator.js +235 -0
- package/sdk/application/models/PosCartValidator.d.ts +30 -0
- package/sdk/application/models/PosCartValidator.js +232 -0
- package/sdk/application/models/RewardsValidator.d.ts +10 -0
- package/sdk/application/models/RewardsValidator.js +43 -0
- package/sdk/application/models/ShareValidator.d.ts +10 -0
- package/sdk/application/models/ShareValidator.js +44 -0
- package/sdk/application/models/ThemeValidator.d.ts +7 -0
- package/sdk/application/models/ThemeValidator.js +27 -0
- package/sdk/application/models/UserValidator.d.ts +38 -0
- package/sdk/application/models/UserValidator.js +233 -0
- package/sdk/common/AxiosHelper.d.ts +1 -0
- package/sdk/common/AxiosHelper.js +141 -0
- package/sdk/common/Constant.d.ts +294 -0
- package/sdk/common/Constant.js +332 -0
- package/sdk/common/FDKError.d.ts +26 -0
- package/sdk/common/FDKError.js +51 -0
- package/sdk/common/Logger.d.ts +2 -0
- package/sdk/common/Logger.js +85 -0
- package/sdk/common/Paginator.d.ts +16 -0
- package/sdk/common/Paginator.js +26 -0
- package/sdk/common/RequestSigner.d.ts +1 -0
- package/sdk/common/RequestSigner.js +306 -0
- package/sdk/common/Utility.d.ts +9 -0
- package/sdk/common/Utility.js +86 -0
- package/sdk/common/utils.d.ts +14 -0
- package/sdk/common/utils.js +165 -0
- package/sdk/platform/OAuthClient.d.ts +26 -0
- package/sdk/platform/OAuthClient.js +221 -0
- package/sdk/platform/PlatformAPIClient.d.ts +12 -0
- package/sdk/platform/PlatformAPIClient.js +43 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
- package/sdk/platform/PlatformApplicationClient.js +23185 -0
- package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
- package/sdk/platform/PlatformApplicationModels.js +21262 -0
- package/sdk/platform/PlatformClient.d.ts +9535 -0
- package/sdk/platform/PlatformClient.js +12336 -0
- package/sdk/platform/PlatformConfig.d.ts +29 -0
- package/sdk/platform/PlatformConfig.js +36 -0
- package/sdk/platform/PlatformModels.d.ts +1396 -0
- package/sdk/platform/PlatformModels.js +19222 -0
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
- package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
- package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
- package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
- package/sdk/platform/client/BillingPlatformClient.js +381 -0
- package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
- package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
- package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
- package/sdk/platform/client/CommonPlatformClient.js +84 -0
- package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
- package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
- package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
- package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
- package/sdk/platform/client/DiscountPlatformClient.js +364 -0
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
- package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
- package/sdk/platform/client/InventoryPlatformClient.js +409 -0
- package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
- package/sdk/platform/client/LeadPlatformClient.js +439 -0
- package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
- package/sdk/platform/client/OrderPlatformClient.js +521 -0
- package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
- package/sdk/platform/client/PaymentPlatformClient.js +331 -0
- package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
- package/sdk/platform/client/WebhookPlatformClient.js +207 -0
- package/sdk/platform/index.d.ts +2 -0
- package/sdk/platform/index.js +4 -0
- package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
- package/sdk/platform/models/AnalyticsValidator.js +36 -0
- package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
- package/sdk/platform/models/AuditTrailValidator.js +26 -0
- package/sdk/platform/models/BillingValidator.d.ts +15 -0
- package/sdk/platform/models/BillingValidator.js +72 -0
- package/sdk/platform/models/CartValidator.d.ts +0 -0
- package/sdk/platform/models/CartValidator.js +0 -0
- package/sdk/platform/models/CatalogValidator.d.ts +74 -0
- package/sdk/platform/models/CatalogValidator.js +484 -0
- package/sdk/platform/models/CommonValidator.d.ts +5 -0
- package/sdk/platform/models/CommonValidator.js +18 -0
- package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
- package/sdk/platform/models/CommunicationValidator.js +11 -0
- package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
- package/sdk/platform/models/CompanyProfileValidator.js +93 -0
- package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
- package/sdk/platform/models/ConfigurationValidator.js +134 -0
- package/sdk/platform/models/ContentValidator.d.ts +0 -0
- package/sdk/platform/models/ContentValidator.js +0 -0
- package/sdk/platform/models/DiscountValidator.d.ts +13 -0
- package/sdk/platform/models/DiscountValidator.js +75 -0
- package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
- package/sdk/platform/models/FileStorageValidator.js +44 -0
- package/sdk/platform/models/InventoryValidator.d.ts +15 -0
- package/sdk/platform/models/InventoryValidator.js +81 -0
- package/sdk/platform/models/LeadValidator.d.ts +14 -0
- package/sdk/platform/models/LeadValidator.js +78 -0
- package/sdk/platform/models/OrderValidator.d.ts +14 -0
- package/sdk/platform/models/OrderValidator.js +110 -0
- package/sdk/platform/models/PartnerValidator.d.ts +0 -0
- package/sdk/platform/models/PartnerValidator.js +0 -0
- package/sdk/platform/models/PaymentValidator.d.ts +13 -0
- package/sdk/platform/models/PaymentValidator.js +65 -0
- package/sdk/platform/models/RewardsValidator.d.ts +0 -0
- package/sdk/platform/models/RewardsValidator.js +0 -0
- package/sdk/platform/models/ShareValidator.d.ts +0 -0
- package/sdk/platform/models/ShareValidator.js +0 -0
- package/sdk/platform/models/ThemeValidator.d.ts +0 -0
- package/sdk/platform/models/ThemeValidator.js +0 -0
- package/sdk/platform/models/UserValidator.d.ts +0 -0
- package/sdk/platform/models/UserValidator.js +0 -0
- package/sdk/platform/models/WebhookValidator.d.ts +9 -0
- package/sdk/platform/models/WebhookValidator.js +42 -0
- package/sdk/public/PublicAPIClient.d.ts +11 -0
- package/sdk/public/PublicAPIClient.js +38 -0
- package/sdk/public/PublicClient.d.ts +12 -0
- package/sdk/public/PublicClient.js +24 -0
- package/sdk/public/PublicConfig.d.ts +10 -0
- package/sdk/public/PublicConfig.js +12 -0
- package/sdk/public/PublicModels.d.ts +50 -0
- package/sdk/public/PublicModels.js +712 -0
- package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
- package/sdk/public/client/ConfigurationPublicClient.js +102 -0
- package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
- package/sdk/public/client/InventoryPublicClient.js +239 -0
- package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
- package/sdk/public/client/WebhookPublicClient.js +92 -0
- package/sdk/public/constructUrl.d.ts +5 -0
- package/sdk/public/constructUrl.js +13 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
- package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
- package/sdk/public/models/ConfigurationValidator.js +18 -0
- package/sdk/public/models/InventoryValidator.d.ts +9 -0
- package/sdk/public/models/InventoryValidator.js +43 -0
- package/sdk/public/models/WebhookValidator.d.ts +5 -0
- package/sdk/public/models/WebhookValidator.js +14 -0
- package/tests/application/catalog.spec.js +47 -0
- package/tests/common/action-url.spec.js +35 -0
- package/tests/common/schema/action-url.json +163 -0
- package/tests/common/schema/url-action.json +667 -0
- package/tests/common/url-action.spec.js +48 -0
- package/tests/helpers/cookie.helper.js +31 -0
- package/tests/helpers/oauth.helper.js +43 -0
- package/tests/platform/catalog.spec.js +49 -0
- package/tests/public/location.spec.js +39 -0
|
@@ -0,0 +1,5035 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
##### [Back to Application docs](./README.md)
|
|
6
|
+
|
|
7
|
+
## Payment Methods
|
|
8
|
+
Collect payment through many payment gateway i.e Stripe, Razorpay, Juspay etc.into Fynd or Self account
|
|
9
|
+
* [getAggregatorsConfig](#getaggregatorsconfig)
|
|
10
|
+
* [attachCardToCustomer](#attachcardtocustomer)
|
|
11
|
+
* [getActiveCardAggregator](#getactivecardaggregator)
|
|
12
|
+
* [getActiveUserCards](#getactiveusercards)
|
|
13
|
+
* [deleteUserCard](#deleteusercard)
|
|
14
|
+
* [verifyCustomerForPayment](#verifycustomerforpayment)
|
|
15
|
+
* [verifyAndChargePayment](#verifyandchargepayment)
|
|
16
|
+
* [initialisePayment](#initialisepayment)
|
|
17
|
+
* [checkAndUpdatePaymentStatus](#checkandupdatepaymentstatus)
|
|
18
|
+
* [getPaymentModeRoutes](#getpaymentmoderoutes)
|
|
19
|
+
* [getPosPaymentModeRoutes](#getpospaymentmoderoutes)
|
|
20
|
+
* [getRupifiBannerDetails](#getrupifibannerdetails)
|
|
21
|
+
* [getEpaylaterBannerDetails](#getepaylaterbannerdetails)
|
|
22
|
+
* [resendOrCancelPayment](#resendorcancelpayment)
|
|
23
|
+
* [getActiveRefundTransferModes](#getactiverefundtransfermodes)
|
|
24
|
+
* [enableOrDisableRefundTransferMode](#enableordisablerefundtransfermode)
|
|
25
|
+
* [getUserBeneficiariesDetail](#getuserbeneficiariesdetail)
|
|
26
|
+
* [verifyIfscCode](#verifyifsccode)
|
|
27
|
+
* [getOrderBeneficiariesDetail](#getorderbeneficiariesdetail)
|
|
28
|
+
* [verifyOtpAndAddBeneficiaryForBank](#verifyotpandaddbeneficiaryforbank)
|
|
29
|
+
* [addBeneficiaryDetails](#addbeneficiarydetails)
|
|
30
|
+
* [addRefundBankAccountUsingOTP](#addrefundbankaccountusingotp)
|
|
31
|
+
* [verifyOtpAndAddBeneficiaryForWallet](#verifyotpandaddbeneficiaryforwallet)
|
|
32
|
+
* [updateDefaultBeneficiary](#updatedefaultbeneficiary)
|
|
33
|
+
* [getPaymentLink](#getpaymentlink)
|
|
34
|
+
* [createPaymentLink](#createpaymentlink)
|
|
35
|
+
* [resendPaymentLink](#resendpaymentlink)
|
|
36
|
+
* [cancelPaymentLink](#cancelpaymentlink)
|
|
37
|
+
* [getPaymentModeRoutesPaymentLink](#getpaymentmoderoutespaymentlink)
|
|
38
|
+
* [pollingPaymentLink](#pollingpaymentlink)
|
|
39
|
+
* [createOrderHandlerPaymentLink](#createorderhandlerpaymentlink)
|
|
40
|
+
* [initialisePaymentPaymentLink](#initialisepaymentpaymentlink)
|
|
41
|
+
* [checkAndUpdatePaymentStatusPaymentLink](#checkandupdatepaymentstatuspaymentlink)
|
|
42
|
+
* [customerCreditSummary](#customercreditsummary)
|
|
43
|
+
* [redirectToAggregator](#redirecttoaggregator)
|
|
44
|
+
* [checkCredit](#checkcredit)
|
|
45
|
+
* [customerOnboard](#customeronboard)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Methods with example and description
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### getAggregatorsConfig
|
|
53
|
+
Get payment gateway keys
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
// Promise
|
|
59
|
+
const promise = payment.getAggregatorsConfig({ xApiToken : value,
|
|
60
|
+
refresh : value });
|
|
61
|
+
|
|
62
|
+
// Async/Await
|
|
63
|
+
const data = await payment.getAggregatorsConfig({ xApiToken : value,
|
|
64
|
+
refresh : value });
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
| Argument | Type | Required | Description |
|
|
72
|
+
| --------- | ----- | -------- | ----------- |
|
|
73
|
+
| xApiToken | string | no | Used for basic authentication. |
|
|
74
|
+
| refresh | boolean | no | This is a boolean value. Select `true` to remove temporary cache files on payment gateway and replace with the latest one. |
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
Use this API to retrieve the payment gateway key, secrets, merchant, SDK/API details to complete a payment at front-end.
|
|
79
|
+
|
|
80
|
+
*Returned Response:*
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
[AggregatorsConfigDetailResponse](#AggregatorsConfigDetailResponse)
|
|
86
|
+
|
|
87
|
+
Success. Returns the keys of all payment gateways. Check the example shown below or refer `AggregatorsConfigDetailResponse` for more details.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
<details>
|
|
93
|
+
<summary><i> Example:</i></summary>
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"simpl": {
|
|
98
|
+
"key": "bf9d0ff65ffe6e54223a871e733bbd1c",
|
|
99
|
+
"secret": "XXXX-XXXX-XXXX-XXXX",
|
|
100
|
+
"config_type": "fynd",
|
|
101
|
+
"sdk": true
|
|
102
|
+
},
|
|
103
|
+
"juspay": {
|
|
104
|
+
"key": "XXXX-XXXX-XXXX-XXXX",
|
|
105
|
+
"secret": "XXXX-XXXX-XXXX-XXXX",
|
|
106
|
+
"config_type": "fynd",
|
|
107
|
+
"merchant_key": "XXXX-XXXX-XXXX-XXXX",
|
|
108
|
+
"sdk": false,
|
|
109
|
+
"api": "https://api.juspay.in"
|
|
110
|
+
},
|
|
111
|
+
"mswipe": {
|
|
112
|
+
"key": "XXXX-XXXX-XXXX-XXXX",
|
|
113
|
+
"secret": "XXXX-XXXX-XXXX-XXXX",
|
|
114
|
+
"config_type": "fynd",
|
|
115
|
+
"merchant_id": "XXXX-XXXX-XXXX-XXXX",
|
|
116
|
+
"user_id": "XXXX-XXXX-XXXX-XXXX",
|
|
117
|
+
"pin": "XXXX-XXXX-XXXX-XXXX",
|
|
118
|
+
"sdk": true,
|
|
119
|
+
"verify_api": "https://www.mswipetech.com/verificationapi/api/VerificationApi/MswipeCardSaleVerificationApi"
|
|
120
|
+
},
|
|
121
|
+
"razorpay": {
|
|
122
|
+
"key": "XXXX-XXXX-XXXX-XXXX",
|
|
123
|
+
"secret": "XXXX-XXXX-XXXX-XXXX",
|
|
124
|
+
"config_type": "fynd",
|
|
125
|
+
"webhook_secret": "XXXX-XXXX-XXXX-XXXX",
|
|
126
|
+
"sdk": true,
|
|
127
|
+
"api": "https://api.razorpay.com/v1/",
|
|
128
|
+
"vpa": "XXXX-XXXX-XXXX-XXXX"
|
|
129
|
+
},
|
|
130
|
+
"success": true,
|
|
131
|
+
"env": "live"
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
</details>
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### attachCardToCustomer
|
|
148
|
+
Attach a saved card to customer.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
```javascript
|
|
153
|
+
// Promise
|
|
154
|
+
const promise = payment.attachCardToCustomer({ body : value });
|
|
155
|
+
|
|
156
|
+
// Async/Await
|
|
157
|
+
const data = await payment.attachCardToCustomer({ body : value });
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
| Argument | Type | Required | Description |
|
|
165
|
+
| --------- | ----- | -------- | ----------- |
|
|
166
|
+
| body | [AttachCardRequest](#AttachCardRequest) | yes | Request body |
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
Use this API to attach a customer's saved card at the payment gateway, such as Stripe, Juspay.
|
|
170
|
+
|
|
171
|
+
*Returned Response:*
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
[AttachCardsResponse](#AttachCardsResponse)
|
|
177
|
+
|
|
178
|
+
Success. Check the example shown below or refer `AttachCardsResponse` for more details.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
<details>
|
|
184
|
+
<summary><i> Example:</i></summary>
|
|
185
|
+
|
|
186
|
+
```json
|
|
187
|
+
{
|
|
188
|
+
"success": true,
|
|
189
|
+
"message": "",
|
|
190
|
+
"data": {
|
|
191
|
+
"id": "pm_1IGQlvHY5NCLOJpYNTBP6WpY",
|
|
192
|
+
"brand": "visa",
|
|
193
|
+
"checks": {
|
|
194
|
+
"address_line1_check": null,
|
|
195
|
+
"address_postal_code_check": null,
|
|
196
|
+
"cvc_check": "pass"
|
|
197
|
+
},
|
|
198
|
+
"country": "US",
|
|
199
|
+
"exp_month": 11,
|
|
200
|
+
"exp_year": 2025,
|
|
201
|
+
"fingerprint": "poKWfSweJ0I5CvEA",
|
|
202
|
+
"funding": "credit",
|
|
203
|
+
"generated_from": null,
|
|
204
|
+
"last4": "1111",
|
|
205
|
+
"networks": {
|
|
206
|
+
"available": [
|
|
207
|
+
"visa"
|
|
208
|
+
],
|
|
209
|
+
"preferred": null
|
|
210
|
+
},
|
|
211
|
+
"three_d_secure_usage": {
|
|
212
|
+
"supported": true
|
|
213
|
+
},
|
|
214
|
+
"wallet": null
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
</details>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### getActiveCardAggregator
|
|
232
|
+
Fetch active payment gateway for card payments
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
```javascript
|
|
237
|
+
// Promise
|
|
238
|
+
const promise = payment.getActiveCardAggregator({ refresh : value });
|
|
239
|
+
|
|
240
|
+
// Async/Await
|
|
241
|
+
const data = await payment.getActiveCardAggregator({ refresh : value });
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
| Argument | Type | Required | Description |
|
|
249
|
+
| --------- | ----- | -------- | ----------- |
|
|
250
|
+
| refresh | boolean | no | |
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
Use this API to retrieve an active payment aggregator along with the Customer ID. This is applicable for cards payments only.
|
|
255
|
+
|
|
256
|
+
*Returned Response:*
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
[ActiveCardPaymentGatewayResponse](#ActiveCardPaymentGatewayResponse)
|
|
262
|
+
|
|
263
|
+
Success. Returns an active payment gateway. Check the example shown below or refer `ActiveCardPaymentGatewayResponse` for more details.
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
<details>
|
|
269
|
+
<summary><i> Example:</i></summary>
|
|
270
|
+
|
|
271
|
+
```json
|
|
272
|
+
{
|
|
273
|
+
"success": true,
|
|
274
|
+
"message": "",
|
|
275
|
+
"cards": {
|
|
276
|
+
"aggregator": "Stripe",
|
|
277
|
+
"api": "https://www.example.com/cards/",
|
|
278
|
+
"customer_id": "lorem_12345"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
</details>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### getActiveUserCards
|
|
296
|
+
Fetch the list of cards saved by the user
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
```javascript
|
|
301
|
+
// Promise
|
|
302
|
+
const promise = payment.getActiveUserCards({ forceRefresh : value });
|
|
303
|
+
|
|
304
|
+
// Async/Await
|
|
305
|
+
const data = await payment.getActiveUserCards({ forceRefresh : value });
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
| Argument | Type | Required | Description |
|
|
313
|
+
| --------- | ----- | -------- | ----------- |
|
|
314
|
+
| forceRefresh | boolean | no | |
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
Use this API to retrieve a list of cards stored by user from an active payment gateway.
|
|
319
|
+
|
|
320
|
+
*Returned Response:*
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
[ListCardsResponse](#ListCardsResponse)
|
|
326
|
+
|
|
327
|
+
Success. Returns a list of cards saved by the user. Check the example shown below or refer `ListCardsResponse` for more details.
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
<details>
|
|
333
|
+
<summary><i> Example:</i></summary>
|
|
334
|
+
|
|
335
|
+
```json
|
|
336
|
+
{
|
|
337
|
+
"success": true,
|
|
338
|
+
"message": "Success",
|
|
339
|
+
"data": [
|
|
340
|
+
{
|
|
341
|
+
"aggregator_name": "Razorpay",
|
|
342
|
+
"card_id": "token_lorem_ipsum_001",
|
|
343
|
+
"card_token": "card_token_lorem_ipsum_001",
|
|
344
|
+
"card_reference": "ref_lorem_ipsum_001",
|
|
345
|
+
"card_number": "XXXX-XXXX-XXXX-1111",
|
|
346
|
+
"card_isin": "001",
|
|
347
|
+
"exp_year": 2025,
|
|
348
|
+
"exp_month": 5,
|
|
349
|
+
"card_type": "credit",
|
|
350
|
+
"card_issuer": "ICIC",
|
|
351
|
+
"card_brand": "VISA",
|
|
352
|
+
"nickname": "Visa",
|
|
353
|
+
"card_name": "Lorem Ipsum",
|
|
354
|
+
"expired": false,
|
|
355
|
+
"card_fingerprint": null,
|
|
356
|
+
"card_brand_image": "https://hdn-1.fynd.com/payment/visa.png",
|
|
357
|
+
"compliant_with_tokenisation_guidelines": true
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
```
|
|
362
|
+
</details>
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### deleteUserCard
|
|
376
|
+
Delete a card
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
```javascript
|
|
381
|
+
// Promise
|
|
382
|
+
const promise = payment.deleteUserCard({ body : value });
|
|
383
|
+
|
|
384
|
+
// Async/Await
|
|
385
|
+
const data = await payment.deleteUserCard({ body : value });
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
| Argument | Type | Required | Description |
|
|
393
|
+
| --------- | ----- | -------- | ----------- |
|
|
394
|
+
| body | [DeletehCardRequest](#DeletehCardRequest) | yes | Request body |
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
Use this API to delete a card added by a user on the payment gateway and clear the cache.
|
|
398
|
+
|
|
399
|
+
*Returned Response:*
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
[DeleteCardsResponse](#DeleteCardsResponse)
|
|
405
|
+
|
|
406
|
+
Success. Returns a success message if card is deleted.
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
<details>
|
|
412
|
+
<summary><i> Example:</i></summary>
|
|
413
|
+
|
|
414
|
+
```json
|
|
415
|
+
{
|
|
416
|
+
"success": true
|
|
417
|
+
}
|
|
418
|
+
```
|
|
419
|
+
</details>
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
### verifyCustomerForPayment
|
|
433
|
+
Validate customer for payment
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
```javascript
|
|
438
|
+
// Promise
|
|
439
|
+
const promise = payment.verifyCustomerForPayment({ body : value });
|
|
440
|
+
|
|
441
|
+
// Async/Await
|
|
442
|
+
const data = await payment.verifyCustomerForPayment({ body : value });
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
| Argument | Type | Required | Description |
|
|
450
|
+
| --------- | ----- | -------- | ----------- |
|
|
451
|
+
| body | [ValidateCustomerRequest](#ValidateCustomerRequest) | yes | Request body |
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
Use this API to check if the customer is eligible to use credit-line facilities such as Simpl Pay Later and Rupifi.
|
|
455
|
+
|
|
456
|
+
*Returned Response:*
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
[ValidateCustomerResponse](#ValidateCustomerResponse)
|
|
462
|
+
|
|
463
|
+
Success. Check the example shown below or refer `ValidateCustomerResponse` for more details.
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
<details>
|
|
469
|
+
<summary><i> Examples:</i></summary>
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
<details>
|
|
473
|
+
<summary><i> success is True i.e user is allowed</i></summary>
|
|
474
|
+
|
|
475
|
+
```json
|
|
476
|
+
{
|
|
477
|
+
"value": {
|
|
478
|
+
"success": true,
|
|
479
|
+
"message": "data fetched",
|
|
480
|
+
"data": {
|
|
481
|
+
"api_version": 2,
|
|
482
|
+
"data": {
|
|
483
|
+
"approved": true,
|
|
484
|
+
"button_text": "Buy Now, Pay Later",
|
|
485
|
+
"first_transaction": false
|
|
486
|
+
},
|
|
487
|
+
"aggregator": "Simpl"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
```
|
|
492
|
+
</details>
|
|
493
|
+
|
|
494
|
+
<details>
|
|
495
|
+
<summary><i> success is True i.e user not allowed</i></summary>
|
|
496
|
+
|
|
497
|
+
```json
|
|
498
|
+
{
|
|
499
|
+
"value": {
|
|
500
|
+
"success": false,
|
|
501
|
+
"message": "data fetched",
|
|
502
|
+
"error": {
|
|
503
|
+
"api_version": 2,
|
|
504
|
+
"data": {
|
|
505
|
+
"approved": false,
|
|
506
|
+
"button_text": "Buy Now, Pay Later",
|
|
507
|
+
"first_transaction": false
|
|
508
|
+
},
|
|
509
|
+
"aggregator": "Simpl"
|
|
510
|
+
},
|
|
511
|
+
"data": {}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
```
|
|
515
|
+
</details>
|
|
516
|
+
|
|
517
|
+
</details>
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
---
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
### verifyAndChargePayment
|
|
531
|
+
Verify and charge payment
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
```javascript
|
|
536
|
+
// Promise
|
|
537
|
+
const promise = payment.verifyAndChargePayment({ body : value });
|
|
538
|
+
|
|
539
|
+
// Async/Await
|
|
540
|
+
const data = await payment.verifyAndChargePayment({ body : value });
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
| Argument | Type | Required | Description |
|
|
548
|
+
| --------- | ----- | -------- | ----------- |
|
|
549
|
+
| body | [ChargeCustomerRequest](#ChargeCustomerRequest) | yes | Request body |
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
Use this API to verify and check the status of a payment transaction (server-to-server) made through aggregators like Simpl and Mswipe.
|
|
553
|
+
|
|
554
|
+
*Returned Response:*
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
[ChargeCustomerResponse](#ChargeCustomerResponse)
|
|
560
|
+
|
|
561
|
+
Success. Check the example shown below or refer `ChargeCustomerResponse` for more details.
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
<details>
|
|
567
|
+
<summary><i> Example:</i></summary>
|
|
568
|
+
|
|
569
|
+
```json
|
|
570
|
+
{
|
|
571
|
+
"success": true,
|
|
572
|
+
"message": "Payment Successful",
|
|
573
|
+
"status": "complete",
|
|
574
|
+
"order_id": "FY000000001000000101",
|
|
575
|
+
"aggregator": "Simpl",
|
|
576
|
+
"cart_id": "0000000",
|
|
577
|
+
"delivery_address_id": "0000000"
|
|
578
|
+
}
|
|
579
|
+
```
|
|
580
|
+
</details>
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
---
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
### initialisePayment
|
|
594
|
+
Initialize a payment (server-to-server) for UPI and BharatQR
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
```javascript
|
|
599
|
+
// Promise
|
|
600
|
+
const promise = payment.initialisePayment({ body : value });
|
|
601
|
+
|
|
602
|
+
// Async/Await
|
|
603
|
+
const data = await payment.initialisePayment({ body : value });
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
| Argument | Type | Required | Description |
|
|
611
|
+
| --------- | ----- | -------- | ----------- |
|
|
612
|
+
| body | [PaymentInitializationRequest](#PaymentInitializationRequest) | yes | Request body |
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
PUse this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen.
|
|
616
|
+
|
|
617
|
+
*Returned Response:*
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
[PaymentInitializationResponse](#PaymentInitializationResponse)
|
|
623
|
+
|
|
624
|
+
Success. Check the example shown below or refer `PaymentInitializationResponse` for more details.
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
<details>
|
|
630
|
+
<summary><i> Example:</i></summary>
|
|
631
|
+
|
|
632
|
+
```json
|
|
633
|
+
{
|
|
634
|
+
"success": true,
|
|
635
|
+
"aggregator": "UPI_Razorpay",
|
|
636
|
+
"method": "upi",
|
|
637
|
+
"status": "success",
|
|
638
|
+
"merchant_order_id": "FY000120000101",
|
|
639
|
+
"aggregator_order_id": "lorem_GX8W00p2ipsum",
|
|
640
|
+
"polling_url": "https://api.fynd.com/service/application/payment/v0.1/payments/confirm/polling/?app_id=000000000000000000000001",
|
|
641
|
+
"timeout": 240,
|
|
642
|
+
"virtual_id": null,
|
|
643
|
+
"razorpay_payment_id": "pay_dummy_001",
|
|
644
|
+
"customer_id": "cust_dummy_001"
|
|
645
|
+
}
|
|
646
|
+
```
|
|
647
|
+
</details>
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
---
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
### checkAndUpdatePaymentStatus
|
|
661
|
+
Performs continuous polling to check status of payment on the server
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
```javascript
|
|
666
|
+
// Promise
|
|
667
|
+
const promise = payment.checkAndUpdatePaymentStatus({ body : value });
|
|
668
|
+
|
|
669
|
+
// Async/Await
|
|
670
|
+
const data = await payment.checkAndUpdatePaymentStatus({ body : value });
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
| Argument | Type | Required | Description |
|
|
678
|
+
| --------- | ----- | -------- | ----------- |
|
|
679
|
+
| body | [PaymentStatusUpdateRequest](#PaymentStatusUpdateRequest) | yes | Request body |
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
Use this API to perform continuous polling at intervals to check the status of payment until timeout.
|
|
683
|
+
|
|
684
|
+
*Returned Response:*
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
[PaymentStatusUpdateResponse](#PaymentStatusUpdateResponse)
|
|
690
|
+
|
|
691
|
+
Success. Returns the status of payment. Check the example shown below or refer `PaymentStatusUpdateResponse` for more details.
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
<details>
|
|
697
|
+
<summary><i> Example:</i></summary>
|
|
698
|
+
|
|
699
|
+
```json
|
|
700
|
+
{
|
|
701
|
+
"aggregator_name": "UPI_Razorpay",
|
|
702
|
+
"status": "success",
|
|
703
|
+
"retry": false
|
|
704
|
+
}
|
|
705
|
+
```
|
|
706
|
+
</details>
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
---
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
### getPaymentModeRoutes
|
|
720
|
+
Get applicable payment options
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
```javascript
|
|
725
|
+
// Promise
|
|
726
|
+
const promise = payment.getPaymentModeRoutes({ amount : value,
|
|
727
|
+
cartId : value,
|
|
728
|
+
pincode : value,
|
|
729
|
+
checkoutMode : value,
|
|
730
|
+
refresh : value,
|
|
731
|
+
cardReference : value,
|
|
732
|
+
userDetails : value });
|
|
733
|
+
|
|
734
|
+
// Async/Await
|
|
735
|
+
const data = await payment.getPaymentModeRoutes({ amount : value,
|
|
736
|
+
cartId : value,
|
|
737
|
+
pincode : value,
|
|
738
|
+
checkoutMode : value,
|
|
739
|
+
refresh : value,
|
|
740
|
+
cardReference : value,
|
|
741
|
+
userDetails : value });
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
| Argument | Type | Required | Description |
|
|
749
|
+
| --------- | ----- | -------- | ----------- |
|
|
750
|
+
| amount | number | yes | Payable amount. |
|
|
751
|
+
| cartId | string | yes | Identifier of the cart. |
|
|
752
|
+
| pincode | string | yes | The PIN Code of the destination address, e.g. 400059 |
|
|
753
|
+
| checkoutMode | string | yes | Option to checkout for self or for others. |
|
|
754
|
+
| refresh | boolean | no | This is a boolean value. Select `true` to remove temporary cache files on payment gateway and replace with the latest one. |
|
|
755
|
+
| cardReference | string | no | Card reference id of user's debit or credit card. |
|
|
756
|
+
| userDetails | string | no | URIencoded JSON containing details of an anonymous user. |
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
Use this API to get all valid payment options for doing a payment.
|
|
761
|
+
|
|
762
|
+
*Returned Response:*
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
[PaymentModeRouteResponse](#PaymentModeRouteResponse)
|
|
768
|
+
|
|
769
|
+
Success. Returns all available options for payment. Check the example shown below or refer `PaymentModeRouteResponse` for more details.
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
<details>
|
|
775
|
+
<summary><i> Example:</i></summary>
|
|
776
|
+
|
|
777
|
+
```json
|
|
778
|
+
{
|
|
779
|
+
"success": true,
|
|
780
|
+
"payment_options": {
|
|
781
|
+
"payment_option": [
|
|
782
|
+
{
|
|
783
|
+
"name": "COD",
|
|
784
|
+
"display_name": "Cash on Delivery",
|
|
785
|
+
"display_priority": 1,
|
|
786
|
+
"payment_mode_id": 11,
|
|
787
|
+
"aggregator_name": "Fynd",
|
|
788
|
+
"logo": "https://hdn-1.fynd.com/payment/cod.png",
|
|
789
|
+
"logo_url": {
|
|
790
|
+
"small": "https://hdn-1.fynd.com/payment/cod.png",
|
|
791
|
+
"large": "https://hdn-1.fynd.com/payment/cod.png"
|
|
792
|
+
},
|
|
793
|
+
"list": [
|
|
794
|
+
{
|
|
795
|
+
"cod_limit": 1000,
|
|
796
|
+
"remaining_limit": 100
|
|
797
|
+
}
|
|
798
|
+
]
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"name": "CARD",
|
|
802
|
+
"display_priority": 2,
|
|
803
|
+
"payment_mode_id": 2,
|
|
804
|
+
"display_name": "Card",
|
|
805
|
+
"list": [],
|
|
806
|
+
"anonymous_enable": true,
|
|
807
|
+
"aggregator_name": "Razorpay",
|
|
808
|
+
"add_card_enabled": false,
|
|
809
|
+
"save_card": true
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "NB",
|
|
813
|
+
"display_priority": 3,
|
|
814
|
+
"payment_mode_id": 3,
|
|
815
|
+
"display_name": "Net Banking",
|
|
816
|
+
"list": [
|
|
817
|
+
{
|
|
818
|
+
"aggregator_name": "Razorpay",
|
|
819
|
+
"name": "ICICI Bank",
|
|
820
|
+
"code": "ICIC",
|
|
821
|
+
"bank_name": "ICICI Bank",
|
|
822
|
+
"bank_code": "ICIC",
|
|
823
|
+
"url": "https://hdn-1.fynd.com/payment/NB_ICICI.png",
|
|
824
|
+
"logo_url": {
|
|
825
|
+
"small": "https://hdn-1.fynd.com/payment/NB_ICICI.png",
|
|
826
|
+
"large": "https://hdn-1.fynd.com/payment/NB_ICICI.png"
|
|
827
|
+
},
|
|
828
|
+
"merchant_code": "NB_ICICI",
|
|
829
|
+
"display_priority": 1,
|
|
830
|
+
"display_name": "ICICI Bank"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"aggregator_name": "Razorpay",
|
|
834
|
+
"name": "HDFC Bank",
|
|
835
|
+
"code": "HDFC",
|
|
836
|
+
"bank_name": "HDFC Bank",
|
|
837
|
+
"bank_code": "HDFC",
|
|
838
|
+
"url": "https://hdn-1.fynd.com/payment/NB_HDFC.png",
|
|
839
|
+
"logo_url": {
|
|
840
|
+
"small": "https://hdn-1.fynd.com/payment/NB_HDFC.png",
|
|
841
|
+
"large": "https://hdn-1.fynd.com/payment/NB_HDFC.png"
|
|
842
|
+
},
|
|
843
|
+
"merchant_code": "NB_HDFC",
|
|
844
|
+
"display_priority": 2,
|
|
845
|
+
"display_name": "HDFC Bank"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"aggregator_name": "Razorpay",
|
|
849
|
+
"name": "Axis Bank",
|
|
850
|
+
"code": "UTIB",
|
|
851
|
+
"bank_name": "Axis Bank",
|
|
852
|
+
"bank_code": "UTIB",
|
|
853
|
+
"url": "https://hdn-1.fynd.com/payment/NB_AXIS.png",
|
|
854
|
+
"logo_url": {
|
|
855
|
+
"small": "https://hdn-1.fynd.com/payment/NB_AXIS.png",
|
|
856
|
+
"large": "https://hdn-1.fynd.com/payment/NB_AXIS.png"
|
|
857
|
+
},
|
|
858
|
+
"merchant_code": "NB_AXIS",
|
|
859
|
+
"display_priority": 3,
|
|
860
|
+
"display_name": "Axis Bank"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"aggregator_name": "Razorpay",
|
|
864
|
+
"name": "State Bank of India",
|
|
865
|
+
"code": "SBIN",
|
|
866
|
+
"bank_name": "State Bank of India",
|
|
867
|
+
"bank_code": "SBIN",
|
|
868
|
+
"url": "https://hdn-1.fynd.com/payment/NB_SBI.png",
|
|
869
|
+
"logo_url": {
|
|
870
|
+
"small": "https://hdn-1.fynd.com/payment/NB_SBI.png",
|
|
871
|
+
"large": "https://hdn-1.fynd.com/payment/NB_SBI.png"
|
|
872
|
+
},
|
|
873
|
+
"merchant_code": "NB_SBI",
|
|
874
|
+
"display_priority": 4,
|
|
875
|
+
"display_name": "State Bank of India"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"aggregator_name": "Razorpay",
|
|
879
|
+
"name": "Kotak Mahindra Bank",
|
|
880
|
+
"code": "KKBK",
|
|
881
|
+
"bank_name": "Kotak Mahindra Bank",
|
|
882
|
+
"bank_code": "KKBK",
|
|
883
|
+
"url": "https://hdn-1.fynd.com/payment/NB_KOTAK.png",
|
|
884
|
+
"logo_url": {
|
|
885
|
+
"small": "https://hdn-1.fynd.com/payment/NB_KOTAK.png",
|
|
886
|
+
"large": "https://hdn-1.fynd.com/payment/NB_KOTAK.png"
|
|
887
|
+
},
|
|
888
|
+
"merchant_code": "NB_KOTAK",
|
|
889
|
+
"display_priority": 5,
|
|
890
|
+
"display_name": "Kotak Mahindra Bank"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"aggregator_name": "Razorpay",
|
|
894
|
+
"name": "Indusind Bank",
|
|
895
|
+
"code": "INDB",
|
|
896
|
+
"bank_name": "Indusind Bank",
|
|
897
|
+
"bank_code": "INDB",
|
|
898
|
+
"url": "https://hdn-1.fynd.com/payment/NB_INDUS.png",
|
|
899
|
+
"logo_url": {
|
|
900
|
+
"small": "https://hdn-1.fynd.com/payment/NB_INDUS.png",
|
|
901
|
+
"large": "https://hdn-1.fynd.com/payment/NB_INDUS.png"
|
|
902
|
+
},
|
|
903
|
+
"merchant_code": "INDB",
|
|
904
|
+
"display_priority": 6,
|
|
905
|
+
"display_name": "Indusind Bank"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"aggregator_name": "Razorpay",
|
|
909
|
+
"name": "City Union Bank",
|
|
910
|
+
"code": "CIUB",
|
|
911
|
+
"bank_name": "City Union Bank",
|
|
912
|
+
"bank_code": "CIUB",
|
|
913
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
914
|
+
"logo_url": {
|
|
915
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
916
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
917
|
+
},
|
|
918
|
+
"merchant_code": "NB_CUB",
|
|
919
|
+
"display_priority": 9,
|
|
920
|
+
"display_name": "City Union Bank"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"aggregator_name": "Razorpay",
|
|
924
|
+
"name": "Catholic Syrian Bank",
|
|
925
|
+
"code": "CSBK",
|
|
926
|
+
"bank_name": "Catholic Syrian Bank",
|
|
927
|
+
"bank_code": "CSBK",
|
|
928
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
929
|
+
"logo_url": {
|
|
930
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
931
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
932
|
+
},
|
|
933
|
+
"merchant_code": "CSBK",
|
|
934
|
+
"display_priority": 11,
|
|
935
|
+
"display_name": "Catholic Syrian Bank"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"aggregator_name": "Razorpay",
|
|
939
|
+
"name": "State Bank of Hyderabad",
|
|
940
|
+
"code": "SBHY",
|
|
941
|
+
"bank_name": "State Bank of Hyderabad",
|
|
942
|
+
"bank_code": "SBHY",
|
|
943
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
944
|
+
"logo_url": {
|
|
945
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
946
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
947
|
+
},
|
|
948
|
+
"merchant_code": "NB_SBH",
|
|
949
|
+
"display_priority": 12,
|
|
950
|
+
"display_name": "State Bank of Hyderabad"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"aggregator_name": "Razorpay",
|
|
954
|
+
"name": "Allahabad Bank",
|
|
955
|
+
"code": "ALLA",
|
|
956
|
+
"bank_name": "Allahabad Bank",
|
|
957
|
+
"bank_code": "ALLA",
|
|
958
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
959
|
+
"logo_url": {
|
|
960
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
961
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
962
|
+
},
|
|
963
|
+
"merchant_code": "ALLA",
|
|
964
|
+
"display_priority": 15,
|
|
965
|
+
"display_name": "Allahabad Bank"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"aggregator_name": "Razorpay",
|
|
969
|
+
"name": "Syndicate Bank",
|
|
970
|
+
"code": "SYNB",
|
|
971
|
+
"bank_name": "Syndicate Bank",
|
|
972
|
+
"bank_code": "SYNB",
|
|
973
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
974
|
+
"logo_url": {
|
|
975
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
976
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
977
|
+
},
|
|
978
|
+
"merchant_code": "SYNB",
|
|
979
|
+
"display_priority": 17,
|
|
980
|
+
"display_name": "Syndicate Bank"
|
|
981
|
+
}
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"name": "WL",
|
|
986
|
+
"display_priority": 4,
|
|
987
|
+
"payment_mode_id": 4,
|
|
988
|
+
"display_name": "Wallet",
|
|
989
|
+
"list": [
|
|
990
|
+
{
|
|
991
|
+
"wallet_name": "Paytm",
|
|
992
|
+
"wallet_code": "paytm",
|
|
993
|
+
"name": "Paytm",
|
|
994
|
+
"display_name": "Paytm",
|
|
995
|
+
"code": "paytm",
|
|
996
|
+
"wallet_id": 4,
|
|
997
|
+
"merchant_code": "PAYTM",
|
|
998
|
+
"logo_url": {
|
|
999
|
+
"small": "https://hdn-1.fynd.com/payment/paytm_logo_small.png",
|
|
1000
|
+
"large": "https://hdn-1.fynd.com/payment/paytm_logo_large.png"
|
|
1001
|
+
},
|
|
1002
|
+
"aggregator_name": "Juspay",
|
|
1003
|
+
"display_priority": 1
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"wallet_name": "Amazon Pay",
|
|
1007
|
+
"wallet_code": "amazonpay",
|
|
1008
|
+
"name": "Amazon Pay",
|
|
1009
|
+
"display_name": "Amazon Pay",
|
|
1010
|
+
"code": "amazonpay",
|
|
1011
|
+
"wallet_id": 10,
|
|
1012
|
+
"merchant_code": "AMAZONPAY",
|
|
1013
|
+
"logo_url": {
|
|
1014
|
+
"small": "https://hdn-1.fynd.com/payment/amazon-pay.png",
|
|
1015
|
+
"large": "https://hdn-1.fynd.com/payment/amazon-pay.png"
|
|
1016
|
+
},
|
|
1017
|
+
"aggregator_name": "Razorpay",
|
|
1018
|
+
"display_priority": 9
|
|
1019
|
+
}
|
|
1020
|
+
]
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "UPI",
|
|
1024
|
+
"display_priority": 9,
|
|
1025
|
+
"payment_mode_id": 7,
|
|
1026
|
+
"display_name": "UPI",
|
|
1027
|
+
"list": [
|
|
1028
|
+
{
|
|
1029
|
+
"aggregator_name": "Razorpay",
|
|
1030
|
+
"name": "UPI",
|
|
1031
|
+
"display_name": "BHIM UPI",
|
|
1032
|
+
"code": "UPI",
|
|
1033
|
+
"logo_url": {
|
|
1034
|
+
"small": "https://hdn-1.fynd.com/payment/upi_100x78.png",
|
|
1035
|
+
"large": "https://hdn-1.fynd.com/payment/upi_150x100.png"
|
|
1036
|
+
},
|
|
1037
|
+
"merchant_code": "UPI",
|
|
1038
|
+
"timeout": 310,
|
|
1039
|
+
"retry_count": 0,
|
|
1040
|
+
"fynd_vpa": "shopsense.rzp@hdfcbank",
|
|
1041
|
+
"intent_flow": true,
|
|
1042
|
+
"intent_app": [
|
|
1043
|
+
{
|
|
1044
|
+
"code": "google_pay",
|
|
1045
|
+
"display_name": "Google Pay",
|
|
1046
|
+
"package_name": "com.google.android.apps.nbu.paisa.user",
|
|
1047
|
+
"logos": {
|
|
1048
|
+
"small": "https://hdn-1.fynd.com/payment/upi-google-pay.png",
|
|
1049
|
+
"large": "https://hdn-1.fynd.com/payment/upi-google-pay.png"
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"intent_app_error_list": [
|
|
1054
|
+
"com.csam.icici.bank.imobile",
|
|
1055
|
+
"in.org.npci.upiapp",
|
|
1056
|
+
"com.whatsapp"
|
|
1057
|
+
],
|
|
1058
|
+
"intent_app_error_dict_list": [
|
|
1059
|
+
{
|
|
1060
|
+
"package_name": "com.csam.icici.bank.imobile",
|
|
1061
|
+
"code": "icici"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"package_name": "in.org.npci.upiapp",
|
|
1065
|
+
"code": "upiapp"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"package_name": "com.whatsapp",
|
|
1069
|
+
"code": "whatsapp"
|
|
1070
|
+
}
|
|
1071
|
+
]
|
|
1072
|
+
}
|
|
1073
|
+
]
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"name": "JUSPAYPG",
|
|
1077
|
+
"display_priority": 18,
|
|
1078
|
+
"payment_mode_id": 24,
|
|
1079
|
+
"display_name": "Pay Using Juspay",
|
|
1080
|
+
"list": []
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "PL",
|
|
1084
|
+
"display_priority": 21,
|
|
1085
|
+
"display_name": "Pay Later",
|
|
1086
|
+
"list": [
|
|
1087
|
+
{
|
|
1088
|
+
"aggregator_name": "Simpl",
|
|
1089
|
+
"name": "Simpl",
|
|
1090
|
+
"display_name": "Simpl",
|
|
1091
|
+
"code": "simpl",
|
|
1092
|
+
"merchant_code": "SIMPL",
|
|
1093
|
+
"logo": "https://hdn-1.fynd.com/payment/simpl_logo.png",
|
|
1094
|
+
"logo_url": {
|
|
1095
|
+
"small": "https://hdn-1.fynd.com/payment/simpl_logo.png",
|
|
1096
|
+
"large": "https://hdn-1.fynd.com/payment/simpl_logo.png"
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"aggregator_name": "Potlee",
|
|
1101
|
+
"name": "POTLEE",
|
|
1102
|
+
"display_name": "Potlee",
|
|
1103
|
+
"code": "POTLEE",
|
|
1104
|
+
"merchant_code": "POTLEE",
|
|
1105
|
+
"logo_url": {
|
|
1106
|
+
"large": "https://hdn-1.fynd.com/payment/Potlee.png",
|
|
1107
|
+
"small": "https://hdn-1.fynd.com/payment/Potlee.png"
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"name": "JIOPP",
|
|
1114
|
+
"display_priority": 15,
|
|
1115
|
+
"payment_mode_id": 15,
|
|
1116
|
+
"display_name": "Jio Partner Pay",
|
|
1117
|
+
"list": [
|
|
1118
|
+
{
|
|
1119
|
+
"aggregator_name": "Jio",
|
|
1120
|
+
"name": "JioPP",
|
|
1121
|
+
"display_name": "Jio Partner Pay",
|
|
1122
|
+
"code": "JIOPP",
|
|
1123
|
+
"logo_url": {
|
|
1124
|
+
"large": "https://hdn-1.fynd.com/payment/Pos+Logo.png",
|
|
1125
|
+
"small": "https://hdn-1.fynd.com/payment/Pos+Logo.png"
|
|
1126
|
+
},
|
|
1127
|
+
"merchant_code": "JIOPP"
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"payment_flows": {
|
|
1133
|
+
"simpl": {
|
|
1134
|
+
"data": {
|
|
1135
|
+
"gateway": {
|
|
1136
|
+
"route": "simpl",
|
|
1137
|
+
"entity": "sdk",
|
|
1138
|
+
"is_customer_validation_required": true,
|
|
1139
|
+
"cust_validation_url": "https://api.fyndx0.de/gringotts/api/v1/validate-customer/?app_id=000000000000000000000001",
|
|
1140
|
+
"sdk": {
|
|
1141
|
+
"config": {
|
|
1142
|
+
"redirect": false,
|
|
1143
|
+
"callback_url": null,
|
|
1144
|
+
"action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001"
|
|
1145
|
+
},
|
|
1146
|
+
"data": {
|
|
1147
|
+
"user_phone": "9999632145",
|
|
1148
|
+
"user_email": "app@fynd.com"
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
"return_url": null
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1154
|
+
"api_link": "",
|
|
1155
|
+
"payment_flow": "sdk",
|
|
1156
|
+
"payment_flow_data": {
|
|
1157
|
+
"is_customer_validation_required": true,
|
|
1158
|
+
"cust_validation_url": "https://api.fyndx0.de/platform/payment/api/v1/validate-customer/?app_id=000000000000000000000001",
|
|
1159
|
+
"config": {
|
|
1160
|
+
"redirect": false,
|
|
1161
|
+
"final_payment_action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001"
|
|
1162
|
+
},
|
|
1163
|
+
"data": {
|
|
1164
|
+
"user_phone": null,
|
|
1165
|
+
"user_email": null
|
|
1166
|
+
},
|
|
1167
|
+
"return_url": null
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"potlee": {
|
|
1171
|
+
"data": {
|
|
1172
|
+
"gateway": {
|
|
1173
|
+
"route": "potlee",
|
|
1174
|
+
"entity": "api",
|
|
1175
|
+
"is_customer_validation_required": true,
|
|
1176
|
+
"cust_validation_url": "https://api.fyndx0.de/gringotts/api/v1/validate-customer/",
|
|
1177
|
+
"return_url": null
|
|
1178
|
+
},
|
|
1179
|
+
"payment_flow_data": {
|
|
1180
|
+
"is_customer_validation_required": true,
|
|
1181
|
+
"cust_validation_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/callback/",
|
|
1182
|
+
"config": {
|
|
1183
|
+
"redirect": true,
|
|
1184
|
+
"final_payment_action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/callback/"
|
|
1185
|
+
},
|
|
1186
|
+
"return_url": null
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
"api_link": "",
|
|
1190
|
+
"payment_flow": "api",
|
|
1191
|
+
"payment_flow_data": {
|
|
1192
|
+
"return_url": null,
|
|
1193
|
+
"cust_validation_url": "https://api.fyndx0.de/gringotts/api/v1/validate-customer/",
|
|
1194
|
+
"is_customer_validation_required": true
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
"mswipe": {
|
|
1198
|
+
"data": {
|
|
1199
|
+
"gateway": {
|
|
1200
|
+
"sdk": {
|
|
1201
|
+
"config": {
|
|
1202
|
+
"redirect": false,
|
|
1203
|
+
"action_url": "url",
|
|
1204
|
+
"webhook_url": "url",
|
|
1205
|
+
"timeout": 60
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
"api_link": "",
|
|
1211
|
+
"payment_flow": "sdk"
|
|
1212
|
+
},
|
|
1213
|
+
"juspay": {
|
|
1214
|
+
"data": {},
|
|
1215
|
+
"api_link": "https://sandbox.juspay.in/txns",
|
|
1216
|
+
"payment_flow": "api"
|
|
1217
|
+
},
|
|
1218
|
+
"razorpay": {
|
|
1219
|
+
"data": {},
|
|
1220
|
+
"api_link": "",
|
|
1221
|
+
"payment_flow": "sdk"
|
|
1222
|
+
},
|
|
1223
|
+
"bqr_razorpay": {
|
|
1224
|
+
"data": {},
|
|
1225
|
+
"api_link": "https://api.fyndx0.de/platform/payment/v2/external/payments/request/?app_id=000000000000000000000001",
|
|
1226
|
+
"payment_flow": "api"
|
|
1227
|
+
},
|
|
1228
|
+
"fynd": {
|
|
1229
|
+
"data": {},
|
|
1230
|
+
"api_link": "",
|
|
1231
|
+
"payment_flow": "api"
|
|
1232
|
+
},
|
|
1233
|
+
"jio": {
|
|
1234
|
+
"data": {},
|
|
1235
|
+
"api_link": "",
|
|
1236
|
+
"payment_flow": "api"
|
|
1237
|
+
},
|
|
1238
|
+
"stripe": {
|
|
1239
|
+
"data": {},
|
|
1240
|
+
"api_link": "",
|
|
1241
|
+
"payment_flow": "sdk"
|
|
1242
|
+
},
|
|
1243
|
+
"ccavenue": {
|
|
1244
|
+
"data": {},
|
|
1245
|
+
"api_link": "",
|
|
1246
|
+
"payment_flow": "sdk"
|
|
1247
|
+
},
|
|
1248
|
+
"payumoney": {
|
|
1249
|
+
"data": {},
|
|
1250
|
+
"api_link": "",
|
|
1251
|
+
"payment_flow": "sdk"
|
|
1252
|
+
},
|
|
1253
|
+
"rupifi": {
|
|
1254
|
+
"data": {},
|
|
1255
|
+
"api_link": "",
|
|
1256
|
+
"return_url": "",
|
|
1257
|
+
"payment_flow": "api",
|
|
1258
|
+
"cust_validation_url": "https://api.jiox0.de/gringotts/api/v1/validate-customer/",
|
|
1259
|
+
"payment_flow_data": {
|
|
1260
|
+
"is_customer_validation_required": true,
|
|
1261
|
+
"cust_validation_url": "https://api.fyndx0.de/platform/payment/api/v1/validate-customer/?app_id=000000000000000000000001",
|
|
1262
|
+
"config": {
|
|
1263
|
+
"redirect": false,
|
|
1264
|
+
"final_payment_action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001"
|
|
1265
|
+
},
|
|
1266
|
+
"data": {
|
|
1267
|
+
"user_phone": null,
|
|
1268
|
+
"user_email": null
|
|
1269
|
+
},
|
|
1270
|
+
"return_url": null
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
"jiopay": {
|
|
1274
|
+
"api_link": "http://psp-mandate-merchant-sit.jiomoney.com:3003/pg",
|
|
1275
|
+
"payment_flow": "api",
|
|
1276
|
+
"data": {}
|
|
1277
|
+
},
|
|
1278
|
+
"epaylater": {
|
|
1279
|
+
"data": {},
|
|
1280
|
+
"api_link": "https://api-blackbox.epaylater.in/web/process-transaction/",
|
|
1281
|
+
"payment_flow": "api"
|
|
1282
|
+
},
|
|
1283
|
+
"Jio": {
|
|
1284
|
+
"data": {},
|
|
1285
|
+
"api_link": "",
|
|
1286
|
+
"payment_flow": "api"
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
```
|
|
1292
|
+
</details>
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
---
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
### getPosPaymentModeRoutes
|
|
1306
|
+
Get applicable payment options for Point-of-Sale (POS)
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
```javascript
|
|
1311
|
+
// Promise
|
|
1312
|
+
const promise = payment.getPosPaymentModeRoutes({ amount : value,
|
|
1313
|
+
cartId : value,
|
|
1314
|
+
pincode : value,
|
|
1315
|
+
checkoutMode : value,
|
|
1316
|
+
orderType : value,
|
|
1317
|
+
refresh : value,
|
|
1318
|
+
cardReference : value,
|
|
1319
|
+
userDetails : value });
|
|
1320
|
+
|
|
1321
|
+
// Async/Await
|
|
1322
|
+
const data = await payment.getPosPaymentModeRoutes({ amount : value,
|
|
1323
|
+
cartId : value,
|
|
1324
|
+
pincode : value,
|
|
1325
|
+
checkoutMode : value,
|
|
1326
|
+
orderType : value,
|
|
1327
|
+
refresh : value,
|
|
1328
|
+
cardReference : value,
|
|
1329
|
+
userDetails : value });
|
|
1330
|
+
```
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
| Argument | Type | Required | Description |
|
|
1337
|
+
| --------- | ----- | -------- | ----------- |
|
|
1338
|
+
| amount | number | yes | Payable amount. |
|
|
1339
|
+
| cartId | string | yes | Identifier of the cart. |
|
|
1340
|
+
| pincode | string | yes | The PIN Code of the destination address, e.g. 400059 |
|
|
1341
|
+
| checkoutMode | string | yes | Option to checkout for self or for others. |
|
|
1342
|
+
| refresh | boolean | no | This is a boolean value. Select `true` to remove temporary cache files on payment gateway and replace with the latest one. |
|
|
1343
|
+
| cardReference | string | no | Card reference id of user's debit or credit card. |
|
|
1344
|
+
| orderType | string | yes | The order type of shipment * HomeDelivery - If the customer wants the order home-delivered * PickAtStore - If the customer wants the handover of an order at the store itself. |
|
|
1345
|
+
| userDetails | string | no | URIencoded JSON containing details of an anonymous user. |
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
Use this API to get all valid payment options for doing a payment in POS.
|
|
1350
|
+
|
|
1351
|
+
*Returned Response:*
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
[PaymentModeRouteResponse](#PaymentModeRouteResponse)
|
|
1357
|
+
|
|
1358
|
+
Success. Returns all available options for payment. Check the example shown below or refer `PaymentModeRouteResponse` for more details.
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
<details>
|
|
1364
|
+
<summary><i> Example:</i></summary>
|
|
1365
|
+
|
|
1366
|
+
```json
|
|
1367
|
+
{
|
|
1368
|
+
"success": true,
|
|
1369
|
+
"payment_options": {
|
|
1370
|
+
"payment_option": [
|
|
1371
|
+
{
|
|
1372
|
+
"name": "CAS",
|
|
1373
|
+
"display_priority": 21,
|
|
1374
|
+
"payment_mode_id": 39,
|
|
1375
|
+
"display_name": "Cash at Store",
|
|
1376
|
+
"list": [
|
|
1377
|
+
{
|
|
1378
|
+
"aggregator_name": "Fynd",
|
|
1379
|
+
"name": "CAS",
|
|
1380
|
+
"display_name": "CASH",
|
|
1381
|
+
"code": "CAS",
|
|
1382
|
+
"logo_url": {
|
|
1383
|
+
"large": "https://hdn-1.fynd.com/payment/cod.png",
|
|
1384
|
+
"small": "https://hdn-1.fynd.com/payment/cod.png"
|
|
1385
|
+
},
|
|
1386
|
+
"merchant_code": "CAS"
|
|
1387
|
+
}
|
|
1388
|
+
]
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"name": "CSAS",
|
|
1392
|
+
"display_priority": 21,
|
|
1393
|
+
"payment_mode_id": 40,
|
|
1394
|
+
"display_name": "Card Swiped at Store",
|
|
1395
|
+
"list": [
|
|
1396
|
+
{
|
|
1397
|
+
"aggregator_name": "Fynd",
|
|
1398
|
+
"name": "CSAS",
|
|
1399
|
+
"display_name": "Card Swipe",
|
|
1400
|
+
"code": "CSAS",
|
|
1401
|
+
"logo_url": {
|
|
1402
|
+
"large": "https://hdn-1.fynd.com/payment/cod.png",
|
|
1403
|
+
"small": "https://hdn-1.fynd.com/payment/cod.png"
|
|
1404
|
+
},
|
|
1405
|
+
"merchant_code": "CSAS"
|
|
1406
|
+
}
|
|
1407
|
+
]
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
"name": "UPI",
|
|
1411
|
+
"display_priority": 9,
|
|
1412
|
+
"payment_mode_id": 7,
|
|
1413
|
+
"display_name": "UPI",
|
|
1414
|
+
"list": [
|
|
1415
|
+
{
|
|
1416
|
+
"aggregator_name": "Razorpay",
|
|
1417
|
+
"name": "UPI",
|
|
1418
|
+
"display_name": "BHIM UPI",
|
|
1419
|
+
"code": "UPI",
|
|
1420
|
+
"logo_url": {
|
|
1421
|
+
"small": "https://hdn-1.fynd.com/payment/upi_100x78.png",
|
|
1422
|
+
"large": "https://hdn-1.fynd.com/payment/upi_150x100.png"
|
|
1423
|
+
},
|
|
1424
|
+
"merchant_code": "UPI",
|
|
1425
|
+
"timeout": 240,
|
|
1426
|
+
"retry_count": 0,
|
|
1427
|
+
"fynd_vpa": "shopsense.rzp@hdfcbank",
|
|
1428
|
+
"intent_flow": true,
|
|
1429
|
+
"intent_app": [
|
|
1430
|
+
{
|
|
1431
|
+
"code": "google_pay",
|
|
1432
|
+
"display_name": "Google Pay",
|
|
1433
|
+
"package_name": "com.google.android.apps.nbu.paisa.user",
|
|
1434
|
+
"logos": {
|
|
1435
|
+
"small": "https://hdn-1.fynd.com/payment/upi-google-pay.png",
|
|
1436
|
+
"large": "https://hdn-1.fynd.com/payment/upi-google-pay.png"
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
"intent_app_error_list": [
|
|
1441
|
+
"com.csam.icici.bank.imobile",
|
|
1442
|
+
"in.org.npci.upiapp",
|
|
1443
|
+
"com.whatsapp"
|
|
1444
|
+
],
|
|
1445
|
+
"intent_app_error_dict_list": [
|
|
1446
|
+
{
|
|
1447
|
+
"package_name": "com.csam.icici.bank.imobile",
|
|
1448
|
+
"code": "icici"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"package_name": "in.org.npci.upiapp",
|
|
1452
|
+
"code": "upiapp"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"package_name": "com.whatsapp",
|
|
1456
|
+
"code": "whatsapp"
|
|
1457
|
+
}
|
|
1458
|
+
]
|
|
1459
|
+
}
|
|
1460
|
+
]
|
|
1461
|
+
}
|
|
1462
|
+
],
|
|
1463
|
+
"payment_flows": {
|
|
1464
|
+
"simpl": {
|
|
1465
|
+
"data": {
|
|
1466
|
+
"gateway": {
|
|
1467
|
+
"route": "simpl",
|
|
1468
|
+
"entity": "sdk",
|
|
1469
|
+
"is_customer_validation_required": true,
|
|
1470
|
+
"cust_validation_url": "https://api.fyndx0.de/gringotts/api/v1/validate-customer/?app_id=000000000000000000000001",
|
|
1471
|
+
"sdk": {
|
|
1472
|
+
"config": {
|
|
1473
|
+
"redirect": false,
|
|
1474
|
+
"callback_url": null,
|
|
1475
|
+
"action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001"
|
|
1476
|
+
},
|
|
1477
|
+
"data": {
|
|
1478
|
+
"user_phone": "9999632145",
|
|
1479
|
+
"user_email": "app@fynd.com"
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
"return_url": null
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
"api_link": "",
|
|
1486
|
+
"payment_flow": "sdk"
|
|
1487
|
+
},
|
|
1488
|
+
"juspay": {
|
|
1489
|
+
"data": {},
|
|
1490
|
+
"api_link": "https://sandbox.juspay.in/txns",
|
|
1491
|
+
"payment_flow": "api"
|
|
1492
|
+
},
|
|
1493
|
+
"razorpay": {
|
|
1494
|
+
"data": {},
|
|
1495
|
+
"api_link": "",
|
|
1496
|
+
"payment_flow": "sdk"
|
|
1497
|
+
},
|
|
1498
|
+
"upi_razorpay": {
|
|
1499
|
+
"data": {},
|
|
1500
|
+
"api_link": "https://api.fyndx0.de/platform/payment/v2/external/payments/request/?app_id=000000000000000000000001",
|
|
1501
|
+
"payment_flow": "api"
|
|
1502
|
+
},
|
|
1503
|
+
"bqr_razorpay": {
|
|
1504
|
+
"data": {},
|
|
1505
|
+
"api_link": "https://api.fyndx0.de/platform/payment/v2/external/payments/request/?app_id=000000000000000000000001",
|
|
1506
|
+
"payment_flow": "api"
|
|
1507
|
+
},
|
|
1508
|
+
"cashfree": {
|
|
1509
|
+
"data": {},
|
|
1510
|
+
"api_link": "",
|
|
1511
|
+
"payment_flow": "api"
|
|
1512
|
+
},
|
|
1513
|
+
"fynd": {
|
|
1514
|
+
"data": {},
|
|
1515
|
+
"api_link": "",
|
|
1516
|
+
"payment_flow": "api"
|
|
1517
|
+
},
|
|
1518
|
+
"jio": {
|
|
1519
|
+
"data": {},
|
|
1520
|
+
"api_link": "",
|
|
1521
|
+
"payment_flow": "api"
|
|
1522
|
+
},
|
|
1523
|
+
"stripe": {
|
|
1524
|
+
"data": {},
|
|
1525
|
+
"api_link": "",
|
|
1526
|
+
"payment_flow": "sdk"
|
|
1527
|
+
},
|
|
1528
|
+
"ccavenue": {
|
|
1529
|
+
"data": {},
|
|
1530
|
+
"api_link": "",
|
|
1531
|
+
"payment_flow": "sdk"
|
|
1532
|
+
},
|
|
1533
|
+
"payumoney": {
|
|
1534
|
+
"data": {},
|
|
1535
|
+
"api_link": "",
|
|
1536
|
+
"payment_flow": "sdk"
|
|
1537
|
+
},
|
|
1538
|
+
"rupifi": {
|
|
1539
|
+
"data": {},
|
|
1540
|
+
"api_link": "",
|
|
1541
|
+
"return_url": "",
|
|
1542
|
+
"payment_flow": "api",
|
|
1543
|
+
"cust_validation_url": "https://api.jiox0.de/gringotts/api/v1/validate-customer/"
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
```
|
|
1549
|
+
</details>
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
---
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
### getRupifiBannerDetails
|
|
1563
|
+
Get CreditLine Offer
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
|
|
1567
|
+
```javascript
|
|
1568
|
+
// Promise
|
|
1569
|
+
const promise = payment.getRupifiBannerDetails();
|
|
1570
|
+
|
|
1571
|
+
// Async/Await
|
|
1572
|
+
const data = await payment.getRupifiBannerDetails();
|
|
1573
|
+
```
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
Get CreditLine Offer if user is tentatively approved by rupifi
|
|
1581
|
+
|
|
1582
|
+
*Returned Response:*
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
[RupifiBannerResponse](#RupifiBannerResponse)
|
|
1588
|
+
|
|
1589
|
+
Success. Return CreditLine Offer detail. Check the example shown below or refer `RupifiBannerResponseSchema` for more details.
|
|
1590
|
+
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
<details>
|
|
1595
|
+
<summary><i> Example:</i></summary>
|
|
1596
|
+
|
|
1597
|
+
```json
|
|
1598
|
+
{
|
|
1599
|
+
"success": true,
|
|
1600
|
+
"data": {
|
|
1601
|
+
"kyc_url": "http://rupifi.kyc1.com/",
|
|
1602
|
+
"status": "APPROVED"
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
```
|
|
1606
|
+
</details>
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
---
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
### getEpaylaterBannerDetails
|
|
1620
|
+
Get Epaylater Enabled
|
|
1621
|
+
|
|
1622
|
+
|
|
1623
|
+
|
|
1624
|
+
```javascript
|
|
1625
|
+
// Promise
|
|
1626
|
+
const promise = payment.getEpaylaterBannerDetails();
|
|
1627
|
+
|
|
1628
|
+
// Async/Await
|
|
1629
|
+
const data = await payment.getEpaylaterBannerDetails();
|
|
1630
|
+
```
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
Get Epaylater Enabled if user is tentatively approved by epaylater
|
|
1638
|
+
|
|
1639
|
+
*Returned Response:*
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
[EpaylaterBannerResponse](#EpaylaterBannerResponse)
|
|
1645
|
+
|
|
1646
|
+
Success. Return Epaylater Offer detail. Check the example shown below or refer `EpaylaterBannerResponseSchema` for more details. if `display=True`, then show banner otherwise do not show.
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
<details>
|
|
1652
|
+
<summary><i> Examples:</i></summary>
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
<details>
|
|
1656
|
+
<summary><i> User is registered successfully</i></summary>
|
|
1657
|
+
|
|
1658
|
+
```json
|
|
1659
|
+
{
|
|
1660
|
+
"value": {
|
|
1661
|
+
"success": true,
|
|
1662
|
+
"data": {
|
|
1663
|
+
"display": false,
|
|
1664
|
+
"message": "User is Active",
|
|
1665
|
+
"status": "ACTIVE"
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
```
|
|
1670
|
+
</details>
|
|
1671
|
+
|
|
1672
|
+
<details>
|
|
1673
|
+
<summary><i> User is not registered or KYC not done or approval pending</i></summary>
|
|
1674
|
+
|
|
1675
|
+
```json
|
|
1676
|
+
{
|
|
1677
|
+
"value": {
|
|
1678
|
+
"success": true,
|
|
1679
|
+
"data": {
|
|
1680
|
+
"display": true,
|
|
1681
|
+
"message": "User is not registered",
|
|
1682
|
+
"status": "NOT REGISTERED"
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
```
|
|
1687
|
+
</details>
|
|
1688
|
+
|
|
1689
|
+
</details>
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
---
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
### resendOrCancelPayment
|
|
1703
|
+
API to resend and cancel a payment link which was already generated.
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
```javascript
|
|
1708
|
+
// Promise
|
|
1709
|
+
const promise = payment.resendOrCancelPayment({ body : value });
|
|
1710
|
+
|
|
1711
|
+
// Async/Await
|
|
1712
|
+
const data = await payment.resendOrCancelPayment({ body : value });
|
|
1713
|
+
```
|
|
1714
|
+
|
|
1715
|
+
|
|
1716
|
+
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
| Argument | Type | Required | Description |
|
|
1720
|
+
| --------- | ----- | -------- | ----------- |
|
|
1721
|
+
| body | [ResendOrCancelPaymentRequest](#ResendOrCancelPaymentRequest) | yes | Request body |
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
Use this API to perform resend or cancel a payment link based on request payload.
|
|
1725
|
+
|
|
1726
|
+
*Returned Response:*
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
[ResendOrCancelPaymentResponse](#ResendOrCancelPaymentResponse)
|
|
1732
|
+
|
|
1733
|
+
Success. Returns the status of payment. Check the example shown below or refer `ResendOrCancelPaymentResponse` for more details.
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
<details>
|
|
1739
|
+
<summary><i> Examples:</i></summary>
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
<details>
|
|
1743
|
+
<summary><i> request_type is cancel</i></summary>
|
|
1744
|
+
|
|
1745
|
+
```json
|
|
1746
|
+
{
|
|
1747
|
+
"value": {
|
|
1748
|
+
"success": true,
|
|
1749
|
+
"data": {
|
|
1750
|
+
"message": "Payment link Cancelled.",
|
|
1751
|
+
"status": true
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
```
|
|
1756
|
+
</details>
|
|
1757
|
+
|
|
1758
|
+
<details>
|
|
1759
|
+
<summary><i> request_type is resend</i></summary>
|
|
1760
|
+
|
|
1761
|
+
```json
|
|
1762
|
+
{
|
|
1763
|
+
"value": {
|
|
1764
|
+
"success": true,
|
|
1765
|
+
"data": {
|
|
1766
|
+
"message": "Notification triggered.",
|
|
1767
|
+
"status": true
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
```
|
|
1772
|
+
</details>
|
|
1773
|
+
|
|
1774
|
+
</details>
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
---
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
### getActiveRefundTransferModes
|
|
1788
|
+
Lists the mode of refund
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
```javascript
|
|
1793
|
+
// Promise
|
|
1794
|
+
const promise = payment.getActiveRefundTransferModes();
|
|
1795
|
+
|
|
1796
|
+
// Async/Await
|
|
1797
|
+
const data = await payment.getActiveRefundTransferModes();
|
|
1798
|
+
```
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
Use this API to retrieve eligible refund modes (such as Netbanking) and add the beneficiary details.
|
|
1806
|
+
|
|
1807
|
+
*Returned Response:*
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
[TransferModeResponse](#TransferModeResponse)
|
|
1813
|
+
|
|
1814
|
+
Success. Shows the available refund mode to choose, e.g. Netbanking. Check the example shown below or refer `TransferModeResponse` for more details.
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
<details>
|
|
1820
|
+
<summary><i> Example:</i></summary>
|
|
1821
|
+
|
|
1822
|
+
```json
|
|
1823
|
+
{
|
|
1824
|
+
"data": [
|
|
1825
|
+
{
|
|
1826
|
+
"display_name": "BANK",
|
|
1827
|
+
"items": [
|
|
1828
|
+
{
|
|
1829
|
+
"id": 6,
|
|
1830
|
+
"name": "bank",
|
|
1831
|
+
"display_name": "BANK",
|
|
1832
|
+
"logo_small": "https://hdn-1.fynd.com/payment/netbanking.png",
|
|
1833
|
+
"logo_large": "https://hdn-1.fynd.com/payment/netbanking.png"
|
|
1834
|
+
}
|
|
1835
|
+
]
|
|
1836
|
+
}
|
|
1837
|
+
]
|
|
1838
|
+
}
|
|
1839
|
+
```
|
|
1840
|
+
</details>
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
|
|
1849
|
+
|
|
1850
|
+
---
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
### enableOrDisableRefundTransferMode
|
|
1854
|
+
Enable/Disable a mode for transferring a refund
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
```javascript
|
|
1859
|
+
// Promise
|
|
1860
|
+
const promise = payment.enableOrDisableRefundTransferMode({ body : value });
|
|
1861
|
+
|
|
1862
|
+
// Async/Await
|
|
1863
|
+
const data = await payment.enableOrDisableRefundTransferMode({ body : value });
|
|
1864
|
+
```
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
| Argument | Type | Required | Description |
|
|
1871
|
+
| --------- | ----- | -------- | ----------- |
|
|
1872
|
+
| body | [UpdateRefundTransferModeRequest](#UpdateRefundTransferModeRequest) | yes | Request body |
|
|
1873
|
+
|
|
1874
|
+
|
|
1875
|
+
Activate or Deactivate Transfer Mode to collect Beneficiary Details for Refund
|
|
1876
|
+
|
|
1877
|
+
*Returned Response:*
|
|
1878
|
+
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
[UpdateRefundTransferModeResponse](#UpdateRefundTransferModeResponse)
|
|
1883
|
+
|
|
1884
|
+
Success. Shows whether the refund mode was successfully enabled or disabled.
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
<details>
|
|
1890
|
+
<summary><i> Example:</i></summary>
|
|
1891
|
+
|
|
1892
|
+
```json
|
|
1893
|
+
{
|
|
1894
|
+
"success": true
|
|
1895
|
+
}
|
|
1896
|
+
```
|
|
1897
|
+
</details>
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
---
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
### getUserBeneficiariesDetail
|
|
1911
|
+
Lists the beneficiary of a refund
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
|
|
1915
|
+
```javascript
|
|
1916
|
+
// Promise
|
|
1917
|
+
const promise = payment.getUserBeneficiariesDetail({ orderId : value });
|
|
1918
|
+
|
|
1919
|
+
// Async/Await
|
|
1920
|
+
const data = await payment.getUserBeneficiariesDetail({ orderId : value });
|
|
1921
|
+
```
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
| Argument | Type | Required | Description |
|
|
1928
|
+
| --------- | ----- | -------- | ----------- |
|
|
1929
|
+
| orderId | string | yes | A unique number used for identifying and tracking your orders. |
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
Use this API to get the details of all active beneficiary added by a user for refund.
|
|
1934
|
+
|
|
1935
|
+
*Returned Response:*
|
|
1936
|
+
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
[OrderBeneficiaryResponse](#OrderBeneficiaryResponse)
|
|
1941
|
+
|
|
1942
|
+
Success. Returns the details of the beneficiary getting a refund. Check the example shown below or refer `OrderBeneficiaryResponse` for more details.
|
|
1943
|
+
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
<details>
|
|
1948
|
+
<summary><i> Example:</i></summary>
|
|
1949
|
+
|
|
1950
|
+
```json
|
|
1951
|
+
{
|
|
1952
|
+
"beneficiaries": [
|
|
1953
|
+
{
|
|
1954
|
+
"id": 221,
|
|
1955
|
+
"beneficiary_id": "0f7e44a922df352c05c5f73cb40ba115",
|
|
1956
|
+
"bank_name": "State Bank of India",
|
|
1957
|
+
"branch_name": "State Bank of India",
|
|
1958
|
+
"account_holder": "SHASHI TEST",
|
|
1959
|
+
"account_no": "1234567891",
|
|
1960
|
+
"ifsc_code": "SBIN0005611",
|
|
1961
|
+
"mobile": "9112042174",
|
|
1962
|
+
"email": "payment@gofynd.com",
|
|
1963
|
+
"address": "204A",
|
|
1964
|
+
"comment": "",
|
|
1965
|
+
"is_active": null,
|
|
1966
|
+
"created_on": "2020-06-29 12:38:39",
|
|
1967
|
+
"modified_on": "2020-06-29 12:38:39",
|
|
1968
|
+
"display_name": "BANK",
|
|
1969
|
+
"transfer_mode": "bank",
|
|
1970
|
+
"title": "Bank Account",
|
|
1971
|
+
"subtitle": "1234567891",
|
|
1972
|
+
"delights_user_name": null
|
|
1973
|
+
}
|
|
1974
|
+
],
|
|
1975
|
+
"show_beneficiary_details": false
|
|
1976
|
+
}
|
|
1977
|
+
```
|
|
1978
|
+
</details>
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
---
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
### verifyIfscCode
|
|
1992
|
+
Verify IFSC Code
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
```javascript
|
|
1997
|
+
// Promise
|
|
1998
|
+
const promise = payment.verifyIfscCode({ ifscCode : value });
|
|
1999
|
+
|
|
2000
|
+
// Async/Await
|
|
2001
|
+
const data = await payment.verifyIfscCode({ ifscCode : value });
|
|
2002
|
+
```
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
| Argument | Type | Required | Description |
|
|
2009
|
+
| --------- | ----- | -------- | ----------- |
|
|
2010
|
+
| ifscCode | string | no | A 11-digit alphanumeric code that uniquely identifies a bank branch. |
|
|
2011
|
+
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
Use this API to check whether the 11-digit IFSC code is valid and to fetch the bank details for refund.
|
|
2015
|
+
|
|
2016
|
+
*Returned Response:*
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
[IfscCodeResponse](#IfscCodeResponse)
|
|
2022
|
+
|
|
2023
|
+
Success. Shows whether the IFSC code is valid, and returns the bank details. Check the example shown below or refer `IfscCodeResponse` for more details.
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
<details>
|
|
2029
|
+
<summary><i> Example:</i></summary>
|
|
2030
|
+
|
|
2031
|
+
```json
|
|
2032
|
+
{
|
|
2033
|
+
"branch_name": "MANPUR",
|
|
2034
|
+
"bank_name": "GAYA",
|
|
2035
|
+
"BRANCH": "MANPUR",
|
|
2036
|
+
"CENTRE": "GAYA",
|
|
2037
|
+
"DISTRICT": "GAYA",
|
|
2038
|
+
"STATE": "BIHAR",
|
|
2039
|
+
"ADDRESS": "POBUNIYADGANJBIHAR",
|
|
2040
|
+
"CONTACT": "00",
|
|
2041
|
+
"MICR": "816002103",
|
|
2042
|
+
"UPI": true,
|
|
2043
|
+
"RTGS": true,
|
|
2044
|
+
"CITY": "GAYA",
|
|
2045
|
+
"NEFT": true,
|
|
2046
|
+
"IMPS": true,
|
|
2047
|
+
"SWIFT": "",
|
|
2048
|
+
"BANK": "State Bank of India",
|
|
2049
|
+
"BANKCODE": "SBIN",
|
|
2050
|
+
"IFSC": "SBIN0005611",
|
|
2051
|
+
"success": true
|
|
2052
|
+
}
|
|
2053
|
+
```
|
|
2054
|
+
</details>
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
---
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
### getOrderBeneficiariesDetail
|
|
2068
|
+
Lists the beneficiary of a refund
|
|
2069
|
+
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
```javascript
|
|
2073
|
+
// Promise
|
|
2074
|
+
const promise = payment.getOrderBeneficiariesDetail({ orderId : value });
|
|
2075
|
+
|
|
2076
|
+
// Async/Await
|
|
2077
|
+
const data = await payment.getOrderBeneficiariesDetail({ orderId : value });
|
|
2078
|
+
```
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
| Argument | Type | Required | Description |
|
|
2085
|
+
| --------- | ----- | -------- | ----------- |
|
|
2086
|
+
| orderId | string | yes | A unique number used for identifying and tracking your orders. |
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
Use this API to get the details of all active beneficiary added by a user for refund.
|
|
2091
|
+
|
|
2092
|
+
*Returned Response:*
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
[OrderBeneficiaryResponse](#OrderBeneficiaryResponse)
|
|
2098
|
+
|
|
2099
|
+
Success. Returns the details of the beneficiary getting a refund. Check the example shown below or refer `OrderBeneficiaryResponse` for more details.
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
<details>
|
|
2105
|
+
<summary><i> Example:</i></summary>
|
|
2106
|
+
|
|
2107
|
+
```json
|
|
2108
|
+
{
|
|
2109
|
+
"beneficiaries": [
|
|
2110
|
+
{
|
|
2111
|
+
"id": 3695,
|
|
2112
|
+
"beneficiary_id": "4c86dd56e634a4c6a8fb51d195bc7b83",
|
|
2113
|
+
"bank_name": "State Bank of India",
|
|
2114
|
+
"branch_name": "BHOGAT",
|
|
2115
|
+
"account_holder": "PRAKASH TEST",
|
|
2116
|
+
"account_no": "3566342455454",
|
|
2117
|
+
"ifsc_code": "SBIN0014982",
|
|
2118
|
+
"mobile": "7819064010",
|
|
2119
|
+
"email": "prakashtest@gmail.com",
|
|
2120
|
+
"address": "49A, Dabhi seri, jodhpur, kalyanpur",
|
|
2121
|
+
"comment": "COD Refund",
|
|
2122
|
+
"is_active": null,
|
|
2123
|
+
"created_on": "2021-01-22 11:31:02",
|
|
2124
|
+
"modified_on": "2021-01-22 11:31:02",
|
|
2125
|
+
"display_name": "BANK",
|
|
2126
|
+
"transfer_mode": "bank",
|
|
2127
|
+
"title": "Bank Account",
|
|
2128
|
+
"subtitle": "35663423659",
|
|
2129
|
+
"delights_user_name": "shreeniwas_24x7_gmail_com_45978_16624463"
|
|
2130
|
+
}
|
|
2131
|
+
]
|
|
2132
|
+
}
|
|
2133
|
+
```
|
|
2134
|
+
</details>
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
---
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
### verifyOtpAndAddBeneficiaryForBank
|
|
2148
|
+
Verify the beneficiary details using OTP
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
```javascript
|
|
2153
|
+
// Promise
|
|
2154
|
+
const promise = payment.verifyOtpAndAddBeneficiaryForBank({ body : value });
|
|
2155
|
+
|
|
2156
|
+
// Async/Await
|
|
2157
|
+
const data = await payment.verifyOtpAndAddBeneficiaryForBank({ body : value });
|
|
2158
|
+
```
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
| Argument | Type | Required | Description |
|
|
2165
|
+
| --------- | ----- | -------- | ----------- |
|
|
2166
|
+
| body | [AddBeneficiaryViaOtpVerificationRequest](#AddBeneficiaryViaOtpVerificationRequest) | yes | Request body |
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
Use this API to perform an OTP validation before saving the beneficiary details added for a refund.
|
|
2170
|
+
|
|
2171
|
+
*Returned Response:*
|
|
2172
|
+
|
|
2173
|
+
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
[AddBeneficiaryViaOtpVerificationResponse](#AddBeneficiaryViaOtpVerificationResponse)
|
|
2177
|
+
|
|
2178
|
+
Success. Check the example shown below or refer `AddBeneficiaryViaOtpVerificationRequest` for more details.
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
<details>
|
|
2184
|
+
<summary><i> Example:</i></summary>
|
|
2185
|
+
|
|
2186
|
+
```json
|
|
2187
|
+
{
|
|
2188
|
+
"success": true,
|
|
2189
|
+
"message": "Account successfully created"
|
|
2190
|
+
}
|
|
2191
|
+
```
|
|
2192
|
+
</details>
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
---
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
### addBeneficiaryDetails
|
|
2206
|
+
Save bank details for cancelled/returned order
|
|
2207
|
+
|
|
2208
|
+
|
|
2209
|
+
|
|
2210
|
+
```javascript
|
|
2211
|
+
// Promise
|
|
2212
|
+
const promise = payment.addBeneficiaryDetails({ body : value });
|
|
2213
|
+
|
|
2214
|
+
// Async/Await
|
|
2215
|
+
const data = await payment.addBeneficiaryDetails({ body : value });
|
|
2216
|
+
```
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
| Argument | Type | Required | Description |
|
|
2223
|
+
| --------- | ----- | -------- | ----------- |
|
|
2224
|
+
| body | [AddBeneficiaryDetailsRequest](#AddBeneficiaryDetailsRequest) | yes | Request body |
|
|
2225
|
+
|
|
2226
|
+
|
|
2227
|
+
Use this API to save the bank details for a returned or cancelled order to refund the amount.
|
|
2228
|
+
|
|
2229
|
+
*Returned Response:*
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
[RefundAccountResponse](#RefundAccountResponse)
|
|
2235
|
+
|
|
2236
|
+
Success. Shows whether the beneficiary details were saved to a returned/cancelled order or not.
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
<details>
|
|
2242
|
+
<summary><i> Example:</i></summary>
|
|
2243
|
+
|
|
2244
|
+
```json
|
|
2245
|
+
{
|
|
2246
|
+
"success": true,
|
|
2247
|
+
"message": "Account successfully created",
|
|
2248
|
+
"data": {},
|
|
2249
|
+
"is_verified_flag": true
|
|
2250
|
+
}
|
|
2251
|
+
```
|
|
2252
|
+
</details>
|
|
2253
|
+
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
|
|
2257
|
+
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
---
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
### addRefundBankAccountUsingOTP
|
|
2266
|
+
Save bank details for cancelled/returned order
|
|
2267
|
+
|
|
2268
|
+
|
|
2269
|
+
|
|
2270
|
+
```javascript
|
|
2271
|
+
// Promise
|
|
2272
|
+
const promise = payment.addRefundBankAccountUsingOTP({ body : value });
|
|
2273
|
+
|
|
2274
|
+
// Async/Await
|
|
2275
|
+
const data = await payment.addRefundBankAccountUsingOTP({ body : value });
|
|
2276
|
+
```
|
|
2277
|
+
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
| Argument | Type | Required | Description |
|
|
2283
|
+
| --------- | ----- | -------- | ----------- |
|
|
2284
|
+
| body | [AddBeneficiaryDetailsOTPRequest](#AddBeneficiaryDetailsOTPRequest) | yes | Request body |
|
|
2285
|
+
|
|
2286
|
+
|
|
2287
|
+
Use this API to save bank details for returned/cancelled order to refund amount in his account.
|
|
2288
|
+
|
|
2289
|
+
*Returned Response:*
|
|
2290
|
+
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
[RefundAccountResponse](#RefundAccountResponse)
|
|
2295
|
+
|
|
2296
|
+
Success. Shows whether the beneficiary details were saved to a returned/cancelled order or not.
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
<details>
|
|
2302
|
+
<summary><i> Example:</i></summary>
|
|
2303
|
+
|
|
2304
|
+
```json
|
|
2305
|
+
{
|
|
2306
|
+
"success": true,
|
|
2307
|
+
"message": "Account successfully created",
|
|
2308
|
+
"data": {},
|
|
2309
|
+
"is_verified_flag": true
|
|
2310
|
+
}
|
|
2311
|
+
```
|
|
2312
|
+
</details>
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
---
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
### verifyOtpAndAddBeneficiaryForWallet
|
|
2326
|
+
Send OTP on adding a wallet beneficiary
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
```javascript
|
|
2331
|
+
// Promise
|
|
2332
|
+
const promise = payment.verifyOtpAndAddBeneficiaryForWallet({ body : value });
|
|
2333
|
+
|
|
2334
|
+
// Async/Await
|
|
2335
|
+
const data = await payment.verifyOtpAndAddBeneficiaryForWallet({ body : value });
|
|
2336
|
+
```
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
| Argument | Type | Required | Description |
|
|
2343
|
+
| --------- | ----- | -------- | ----------- |
|
|
2344
|
+
| body | [WalletOtpRequest](#WalletOtpRequest) | yes | Request body |
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
Use this API to send an OTP while adding a wallet beneficiary by mobile no. verification.
|
|
2348
|
+
|
|
2349
|
+
*Returned Response:*
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
[WalletOtpResponse](#WalletOtpResponse)
|
|
2355
|
+
|
|
2356
|
+
Success. Sends the OTP to the given mobile number. Check the example shown below or refer `WalletOtpResponse` for more details.
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
<details>
|
|
2362
|
+
<summary><i> Example:</i></summary>
|
|
2363
|
+
|
|
2364
|
+
```json
|
|
2365
|
+
{
|
|
2366
|
+
"success": true,
|
|
2367
|
+
"is_verified_flag": false,
|
|
2368
|
+
"request_id": "c3ca6c13d490c885a125d106b45697b7"
|
|
2369
|
+
}
|
|
2370
|
+
```
|
|
2371
|
+
</details>
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
|
|
2375
|
+
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
---
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
### updateDefaultBeneficiary
|
|
2385
|
+
Set a default beneficiary for a refund
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
|
|
2389
|
+
```javascript
|
|
2390
|
+
// Promise
|
|
2391
|
+
const promise = payment.updateDefaultBeneficiary({ body : value });
|
|
2392
|
+
|
|
2393
|
+
// Async/Await
|
|
2394
|
+
const data = await payment.updateDefaultBeneficiary({ body : value });
|
|
2395
|
+
```
|
|
2396
|
+
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
|
|
2401
|
+
| Argument | Type | Required | Description |
|
|
2402
|
+
| --------- | ----- | -------- | ----------- |
|
|
2403
|
+
| body | [SetDefaultBeneficiaryRequest](#SetDefaultBeneficiaryRequest) | yes | Request body |
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
Use this API to set a default beneficiary for getting a refund.
|
|
2407
|
+
|
|
2408
|
+
*Returned Response:*
|
|
2409
|
+
|
|
2410
|
+
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
[SetDefaultBeneficiaryResponse](#SetDefaultBeneficiaryResponse)
|
|
2414
|
+
|
|
2415
|
+
Success. Check the example shown below or refer `SetDefaultBeneficiaryResponse` for more details.
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
<details>
|
|
2421
|
+
<summary><i> Example:</i></summary>
|
|
2422
|
+
|
|
2423
|
+
```json
|
|
2424
|
+
{
|
|
2425
|
+
"success": true,
|
|
2426
|
+
"is_beneficiary_set": true
|
|
2427
|
+
}
|
|
2428
|
+
```
|
|
2429
|
+
</details>
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
---
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
### getPaymentLink
|
|
2443
|
+
Get payment link
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
|
|
2447
|
+
```javascript
|
|
2448
|
+
// Promise
|
|
2449
|
+
const promise = payment.getPaymentLink({ paymentLinkId : value });
|
|
2450
|
+
|
|
2451
|
+
// Async/Await
|
|
2452
|
+
const data = await payment.getPaymentLink({ paymentLinkId : value });
|
|
2453
|
+
```
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+
| Argument | Type | Required | Description |
|
|
2460
|
+
| --------- | ----- | -------- | ----------- |
|
|
2461
|
+
| paymentLinkId | string | no | |
|
|
2462
|
+
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
Use this API to get a payment link
|
|
2466
|
+
|
|
2467
|
+
*Returned Response:*
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
|
|
2472
|
+
[GetPaymentLinkResponse](#GetPaymentLinkResponse)
|
|
2473
|
+
|
|
2474
|
+
Success. Check the example shown below
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
|
|
2479
|
+
<details>
|
|
2480
|
+
<summary><i> Example:</i></summary>
|
|
2481
|
+
|
|
2482
|
+
```json
|
|
2483
|
+
{
|
|
2484
|
+
"success": true,
|
|
2485
|
+
"message": "Payment link",
|
|
2486
|
+
"status_code": 200,
|
|
2487
|
+
"payment_link_current_status": "resent",
|
|
2488
|
+
"payment_link_url": "https://api.fyndx0.de/service/application/payment/v1.0/payment/options/link/?id=4adb4451720a82ee69a3c1c4cc9ab442&refresh=false",
|
|
2489
|
+
"external_order_id": "FY62614DF9D5CF31D3D0",
|
|
2490
|
+
"amount": 21900,
|
|
2491
|
+
"merchant_name": "Fynd",
|
|
2492
|
+
"polling_timeout": 1800
|
|
2493
|
+
}
|
|
2494
|
+
```
|
|
2495
|
+
</details>
|
|
2496
|
+
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
---
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
### createPaymentLink
|
|
2509
|
+
Create payment link
|
|
2510
|
+
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
```javascript
|
|
2514
|
+
// Promise
|
|
2515
|
+
const promise = payment.createPaymentLink({ body : value });
|
|
2516
|
+
|
|
2517
|
+
// Async/Await
|
|
2518
|
+
const data = await payment.createPaymentLink({ body : value });
|
|
2519
|
+
```
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
| Argument | Type | Required | Description |
|
|
2526
|
+
| --------- | ----- | -------- | ----------- |
|
|
2527
|
+
| body | [CreatePaymentLinkRequest](#CreatePaymentLinkRequest) | yes | Request body |
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
Use this API to create a payment link for the customer
|
|
2531
|
+
|
|
2532
|
+
*Returned Response:*
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
[CreatePaymentLinkResponse](#CreatePaymentLinkResponse)
|
|
2538
|
+
|
|
2539
|
+
Success. Check the example shown below
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
<details>
|
|
2545
|
+
<summary><i> Example:</i></summary>
|
|
2546
|
+
|
|
2547
|
+
```json
|
|
2548
|
+
{
|
|
2549
|
+
"success": true,
|
|
2550
|
+
"message": "Payment link created",
|
|
2551
|
+
"status_code": 200,
|
|
2552
|
+
"payment_link_url": "https://api.fyndx0.de/service/application/payment/v1.0/payment/options/link/?id=96b15ea2014a76c8d2774783e239ce26&refresh=false",
|
|
2553
|
+
"payment_link_id": "96b15ea2014a76c8d2774783e239ce26",
|
|
2554
|
+
"polling_timeout": 480
|
|
2555
|
+
}
|
|
2556
|
+
```
|
|
2557
|
+
</details>
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
---
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
### resendPaymentLink
|
|
2571
|
+
Resend payment link
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
```javascript
|
|
2576
|
+
// Promise
|
|
2577
|
+
const promise = payment.resendPaymentLink({ body : value });
|
|
2578
|
+
|
|
2579
|
+
// Async/Await
|
|
2580
|
+
const data = await payment.resendPaymentLink({ body : value });
|
|
2581
|
+
```
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
| Argument | Type | Required | Description |
|
|
2588
|
+
| --------- | ----- | -------- | ----------- |
|
|
2589
|
+
| body | [CancelOrResendPaymentLinkRequest](#CancelOrResendPaymentLinkRequest) | yes | Request body |
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
Use this API to resend a payment link for the customer
|
|
2593
|
+
|
|
2594
|
+
*Returned Response:*
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
|
|
2598
|
+
|
|
2599
|
+
[ResendPaymentLinkResponse](#ResendPaymentLinkResponse)
|
|
2600
|
+
|
|
2601
|
+
Success. Check the example shown below
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
|
|
2605
|
+
|
|
2606
|
+
<details>
|
|
2607
|
+
<summary><i> Example:</i></summary>
|
|
2608
|
+
|
|
2609
|
+
```json
|
|
2610
|
+
{
|
|
2611
|
+
"success": true,
|
|
2612
|
+
"message": "Payment link resent",
|
|
2613
|
+
"status_code": 200,
|
|
2614
|
+
"polling_timeout": 480
|
|
2615
|
+
}
|
|
2616
|
+
```
|
|
2617
|
+
</details>
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
|
|
2627
|
+
---
|
|
2628
|
+
|
|
2629
|
+
|
|
2630
|
+
### cancelPaymentLink
|
|
2631
|
+
Cancel payment link
|
|
2632
|
+
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
```javascript
|
|
2636
|
+
// Promise
|
|
2637
|
+
const promise = payment.cancelPaymentLink({ body : value });
|
|
2638
|
+
|
|
2639
|
+
// Async/Await
|
|
2640
|
+
const data = await payment.cancelPaymentLink({ body : value });
|
|
2641
|
+
```
|
|
2642
|
+
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
|
|
2646
|
+
|
|
2647
|
+
| Argument | Type | Required | Description |
|
|
2648
|
+
| --------- | ----- | -------- | ----------- |
|
|
2649
|
+
| body | [CancelOrResendPaymentLinkRequest](#CancelOrResendPaymentLinkRequest) | yes | Request body |
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
Use this API to cancel a payment link for the customer
|
|
2653
|
+
|
|
2654
|
+
*Returned Response:*
|
|
2655
|
+
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
[CancelPaymentLinkResponse](#CancelPaymentLinkResponse)
|
|
2660
|
+
|
|
2661
|
+
Success. Check the example shown below
|
|
2662
|
+
|
|
2663
|
+
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
<details>
|
|
2667
|
+
<summary><i> Example:</i></summary>
|
|
2668
|
+
|
|
2669
|
+
```json
|
|
2670
|
+
{
|
|
2671
|
+
"success": true,
|
|
2672
|
+
"message": "Payment link cancelled",
|
|
2673
|
+
"status_code": 200
|
|
2674
|
+
}
|
|
2675
|
+
```
|
|
2676
|
+
</details>
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
|
|
2684
|
+
|
|
2685
|
+
|
|
2686
|
+
---
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
### getPaymentModeRoutesPaymentLink
|
|
2690
|
+
Get applicable payment options for payment link
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
```javascript
|
|
2695
|
+
// Promise
|
|
2696
|
+
const promise = payment.getPaymentModeRoutesPaymentLink({ paymentLinkId : value });
|
|
2697
|
+
|
|
2698
|
+
// Async/Await
|
|
2699
|
+
const data = await payment.getPaymentModeRoutesPaymentLink({ paymentLinkId : value });
|
|
2700
|
+
```
|
|
2701
|
+
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
|
|
2705
|
+
|
|
2706
|
+
| Argument | Type | Required | Description |
|
|
2707
|
+
| --------- | ----- | -------- | ----------- |
|
|
2708
|
+
| paymentLinkId | string | yes | Payment link id |
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
Use this API to get all valid payment options for doing a payment through payment link
|
|
2713
|
+
|
|
2714
|
+
*Returned Response:*
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
|
|
2718
|
+
|
|
2719
|
+
[PaymentModeRouteResponse](#PaymentModeRouteResponse)
|
|
2720
|
+
|
|
2721
|
+
Success. Returns all available options for payment. Check the example shown below or refer `PaymentModeRouteResponse` for more details.
|
|
2722
|
+
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
<details>
|
|
2727
|
+
<summary><i> Example:</i></summary>
|
|
2728
|
+
|
|
2729
|
+
```json
|
|
2730
|
+
{
|
|
2731
|
+
"success": true,
|
|
2732
|
+
"payment_options": {
|
|
2733
|
+
"payment_option": [
|
|
2734
|
+
{
|
|
2735
|
+
"name": "CARD",
|
|
2736
|
+
"display_priority": 2,
|
|
2737
|
+
"payment_mode_id": 2,
|
|
2738
|
+
"display_name": "Card",
|
|
2739
|
+
"list": [],
|
|
2740
|
+
"anonymous_enable": true,
|
|
2741
|
+
"aggregator_name": "Razorpay",
|
|
2742
|
+
"add_card_enabled": false,
|
|
2743
|
+
"is_pay_by_card_pl": true
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"name": "NB",
|
|
2747
|
+
"display_priority": 3,
|
|
2748
|
+
"payment_mode_id": 3,
|
|
2749
|
+
"display_name": "Net Banking",
|
|
2750
|
+
"list": [
|
|
2751
|
+
{
|
|
2752
|
+
"aggregator_name": "Razorpay",
|
|
2753
|
+
"name": "ICICI Bank",
|
|
2754
|
+
"code": "ICIC",
|
|
2755
|
+
"bank_name": "ICICI Bank",
|
|
2756
|
+
"bank_code": "ICIC",
|
|
2757
|
+
"url": "https://hdn-1.fynd.com/payment/NB_ICICI.png",
|
|
2758
|
+
"logo_url": {
|
|
2759
|
+
"small": "https://hdn-1.fynd.com/payment/NB_ICICI.png",
|
|
2760
|
+
"large": "https://hdn-1.fynd.com/payment/NB_ICICI.png"
|
|
2761
|
+
},
|
|
2762
|
+
"merchant_code": "NB_ICICI",
|
|
2763
|
+
"display_priority": 1,
|
|
2764
|
+
"display_name": "ICICI Bank"
|
|
2765
|
+
},
|
|
2766
|
+
{
|
|
2767
|
+
"aggregator_name": "Razorpay",
|
|
2768
|
+
"name": "HDFC Bank",
|
|
2769
|
+
"code": "HDFC",
|
|
2770
|
+
"bank_name": "HDFC Bank",
|
|
2771
|
+
"bank_code": "HDFC",
|
|
2772
|
+
"url": "https://hdn-1.fynd.com/payment/NB_HDFC.png",
|
|
2773
|
+
"logo_url": {
|
|
2774
|
+
"small": "https://hdn-1.fynd.com/payment/NB_HDFC.png",
|
|
2775
|
+
"large": "https://hdn-1.fynd.com/payment/NB_HDFC.png"
|
|
2776
|
+
},
|
|
2777
|
+
"merchant_code": "NB_HDFC",
|
|
2778
|
+
"display_priority": 2,
|
|
2779
|
+
"display_name": "HDFC Bank"
|
|
2780
|
+
},
|
|
2781
|
+
{
|
|
2782
|
+
"aggregator_name": "Razorpay",
|
|
2783
|
+
"name": "Axis Bank",
|
|
2784
|
+
"code": "UTIB",
|
|
2785
|
+
"bank_name": "Axis Bank",
|
|
2786
|
+
"bank_code": "UTIB",
|
|
2787
|
+
"url": "https://hdn-1.fynd.com/payment/NB_AXIS.png",
|
|
2788
|
+
"logo_url": {
|
|
2789
|
+
"small": "https://hdn-1.fynd.com/payment/NB_AXIS.png",
|
|
2790
|
+
"large": "https://hdn-1.fynd.com/payment/NB_AXIS.png"
|
|
2791
|
+
},
|
|
2792
|
+
"merchant_code": "NB_AXIS",
|
|
2793
|
+
"display_priority": 3,
|
|
2794
|
+
"display_name": "Axis Bank"
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"aggregator_name": "Razorpay",
|
|
2798
|
+
"name": "State Bank of India",
|
|
2799
|
+
"code": "SBIN",
|
|
2800
|
+
"bank_name": "State Bank of India",
|
|
2801
|
+
"bank_code": "SBIN",
|
|
2802
|
+
"url": "https://hdn-1.fynd.com/payment/NB_SBI.png",
|
|
2803
|
+
"logo_url": {
|
|
2804
|
+
"small": "https://hdn-1.fynd.com/payment/NB_SBI.png",
|
|
2805
|
+
"large": "https://hdn-1.fynd.com/payment/NB_SBI.png"
|
|
2806
|
+
},
|
|
2807
|
+
"merchant_code": "NB_SBI",
|
|
2808
|
+
"display_priority": 4,
|
|
2809
|
+
"display_name": "State Bank of India"
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
"aggregator_name": "Razorpay",
|
|
2813
|
+
"name": "Kotak Mahindra Bank",
|
|
2814
|
+
"code": "KKBK",
|
|
2815
|
+
"bank_name": "Kotak Mahindra Bank",
|
|
2816
|
+
"bank_code": "KKBK",
|
|
2817
|
+
"url": "https://hdn-1.fynd.com/payment/NB_KOTAK.png",
|
|
2818
|
+
"logo_url": {
|
|
2819
|
+
"small": "https://hdn-1.fynd.com/payment/NB_KOTAK.png",
|
|
2820
|
+
"large": "https://hdn-1.fynd.com/payment/NB_KOTAK.png"
|
|
2821
|
+
},
|
|
2822
|
+
"merchant_code": "NB_KOTAK",
|
|
2823
|
+
"display_priority": 5,
|
|
2824
|
+
"display_name": "Kotak Mahindra Bank"
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
"aggregator_name": "Razorpay",
|
|
2828
|
+
"name": "Indusind Bank",
|
|
2829
|
+
"code": "INDB",
|
|
2830
|
+
"bank_name": "Indusind Bank",
|
|
2831
|
+
"bank_code": "INDB",
|
|
2832
|
+
"url": "https://hdn-1.fynd.com/payment/NB_INDUS.png",
|
|
2833
|
+
"logo_url": {
|
|
2834
|
+
"small": "https://hdn-1.fynd.com/payment/NB_INDUS.png",
|
|
2835
|
+
"large": "https://hdn-1.fynd.com/payment/NB_INDUS.png"
|
|
2836
|
+
},
|
|
2837
|
+
"merchant_code": "INDB",
|
|
2838
|
+
"display_priority": 6,
|
|
2839
|
+
"display_name": "Indusind Bank"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"aggregator_name": "Razorpay",
|
|
2843
|
+
"name": "City Union Bank",
|
|
2844
|
+
"code": "CIUB",
|
|
2845
|
+
"bank_name": "City Union Bank",
|
|
2846
|
+
"bank_code": "CIUB",
|
|
2847
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2848
|
+
"logo_url": {
|
|
2849
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2850
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
2851
|
+
},
|
|
2852
|
+
"merchant_code": "NB_CUB",
|
|
2853
|
+
"display_priority": 9,
|
|
2854
|
+
"display_name": "City Union Bank"
|
|
2855
|
+
},
|
|
2856
|
+
{
|
|
2857
|
+
"aggregator_name": "Razorpay",
|
|
2858
|
+
"name": "Catholic Syrian Bank",
|
|
2859
|
+
"code": "CSBK",
|
|
2860
|
+
"bank_name": "Catholic Syrian Bank",
|
|
2861
|
+
"bank_code": "CSBK",
|
|
2862
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2863
|
+
"logo_url": {
|
|
2864
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2865
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
2866
|
+
},
|
|
2867
|
+
"merchant_code": "CSBK",
|
|
2868
|
+
"display_priority": 11,
|
|
2869
|
+
"display_name": "Catholic Syrian Bank"
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
"aggregator_name": "Razorpay",
|
|
2873
|
+
"name": "State Bank of Hyderabad",
|
|
2874
|
+
"code": "SBHY",
|
|
2875
|
+
"bank_name": "State Bank of Hyderabad",
|
|
2876
|
+
"bank_code": "SBHY",
|
|
2877
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2878
|
+
"logo_url": {
|
|
2879
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2880
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
2881
|
+
},
|
|
2882
|
+
"merchant_code": "NB_SBH",
|
|
2883
|
+
"display_priority": 12,
|
|
2884
|
+
"display_name": "State Bank of Hyderabad"
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
"aggregator_name": "Razorpay",
|
|
2888
|
+
"name": "Allahabad Bank",
|
|
2889
|
+
"code": "ALLA",
|
|
2890
|
+
"bank_name": "Allahabad Bank",
|
|
2891
|
+
"bank_code": "ALLA",
|
|
2892
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2893
|
+
"logo_url": {
|
|
2894
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2895
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
2896
|
+
},
|
|
2897
|
+
"merchant_code": "ALLA",
|
|
2898
|
+
"display_priority": 15,
|
|
2899
|
+
"display_name": "Allahabad Bank"
|
|
2900
|
+
},
|
|
2901
|
+
{
|
|
2902
|
+
"aggregator_name": "Razorpay",
|
|
2903
|
+
"name": "Syndicate Bank",
|
|
2904
|
+
"code": "SYNB",
|
|
2905
|
+
"bank_name": "Syndicate Bank",
|
|
2906
|
+
"bank_code": "SYNB",
|
|
2907
|
+
"url": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2908
|
+
"logo_url": {
|
|
2909
|
+
"small": "https://hdn-1.fynd.com/payment/NB_generic.png",
|
|
2910
|
+
"large": "https://hdn-1.fynd.com/payment/NB_generic.png"
|
|
2911
|
+
},
|
|
2912
|
+
"merchant_code": "SYNB",
|
|
2913
|
+
"display_priority": 17,
|
|
2914
|
+
"display_name": "Syndicate Bank"
|
|
2915
|
+
}
|
|
2916
|
+
]
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"name": "WL",
|
|
2920
|
+
"display_priority": 4,
|
|
2921
|
+
"payment_mode_id": 4,
|
|
2922
|
+
"display_name": "Wallet",
|
|
2923
|
+
"list": [
|
|
2924
|
+
{
|
|
2925
|
+
"wallet_name": "Paytm",
|
|
2926
|
+
"wallet_code": "paytm",
|
|
2927
|
+
"name": "Paytm",
|
|
2928
|
+
"display_name": "Paytm",
|
|
2929
|
+
"code": "paytm",
|
|
2930
|
+
"wallet_id": 4,
|
|
2931
|
+
"merchant_code": "PAYTM",
|
|
2932
|
+
"logo_url": {
|
|
2933
|
+
"small": "https://hdn-1.fynd.com/payment/paytm_logo_small.png",
|
|
2934
|
+
"large": "https://hdn-1.fynd.com/payment/paytm_logo_large.png"
|
|
2935
|
+
},
|
|
2936
|
+
"aggregator_name": "Juspay",
|
|
2937
|
+
"display_priority": 1
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
"wallet_name": "Amazon Pay",
|
|
2941
|
+
"wallet_code": "amazonpay",
|
|
2942
|
+
"name": "Amazon Pay",
|
|
2943
|
+
"display_name": "Amazon Pay",
|
|
2944
|
+
"code": "amazonpay",
|
|
2945
|
+
"wallet_id": 10,
|
|
2946
|
+
"merchant_code": "AMAZONPAY",
|
|
2947
|
+
"logo_url": {
|
|
2948
|
+
"small": "https://hdn-1.fynd.com/payment/amazon-pay.png",
|
|
2949
|
+
"large": "https://hdn-1.fynd.com/payment/amazon-pay.png"
|
|
2950
|
+
},
|
|
2951
|
+
"aggregator_name": "Razorpay",
|
|
2952
|
+
"display_priority": 9
|
|
2953
|
+
}
|
|
2954
|
+
]
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
"name": "UPI",
|
|
2958
|
+
"display_priority": 9,
|
|
2959
|
+
"payment_mode_id": 7,
|
|
2960
|
+
"display_name": "UPI",
|
|
2961
|
+
"list": [
|
|
2962
|
+
{
|
|
2963
|
+
"aggregator_name": "Razorpay",
|
|
2964
|
+
"name": "UPI",
|
|
2965
|
+
"display_name": "BHIM UPI",
|
|
2966
|
+
"code": "UPI",
|
|
2967
|
+
"logo_url": {
|
|
2968
|
+
"small": "https://hdn-1.fynd.com/payment/upi_100x78.png",
|
|
2969
|
+
"large": "https://hdn-1.fynd.com/payment/upi_150x100.png"
|
|
2970
|
+
},
|
|
2971
|
+
"merchant_code": "UPI",
|
|
2972
|
+
"timeout": 310,
|
|
2973
|
+
"retry_count": 0,
|
|
2974
|
+
"fynd_vpa": "shopsense.rzp@hdfcbank",
|
|
2975
|
+
"intent_flow": true,
|
|
2976
|
+
"intent_app": [
|
|
2977
|
+
{
|
|
2978
|
+
"code": "google_pay",
|
|
2979
|
+
"display_name": "Google Pay",
|
|
2980
|
+
"logos": {
|
|
2981
|
+
"small": "https://hdn-1.fynd.com/payment/upi-google-pay.png",
|
|
2982
|
+
"large": "https://hdn-1.fynd.com/payment/upi-google-pay.png"
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
],
|
|
2986
|
+
"intent_app_error_list": [
|
|
2987
|
+
"com.csam.icici.bank.imobile",
|
|
2988
|
+
"in.org.npci.upiapp",
|
|
2989
|
+
"com.whatsapp"
|
|
2990
|
+
]
|
|
2991
|
+
}
|
|
2992
|
+
]
|
|
2993
|
+
},
|
|
2994
|
+
{
|
|
2995
|
+
"name": "JUSPAYPG",
|
|
2996
|
+
"display_priority": 18,
|
|
2997
|
+
"payment_mode_id": 24,
|
|
2998
|
+
"display_name": "Pay Using Juspay",
|
|
2999
|
+
"list": []
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"name": "PL",
|
|
3003
|
+
"display_priority": 21,
|
|
3004
|
+
"display_name": "Pay Later",
|
|
3005
|
+
"list": [
|
|
3006
|
+
{
|
|
3007
|
+
"aggregator_name": "Simpl",
|
|
3008
|
+
"name": "Simpl",
|
|
3009
|
+
"display_name": "Simpl",
|
|
3010
|
+
"code": "simpl",
|
|
3011
|
+
"merchant_code": "SIMPL",
|
|
3012
|
+
"logo": "https://hdn-1.fynd.com/payment/simpl_logo.png",
|
|
3013
|
+
"logo_url": {
|
|
3014
|
+
"small": "https://hdn-1.fynd.com/payment/simpl_logo.png",
|
|
3015
|
+
"large": "https://hdn-1.fynd.com/payment/simpl_logo.png"
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
]
|
|
3019
|
+
}
|
|
3020
|
+
],
|
|
3021
|
+
"payment_flows": {
|
|
3022
|
+
"simpl": {
|
|
3023
|
+
"data": {
|
|
3024
|
+
"gateway": {
|
|
3025
|
+
"route": "simpl",
|
|
3026
|
+
"entity": "sdk",
|
|
3027
|
+
"is_customer_validation_required": true,
|
|
3028
|
+
"cust_validation_url": "https://api.fyndx0.de/gringotts/api/v1/validate-customer/?app_id=000000000000000000000001",
|
|
3029
|
+
"sdk": {
|
|
3030
|
+
"config": {
|
|
3031
|
+
"redirect": false,
|
|
3032
|
+
"callback_url": null,
|
|
3033
|
+
"action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001"
|
|
3034
|
+
},
|
|
3035
|
+
"data": {
|
|
3036
|
+
"user_phone": "9999632145",
|
|
3037
|
+
"user_email": "app@fynd.com"
|
|
3038
|
+
}
|
|
3039
|
+
},
|
|
3040
|
+
"return_url": null
|
|
3041
|
+
}
|
|
3042
|
+
},
|
|
3043
|
+
"api_link": "",
|
|
3044
|
+
"payment_flow": "sdk",
|
|
3045
|
+
"payment_flow_data": {
|
|
3046
|
+
"is_customer_validation_required": true,
|
|
3047
|
+
"cust_validation_url": "https://api.fyndx0.de/platform/payment/api/v1/validate-customer/?app_id=000000000000000000000001",
|
|
3048
|
+
"config": {
|
|
3049
|
+
"redirect": false,
|
|
3050
|
+
"final_payment_action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001"
|
|
3051
|
+
},
|
|
3052
|
+
"data": {
|
|
3053
|
+
"user_phone": null,
|
|
3054
|
+
"user_email": null
|
|
3055
|
+
},
|
|
3056
|
+
"return_url": null
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
"mswipe": {
|
|
3060
|
+
"data": {
|
|
3061
|
+
"gateway": {
|
|
3062
|
+
"sdk": {
|
|
3063
|
+
"config": {
|
|
3064
|
+
"redirect": false,
|
|
3065
|
+
"action_url": "url",
|
|
3066
|
+
"webhook_url": "url",
|
|
3067
|
+
"timeout": 60
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
},
|
|
3072
|
+
"api_link": "",
|
|
3073
|
+
"payment_flow": "sdk"
|
|
3074
|
+
},
|
|
3075
|
+
"juspay": {
|
|
3076
|
+
"data": {},
|
|
3077
|
+
"api_link": "https://sandbox.juspay.in/txns",
|
|
3078
|
+
"payment_flow": "api"
|
|
3079
|
+
},
|
|
3080
|
+
"razorpay": {
|
|
3081
|
+
"data": {},
|
|
3082
|
+
"api_link": "",
|
|
3083
|
+
"payment_flow": "sdk"
|
|
3084
|
+
},
|
|
3085
|
+
"bqr_razorpay": {
|
|
3086
|
+
"data": {},
|
|
3087
|
+
"api_link": "https://api.fyndx0.de/platform/payment/v2/external/payments/request/?app_id=000000000000000000000001",
|
|
3088
|
+
"payment_flow": "api"
|
|
3089
|
+
},
|
|
3090
|
+
"fynd": {
|
|
3091
|
+
"data": {},
|
|
3092
|
+
"api_link": "",
|
|
3093
|
+
"payment_flow": "api"
|
|
3094
|
+
},
|
|
3095
|
+
"jio": {
|
|
3096
|
+
"data": {},
|
|
3097
|
+
"api_link": "",
|
|
3098
|
+
"payment_flow": "api"
|
|
3099
|
+
},
|
|
3100
|
+
"stripe": {
|
|
3101
|
+
"data": {},
|
|
3102
|
+
"api_link": "",
|
|
3103
|
+
"payment_flow": "sdk"
|
|
3104
|
+
},
|
|
3105
|
+
"ccavenue": {
|
|
3106
|
+
"data": {},
|
|
3107
|
+
"api_link": "",
|
|
3108
|
+
"payment_flow": "sdk"
|
|
3109
|
+
},
|
|
3110
|
+
"payumoney": {
|
|
3111
|
+
"data": {},
|
|
3112
|
+
"api_link": "",
|
|
3113
|
+
"payment_flow": "sdk"
|
|
3114
|
+
},
|
|
3115
|
+
"rupifi": {
|
|
3116
|
+
"data": {},
|
|
3117
|
+
"api_link": "",
|
|
3118
|
+
"return_url": "",
|
|
3119
|
+
"payment_flow": "api",
|
|
3120
|
+
"cust_validation_url": "https://api.jiox0.de/gringotts/api/v1/validate-customer/",
|
|
3121
|
+
"payment_flow_data": {
|
|
3122
|
+
"is_customer_validation_required": true,
|
|
3123
|
+
"cust_validation_url": "https://api.fyndx0.de/platform/payment/api/v1/validate-customer/?app_id=000000000000000000000001",
|
|
3124
|
+
"config": {
|
|
3125
|
+
"redirect": false,
|
|
3126
|
+
"final_payment_action_url": "https://api.fyndx0.de/platform/payment/v2/external/payments/confirm/charge/?app_id=000000000000000000000001"
|
|
3127
|
+
},
|
|
3128
|
+
"data": {
|
|
3129
|
+
"user_phone": null,
|
|
3130
|
+
"user_email": null
|
|
3131
|
+
},
|
|
3132
|
+
"return_url": null
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
```
|
|
3139
|
+
</details>
|
|
3140
|
+
|
|
3141
|
+
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
|
|
3148
|
+
|
|
3149
|
+
---
|
|
3150
|
+
|
|
3151
|
+
|
|
3152
|
+
### pollingPaymentLink
|
|
3153
|
+
Used for polling if payment successful or not
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
```javascript
|
|
3158
|
+
// Promise
|
|
3159
|
+
const promise = payment.pollingPaymentLink({ paymentLinkId : value });
|
|
3160
|
+
|
|
3161
|
+
// Async/Await
|
|
3162
|
+
const data = await payment.pollingPaymentLink({ paymentLinkId : value });
|
|
3163
|
+
```
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
|
|
3169
|
+
| Argument | Type | Required | Description |
|
|
3170
|
+
| --------- | ----- | -------- | ----------- |
|
|
3171
|
+
| paymentLinkId | string | no | |
|
|
3172
|
+
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
Use this API to poll if payment through payment was successful or not
|
|
3176
|
+
|
|
3177
|
+
*Returned Response:*
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
[PollingPaymentLinkResponse](#PollingPaymentLinkResponse)
|
|
3183
|
+
|
|
3184
|
+
Success. Check the example shown below
|
|
3185
|
+
|
|
3186
|
+
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
<details>
|
|
3190
|
+
<summary><i> Example:</i></summary>
|
|
3191
|
+
|
|
3192
|
+
```json
|
|
3193
|
+
{
|
|
3194
|
+
"aggregator_name": "Fynd",
|
|
3195
|
+
"status": "complete",
|
|
3196
|
+
"redirect_url": "https://api.fyndx0.de/service/application/order/v1.0/orders/?success=true&order_id=FY62B3FF87016F24A4E6&aggregator_name=Fynd&cart_id=412&delivery_address_id=136&billing_address_id=136",
|
|
3197
|
+
"payment_link_id": "223d2a8df39a5dcdd8525498bee73199",
|
|
3198
|
+
"amount": 21900,
|
|
3199
|
+
"order_id": "FY62B3FF87016F24A4E6",
|
|
3200
|
+
"status_code": 200
|
|
3201
|
+
}
|
|
3202
|
+
```
|
|
3203
|
+
</details>
|
|
3204
|
+
|
|
3205
|
+
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
|
|
3209
|
+
|
|
3210
|
+
|
|
3211
|
+
|
|
3212
|
+
|
|
3213
|
+
---
|
|
3214
|
+
|
|
3215
|
+
|
|
3216
|
+
### createOrderHandlerPaymentLink
|
|
3217
|
+
Create Order user
|
|
3218
|
+
|
|
3219
|
+
|
|
3220
|
+
|
|
3221
|
+
```javascript
|
|
3222
|
+
// Promise
|
|
3223
|
+
const promise = payment.createOrderHandlerPaymentLink({ body : value });
|
|
3224
|
+
|
|
3225
|
+
// Async/Await
|
|
3226
|
+
const data = await payment.createOrderHandlerPaymentLink({ body : value });
|
|
3227
|
+
```
|
|
3228
|
+
|
|
3229
|
+
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
| Argument | Type | Required | Description |
|
|
3234
|
+
| --------- | ----- | -------- | ----------- |
|
|
3235
|
+
| body | [CreateOrderUserRequest](#CreateOrderUserRequest) | yes | Request body |
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
Use this API to create a order and payment on aggregator side
|
|
3239
|
+
|
|
3240
|
+
*Returned Response:*
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
|
|
3245
|
+
[CreateOrderUserResponse](#CreateOrderUserResponse)
|
|
3246
|
+
|
|
3247
|
+
Success. Check the example shown below
|
|
3248
|
+
|
|
3249
|
+
|
|
3250
|
+
|
|
3251
|
+
|
|
3252
|
+
<details>
|
|
3253
|
+
<summary><i> Example:</i></summary>
|
|
3254
|
+
|
|
3255
|
+
```json
|
|
3256
|
+
{
|
|
3257
|
+
"message": "",
|
|
3258
|
+
"success": true,
|
|
3259
|
+
"data": {
|
|
3260
|
+
"amount": 2190000,
|
|
3261
|
+
"order_id": "order_JeaZ5ryKO01rno",
|
|
3262
|
+
"email": "pratikpatel@gofynd.com",
|
|
3263
|
+
"contact": "8879805874",
|
|
3264
|
+
"currency": "INR",
|
|
3265
|
+
"customer_id": "cust_CZgcLVGsGP8BUQ",
|
|
3266
|
+
"callback_url": "https://api.fyndx0.com/service/webhooks/payment/v1.0/callback/link/?razorpay_order_id=order_JeaZ5ryKO01rno",
|
|
3267
|
+
"method": "upi",
|
|
3268
|
+
"aggregator": "Razorpay",
|
|
3269
|
+
"merchant_order_id": "FY629EDC0980B6A8C1EA"
|
|
3270
|
+
},
|
|
3271
|
+
"callback_url": "https://api.fyndx0.com/service/webhooks/payment/v1.0/callback/link/?razorpay_order_id=order_JeaZ5ryKO01rno",
|
|
3272
|
+
"payment_confirm_url": "https://api.fyndx0.com/service/webhooks/payment/v1.0/callback/link/?razorpay_order_id=order_JeaZ5ryKO01rno",
|
|
3273
|
+
"order_id": "FY629EDC0980B6A8C1EA"
|
|
3274
|
+
}
|
|
3275
|
+
```
|
|
3276
|
+
</details>
|
|
3277
|
+
|
|
3278
|
+
|
|
3279
|
+
|
|
3280
|
+
|
|
3281
|
+
|
|
3282
|
+
|
|
3283
|
+
|
|
3284
|
+
|
|
3285
|
+
|
|
3286
|
+
---
|
|
3287
|
+
|
|
3288
|
+
|
|
3289
|
+
### initialisePaymentPaymentLink
|
|
3290
|
+
Initialize a payment (server-to-server) for UPI and BharatQR
|
|
3291
|
+
|
|
3292
|
+
|
|
3293
|
+
|
|
3294
|
+
```javascript
|
|
3295
|
+
// Promise
|
|
3296
|
+
const promise = payment.initialisePaymentPaymentLink({ body : value });
|
|
3297
|
+
|
|
3298
|
+
// Async/Await
|
|
3299
|
+
const data = await payment.initialisePaymentPaymentLink({ body : value });
|
|
3300
|
+
```
|
|
3301
|
+
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
| Argument | Type | Required | Description |
|
|
3307
|
+
| --------- | ----- | -------- | ----------- |
|
|
3308
|
+
| body | [PaymentInitializationRequest](#PaymentInitializationRequest) | yes | Request body |
|
|
3309
|
+
|
|
3310
|
+
|
|
3311
|
+
Use this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen.
|
|
3312
|
+
|
|
3313
|
+
*Returned Response:*
|
|
3314
|
+
|
|
3315
|
+
|
|
3316
|
+
|
|
3317
|
+
|
|
3318
|
+
[PaymentInitializationResponse](#PaymentInitializationResponse)
|
|
3319
|
+
|
|
3320
|
+
Success. Check the example shown below or refer `PaymentInitializationResponse` for more details.
|
|
3321
|
+
|
|
3322
|
+
|
|
3323
|
+
|
|
3324
|
+
|
|
3325
|
+
<details>
|
|
3326
|
+
<summary><i> Example:</i></summary>
|
|
3327
|
+
|
|
3328
|
+
```json
|
|
3329
|
+
{
|
|
3330
|
+
"success": true,
|
|
3331
|
+
"aggregator": "UPI_Razorpay",
|
|
3332
|
+
"method": "upi",
|
|
3333
|
+
"status": "success",
|
|
3334
|
+
"merchant_order_id": "FY000120000101",
|
|
3335
|
+
"aggregator_order_id": "lorem_GX8W00p2ipsum",
|
|
3336
|
+
"polling_url": "https://api.fynd.com/service/application/payment/v0.1/payments/confirm/polling/?app_id=000000000000000000000001",
|
|
3337
|
+
"timeout": 240,
|
|
3338
|
+
"virtual_id": null,
|
|
3339
|
+
"razorpay_payment_id": "pay_dummy_001",
|
|
3340
|
+
"customer_id": "cust_dummy_001"
|
|
3341
|
+
}
|
|
3342
|
+
```
|
|
3343
|
+
</details>
|
|
3344
|
+
|
|
3345
|
+
|
|
3346
|
+
|
|
3347
|
+
|
|
3348
|
+
|
|
3349
|
+
|
|
3350
|
+
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
---
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
### checkAndUpdatePaymentStatusPaymentLink
|
|
3357
|
+
Performs continuous polling to check status of payment on the server
|
|
3358
|
+
|
|
3359
|
+
|
|
3360
|
+
|
|
3361
|
+
```javascript
|
|
3362
|
+
// Promise
|
|
3363
|
+
const promise = payment.checkAndUpdatePaymentStatusPaymentLink({ body : value });
|
|
3364
|
+
|
|
3365
|
+
// Async/Await
|
|
3366
|
+
const data = await payment.checkAndUpdatePaymentStatusPaymentLink({ body : value });
|
|
3367
|
+
```
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
|
|
3373
|
+
| Argument | Type | Required | Description |
|
|
3374
|
+
| --------- | ----- | -------- | ----------- |
|
|
3375
|
+
| body | [PaymentStatusUpdateRequest](#PaymentStatusUpdateRequest) | yes | Request body |
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
Use this API to perform continuous polling at intervals to check the status of payment until timeout.
|
|
3379
|
+
|
|
3380
|
+
*Returned Response:*
|
|
3381
|
+
|
|
3382
|
+
|
|
3383
|
+
|
|
3384
|
+
|
|
3385
|
+
[PaymentStatusUpdateResponse](#PaymentStatusUpdateResponse)
|
|
3386
|
+
|
|
3387
|
+
Success. Returns the status of payment. Check the example shown below or refer `PaymentStatusUpdateResponse` for more details.
|
|
3388
|
+
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
<details>
|
|
3393
|
+
<summary><i> Example:</i></summary>
|
|
3394
|
+
|
|
3395
|
+
```json
|
|
3396
|
+
{
|
|
3397
|
+
"aggregator_name": "UPI_Razorpay",
|
|
3398
|
+
"status": "success",
|
|
3399
|
+
"retry": false
|
|
3400
|
+
}
|
|
3401
|
+
```
|
|
3402
|
+
</details>
|
|
3403
|
+
|
|
3404
|
+
|
|
3405
|
+
|
|
3406
|
+
|
|
3407
|
+
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
|
|
3411
|
+
|
|
3412
|
+
---
|
|
3413
|
+
|
|
3414
|
+
|
|
3415
|
+
### customerCreditSummary
|
|
3416
|
+
API to fetch the customer credit summary
|
|
3417
|
+
|
|
3418
|
+
|
|
3419
|
+
|
|
3420
|
+
```javascript
|
|
3421
|
+
// Promise
|
|
3422
|
+
const promise = payment.customerCreditSummary({ aggregator : value });
|
|
3423
|
+
|
|
3424
|
+
// Async/Await
|
|
3425
|
+
const data = await payment.customerCreditSummary({ aggregator : value });
|
|
3426
|
+
```
|
|
3427
|
+
|
|
3428
|
+
|
|
3429
|
+
|
|
3430
|
+
|
|
3431
|
+
|
|
3432
|
+
| Argument | Type | Required | Description |
|
|
3433
|
+
| --------- | ----- | -------- | ----------- |
|
|
3434
|
+
| aggregator | string | no | |
|
|
3435
|
+
|
|
3436
|
+
|
|
3437
|
+
|
|
3438
|
+
Use this API to fetch the customer credit summary.
|
|
3439
|
+
|
|
3440
|
+
*Returned Response:*
|
|
3441
|
+
|
|
3442
|
+
|
|
3443
|
+
|
|
3444
|
+
|
|
3445
|
+
[CustomerCreditSummaryResponse](#CustomerCreditSummaryResponse)
|
|
3446
|
+
|
|
3447
|
+
Success. Returns the status of payment. Check the example shown below or refer `CustomerCreditSummaryResponseSchema` for more details.
|
|
3448
|
+
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
|
|
3452
|
+
<details>
|
|
3453
|
+
<summary><i> Example:</i></summary>
|
|
3454
|
+
|
|
3455
|
+
```json
|
|
3456
|
+
{
|
|
3457
|
+
"success": true,
|
|
3458
|
+
"data": {
|
|
3459
|
+
"merchant_customer_ref_id": "ABHI0002",
|
|
3460
|
+
"status": "Bill Due",
|
|
3461
|
+
"status_message": "Pay now to avoid interest charges",
|
|
3462
|
+
"balance": {
|
|
3463
|
+
"value": 87424,
|
|
3464
|
+
"formatted_value": "₹ 87,424.00",
|
|
3465
|
+
"currency": "INR"
|
|
3466
|
+
},
|
|
3467
|
+
"limit": {
|
|
3468
|
+
"value": 100000,
|
|
3469
|
+
"formatted_value": "₹ 100,000.00",
|
|
3470
|
+
"currency": "INR"
|
|
3471
|
+
},
|
|
3472
|
+
"due_amount": {
|
|
3473
|
+
"value": 12576,
|
|
3474
|
+
"formatted_value": "₹ 12,576.00",
|
|
3475
|
+
"currency": "INR"
|
|
3476
|
+
},
|
|
3477
|
+
"used_amount": {
|
|
3478
|
+
"value": 12576,
|
|
3479
|
+
"formatted_value": "₹ 12,576.00",
|
|
3480
|
+
"currency": "INR"
|
|
3481
|
+
},
|
|
3482
|
+
"due_date": "Oct 22 2021",
|
|
3483
|
+
"days_overdue": 123
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
```
|
|
3487
|
+
</details>
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
|
|
3491
|
+
|
|
3492
|
+
|
|
3493
|
+
|
|
3494
|
+
|
|
3495
|
+
|
|
3496
|
+
|
|
3497
|
+
---
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
### redirectToAggregator
|
|
3501
|
+
API to get the redirect url to redirect the user to aggregator's page
|
|
3502
|
+
|
|
3503
|
+
|
|
3504
|
+
|
|
3505
|
+
```javascript
|
|
3506
|
+
// Promise
|
|
3507
|
+
const promise = payment.redirectToAggregator({ source : value,
|
|
3508
|
+
aggregator : value });
|
|
3509
|
+
|
|
3510
|
+
// Async/Await
|
|
3511
|
+
const data = await payment.redirectToAggregator({ source : value,
|
|
3512
|
+
aggregator : value });
|
|
3513
|
+
```
|
|
3514
|
+
|
|
3515
|
+
|
|
3516
|
+
|
|
3517
|
+
|
|
3518
|
+
|
|
3519
|
+
| Argument | Type | Required | Description |
|
|
3520
|
+
| --------- | ----- | -------- | ----------- |
|
|
3521
|
+
| source | string | no | This is a String value that contains callback URL as value. |
|
|
3522
|
+
| aggregator | string | no | This is a String value that contains aggregator name as value. |
|
|
3523
|
+
|
|
3524
|
+
|
|
3525
|
+
|
|
3526
|
+
Use this API to get the redirect url to redirect the user to aggregator's page
|
|
3527
|
+
|
|
3528
|
+
*Returned Response:*
|
|
3529
|
+
|
|
3530
|
+
|
|
3531
|
+
|
|
3532
|
+
|
|
3533
|
+
[RedirectToAggregatorResponse](#RedirectToAggregatorResponse)
|
|
3534
|
+
|
|
3535
|
+
Success. Returns the status of payment. Check the example shown below or refer `RedirectToAggregatorResponseSchema` for more details.
|
|
3536
|
+
|
|
3537
|
+
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
<details>
|
|
3541
|
+
<summary><i> Example:</i></summary>
|
|
3542
|
+
|
|
3543
|
+
```json
|
|
3544
|
+
{
|
|
3545
|
+
"success": true,
|
|
3546
|
+
"data": {
|
|
3547
|
+
"redirect_url": "https://api-blackbox.epaylater.in//marketplace/customer/transactions/v2?encryptedPayload=dpPuB2+kZ6NyIrg0eWAwk7TbF14502RkIARgullt3PGWMh7Ix0Tc720b6idZzXNxzwaA3BOi2DHUALpqSfOagra+i0wRIVc36O62fwPscQE=checksum=6F06AEAE2A3CBBC81457FB2287C4DEFCFC16DEA8F33482D682134D64E43E34C2merchantId=Sample1234567890redirectConfirmUrl=http://localhost:8000/",
|
|
3548
|
+
"status": true
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
```
|
|
3552
|
+
</details>
|
|
3553
|
+
|
|
3554
|
+
|
|
3555
|
+
|
|
3556
|
+
|
|
3557
|
+
|
|
3558
|
+
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
---
|
|
3563
|
+
|
|
3564
|
+
|
|
3565
|
+
### checkCredit
|
|
3566
|
+
API to fetch the customer credit summary
|
|
3567
|
+
|
|
3568
|
+
|
|
3569
|
+
|
|
3570
|
+
```javascript
|
|
3571
|
+
// Promise
|
|
3572
|
+
const promise = payment.checkCredit({ aggregator : value });
|
|
3573
|
+
|
|
3574
|
+
// Async/Await
|
|
3575
|
+
const data = await payment.checkCredit({ aggregator : value });
|
|
3576
|
+
```
|
|
3577
|
+
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
| Argument | Type | Required | Description |
|
|
3583
|
+
| --------- | ----- | -------- | ----------- |
|
|
3584
|
+
| aggregator | string | no | |
|
|
3585
|
+
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
Use this API to fetch the customer credit summary.
|
|
3589
|
+
|
|
3590
|
+
*Returned Response:*
|
|
3591
|
+
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
|
|
3595
|
+
[CheckCreditResponse](#CheckCreditResponse)
|
|
3596
|
+
|
|
3597
|
+
Success. Returns the status of payment. Check the example shown below or refer `CheckCreditResponseSchema` for more details.
|
|
3598
|
+
|
|
3599
|
+
|
|
3600
|
+
|
|
3601
|
+
|
|
3602
|
+
<details>
|
|
3603
|
+
<summary><i> Example:</i></summary>
|
|
3604
|
+
|
|
3605
|
+
```json
|
|
3606
|
+
{
|
|
3607
|
+
"success": true,
|
|
3608
|
+
"data": {
|
|
3609
|
+
"is_registered": false,
|
|
3610
|
+
"status": true,
|
|
3611
|
+
"signup_url": "https://merchant.epaylater.in"
|
|
3612
|
+
}
|
|
3613
|
+
}
|
|
3614
|
+
```
|
|
3615
|
+
</details>
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
|
|
3621
|
+
|
|
3622
|
+
|
|
3623
|
+
|
|
3624
|
+
|
|
3625
|
+
---
|
|
3626
|
+
|
|
3627
|
+
|
|
3628
|
+
### customerOnboard
|
|
3629
|
+
API to fetch the customer credit summary
|
|
3630
|
+
|
|
3631
|
+
|
|
3632
|
+
|
|
3633
|
+
```javascript
|
|
3634
|
+
// Promise
|
|
3635
|
+
const promise = payment.customerOnboard({ body : value });
|
|
3636
|
+
|
|
3637
|
+
// Async/Await
|
|
3638
|
+
const data = await payment.customerOnboard({ body : value });
|
|
3639
|
+
```
|
|
3640
|
+
|
|
3641
|
+
|
|
3642
|
+
|
|
3643
|
+
|
|
3644
|
+
|
|
3645
|
+
| Argument | Type | Required | Description |
|
|
3646
|
+
| --------- | ----- | -------- | ----------- |
|
|
3647
|
+
| body | [CustomerOnboardingRequest](#CustomerOnboardingRequest) | yes | Request body |
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
Use this API to fetch the customer credit summary.
|
|
3651
|
+
|
|
3652
|
+
*Returned Response:*
|
|
3653
|
+
|
|
3654
|
+
|
|
3655
|
+
|
|
3656
|
+
|
|
3657
|
+
[CustomerOnboardingResponse](#CustomerOnboardingResponse)
|
|
3658
|
+
|
|
3659
|
+
Success. Returns the status of payment. Check the example shown below or refer `CustomerOnboardingResponseSchema` for more details.
|
|
3660
|
+
|
|
3661
|
+
|
|
3662
|
+
|
|
3663
|
+
|
|
3664
|
+
<details>
|
|
3665
|
+
<summary><i> Example:</i></summary>
|
|
3666
|
+
|
|
3667
|
+
```json
|
|
3668
|
+
{
|
|
3669
|
+
"success": true,
|
|
3670
|
+
"data": {
|
|
3671
|
+
"session": {
|
|
3672
|
+
"session_id": "109dae9a-9fe0-4277-979c-0bebb0136930"
|
|
3673
|
+
},
|
|
3674
|
+
"redirect_url": "https://retail-dev.epaylater.in?sessionId=109dae9a-9fe0-4277-979c-0bebb0136930",
|
|
3675
|
+
"status": true
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
```
|
|
3679
|
+
</details>
|
|
3680
|
+
|
|
3681
|
+
|
|
3682
|
+
|
|
3683
|
+
|
|
3684
|
+
|
|
3685
|
+
|
|
3686
|
+
|
|
3687
|
+
|
|
3688
|
+
|
|
3689
|
+
---
|
|
3690
|
+
|
|
3691
|
+
|
|
3692
|
+
|
|
3693
|
+
### Schemas
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
|
|
3697
|
+
#### [AggregatorConfigDetail](#AggregatorConfigDetail)
|
|
3698
|
+
|
|
3699
|
+
| Properties | Type | Nullable | Description |
|
|
3700
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3701
|
+
| api | string | no | Payment gateway api endpoint |
|
|
3702
|
+
| verify_api | string | no | Payment gateway verify payment api endpoint |
|
|
3703
|
+
| config_type | string | yes | Fynd or self payment gateway |
|
|
3704
|
+
| merchant_id | string | no | Unique merchant id |
|
|
3705
|
+
| merchant_key | string | no | Unique merchant key |
|
|
3706
|
+
| user_id | string | no | Registered User id |
|
|
3707
|
+
| secret | string | yes | Masked payment gateway api secret |
|
|
3708
|
+
| key | string | yes | Payment gateway api key |
|
|
3709
|
+
| sdk | boolean | no | SDK |
|
|
3710
|
+
| pin | string | no | Masked pin |
|
|
3711
|
+
|
|
3712
|
+
---
|
|
3713
|
+
|
|
3714
|
+
|
|
3715
|
+
|
|
3716
|
+
|
|
3717
|
+
#### [AggregatorsConfigDetailResponse](#AggregatorsConfigDetailResponse)
|
|
3718
|
+
|
|
3719
|
+
| Properties | Type | Nullable | Description |
|
|
3720
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3721
|
+
| stripe | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3722
|
+
| env | string | yes | Environment i.e Live or Test |
|
|
3723
|
+
| mswipe | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3724
|
+
| rupifi | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3725
|
+
| simpl | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3726
|
+
| ccavenue | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3727
|
+
| payumoney | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3728
|
+
| success | boolean | yes | |
|
|
3729
|
+
| juspay | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3730
|
+
| razorpay | [AggregatorConfigDetail](#AggregatorConfigDetail) | no | |
|
|
3731
|
+
|
|
3732
|
+
---
|
|
3733
|
+
|
|
3734
|
+
|
|
3735
|
+
|
|
3736
|
+
|
|
3737
|
+
#### [ErrorCodeAndDescription](#ErrorCodeAndDescription)
|
|
3738
|
+
|
|
3739
|
+
| Properties | Type | Nullable | Description |
|
|
3740
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3741
|
+
| code | string | yes | Error descrption code. |
|
|
3742
|
+
| description | string | yes | Error human understandable description. |
|
|
3743
|
+
|
|
3744
|
+
---
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
|
|
3748
|
+
|
|
3749
|
+
#### [HttpErrorCodeAndResponse](#HttpErrorCodeAndResponse)
|
|
3750
|
+
|
|
3751
|
+
| Properties | Type | Nullable | Description |
|
|
3752
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3753
|
+
| success | boolean | yes | Response is successful or not |
|
|
3754
|
+
| error | [ErrorCodeAndDescription](#ErrorCodeAndDescription) | yes | |
|
|
3755
|
+
|
|
3756
|
+
---
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
#### [AttachCardRequest](#AttachCardRequest)
|
|
3762
|
+
|
|
3763
|
+
| Properties | Type | Nullable | Description |
|
|
3764
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3765
|
+
| name_on_card | string | no | |
|
|
3766
|
+
| refresh | boolean | no | Refresh cache flag. |
|
|
3767
|
+
| nickname | string | no | |
|
|
3768
|
+
| card_id | string | yes | Card token of payment gateway. |
|
|
3769
|
+
|
|
3770
|
+
---
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
|
|
3774
|
+
|
|
3775
|
+
#### [AttachCardsResponse](#AttachCardsResponse)
|
|
3776
|
+
|
|
3777
|
+
| Properties | Type | Nullable | Description |
|
|
3778
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3779
|
+
| message | string | no | Human readable message. |
|
|
3780
|
+
| data | string | yes | List of cards of customer. |
|
|
3781
|
+
| success | boolean | yes | Response is successful or not. |
|
|
3782
|
+
|
|
3783
|
+
---
|
|
3784
|
+
|
|
3785
|
+
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
#### [CardPaymentGateway](#CardPaymentGateway)
|
|
3789
|
+
|
|
3790
|
+
| Properties | Type | Nullable | Description |
|
|
3791
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3792
|
+
| customer_id | string | no | Payment gateway customer id. |
|
|
3793
|
+
| api | string | no | Payment gateway CARD api endpoint |
|
|
3794
|
+
| aggregator | string | yes | Payment gateway name. |
|
|
3795
|
+
|
|
3796
|
+
---
|
|
3797
|
+
|
|
3798
|
+
|
|
3799
|
+
|
|
3800
|
+
|
|
3801
|
+
#### [ActiveCardPaymentGatewayResponse](#ActiveCardPaymentGatewayResponse)
|
|
3802
|
+
|
|
3803
|
+
| Properties | Type | Nullable | Description |
|
|
3804
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3805
|
+
| message | string | yes | Human readable message. |
|
|
3806
|
+
| cards | [CardPaymentGateway](#CardPaymentGateway) | yes | Card's payment gateway with customer id. |
|
|
3807
|
+
| success | boolean | yes | Response is successful or not. |
|
|
3808
|
+
|
|
3809
|
+
---
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
#### [Card](#Card)
|
|
3815
|
+
|
|
3816
|
+
| Properties | Type | Nullable | Description |
|
|
3817
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3818
|
+
| card_issuer | string | no | card_issuer |
|
|
3819
|
+
| exp_month | number | no | exp_month |
|
|
3820
|
+
| card_brand | string | no | card_brand |
|
|
3821
|
+
| nickname | string | no | nickname |
|
|
3822
|
+
| card_isin | string | no | card_isin |
|
|
3823
|
+
| expired | boolean | no | expired |
|
|
3824
|
+
| card_number | string | no | card_number |
|
|
3825
|
+
| card_token | string | no | card_token |
|
|
3826
|
+
| card_name | string | no | card_name |
|
|
3827
|
+
| card_fingerprint | string | no | card_fingerprint |
|
|
3828
|
+
| exp_year | number | no | exp_year |
|
|
3829
|
+
| card_type | string | no | card_type |
|
|
3830
|
+
| aggregator_name | string | yes | aggregator_name |
|
|
3831
|
+
| card_id | string | no | card_id |
|
|
3832
|
+
| compliant_with_tokenisation_guidelines | boolean | no | If card is tokenised or not |
|
|
3833
|
+
| card_brand_image | string | no | card_brand_image |
|
|
3834
|
+
| card_reference | string | no | card_reference |
|
|
3835
|
+
|
|
3836
|
+
---
|
|
3837
|
+
|
|
3838
|
+
|
|
3839
|
+
|
|
3840
|
+
|
|
3841
|
+
#### [ListCardsResponse](#ListCardsResponse)
|
|
3842
|
+
|
|
3843
|
+
| Properties | Type | Nullable | Description |
|
|
3844
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3845
|
+
| message | string | yes | Human readable message. |
|
|
3846
|
+
| data | [[Card](#Card)] | no | List of cards of customer. |
|
|
3847
|
+
| success | boolean | yes | Response is successful or not. |
|
|
3848
|
+
|
|
3849
|
+
---
|
|
3850
|
+
|
|
3851
|
+
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
#### [DeletehCardRequest](#DeletehCardRequest)
|
|
3855
|
+
|
|
3856
|
+
| Properties | Type | Nullable | Description |
|
|
3857
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3858
|
+
| card_id | string | yes | Card token of payment gateway. |
|
|
3859
|
+
|
|
3860
|
+
---
|
|
3861
|
+
|
|
3862
|
+
|
|
3863
|
+
|
|
3864
|
+
|
|
3865
|
+
#### [DeleteCardsResponse](#DeleteCardsResponse)
|
|
3866
|
+
|
|
3867
|
+
| Properties | Type | Nullable | Description |
|
|
3868
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3869
|
+
| message | string | no | Human readable message. |
|
|
3870
|
+
| success | boolean | yes | Response is successful or not. |
|
|
3871
|
+
|
|
3872
|
+
---
|
|
3873
|
+
|
|
3874
|
+
|
|
3875
|
+
|
|
3876
|
+
|
|
3877
|
+
#### [ValidateCustomerRequest](#ValidateCustomerRequest)
|
|
3878
|
+
|
|
3879
|
+
| Properties | Type | Nullable | Description |
|
|
3880
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3881
|
+
| payload | string | no | Hashed payload string. |
|
|
3882
|
+
| transaction_amount_in_paise | number | yes | Payable amount in paise |
|
|
3883
|
+
| aggregator | string | yes | Payment gateway name in camel case i.e Simpl, Rupifi |
|
|
3884
|
+
| billing_address | string | no | Extra meta fields. |
|
|
3885
|
+
| merchant_params | string | no | Extra meta fields. |
|
|
3886
|
+
| order_items | [string] | no | Extra meta fields. |
|
|
3887
|
+
| phone_number | string | yes | User mobile number without country code. |
|
|
3888
|
+
| delivery_address | string | no | Extra meta fields. |
|
|
3889
|
+
|
|
3890
|
+
---
|
|
3891
|
+
|
|
3892
|
+
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
#### [ValidateCustomerResponse](#ValidateCustomerResponse)
|
|
3896
|
+
|
|
3897
|
+
| Properties | Type | Nullable | Description |
|
|
3898
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3899
|
+
| message | string | yes | Error or success message. |
|
|
3900
|
+
| data | string | yes | Payment gateway response data |
|
|
3901
|
+
| success | boolean | yes | Response is successful or not |
|
|
3902
|
+
|
|
3903
|
+
---
|
|
3904
|
+
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
#### [ChargeCustomerRequest](#ChargeCustomerRequest)
|
|
3909
|
+
|
|
3910
|
+
| Properties | Type | Nullable | Description |
|
|
3911
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3912
|
+
| order_id | string | yes | Unique order id. |
|
|
3913
|
+
| amount | number | yes | Chargable amount of order. |
|
|
3914
|
+
| aggregator | string | yes | Payment gateway name i.e Simpl, Mswipe |
|
|
3915
|
+
| transaction_token | string | no | Transaction token of payment gateway. |
|
|
3916
|
+
| verified | boolean | no | Already Verified flag from payment gateway i.e Mswipe |
|
|
3917
|
+
|
|
3918
|
+
---
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
#### [ChargeCustomerResponse](#ChargeCustomerResponse)
|
|
3924
|
+
|
|
3925
|
+
| Properties | Type | Nullable | Description |
|
|
3926
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3927
|
+
| order_id | string | yes | Unique order id. |
|
|
3928
|
+
| cart_id | string | no | Cart id of customer |
|
|
3929
|
+
| aggregator | string | yes | Payment gateway name i.e Simpl, Mswipe |
|
|
3930
|
+
| message | string | yes | Human readable message. |
|
|
3931
|
+
| status | string | yes | Status of charged payment. |
|
|
3932
|
+
| success | boolean | yes | Response is successful or not. |
|
|
3933
|
+
| delivery_address_id | string | no | Delivery adddress id of customer |
|
|
3934
|
+
|
|
3935
|
+
---
|
|
3936
|
+
|
|
3937
|
+
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
#### [PaymentInitializationRequest](#PaymentInitializationRequest)
|
|
3941
|
+
|
|
3942
|
+
| Properties | Type | Nullable | Description |
|
|
3943
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3944
|
+
| order_id | string | yes | Payment gateway order id |
|
|
3945
|
+
| contact | string | yes | Customer valid mobile number |
|
|
3946
|
+
| customer_id | string | yes | Payment gateway customer id. |
|
|
3947
|
+
| amount | number | yes | Payable amount. |
|
|
3948
|
+
| method | string | yes | Payment method |
|
|
3949
|
+
| aggregator | string | yes | Payment gateway name |
|
|
3950
|
+
| currency | string | yes | Currency code. |
|
|
3951
|
+
| email | string | yes | Customer valid email |
|
|
3952
|
+
| razorpay_payment_id | string | no | Payment gateway payment id |
|
|
3953
|
+
| merchant_order_id | string | yes | Unique fynd order id |
|
|
3954
|
+
| timeout | number | no | Payment polling timeout if not recieved response |
|
|
3955
|
+
| vpa | string | no | Customer vpa address |
|
|
3956
|
+
|
|
3957
|
+
---
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
|
|
3962
|
+
#### [PaymentInitializationResponse](#PaymentInitializationResponse)
|
|
3963
|
+
|
|
3964
|
+
| Properties | Type | Nullable | Description |
|
|
3965
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3966
|
+
| customer_id | string | no | Payment gateway customer id. |
|
|
3967
|
+
| vpa | string | no | Customer vpa address |
|
|
3968
|
+
| amount | number | no | Payable amount. |
|
|
3969
|
+
| method | string | yes | Payment method |
|
|
3970
|
+
| aggregator | string | yes | Payment gateway name |
|
|
3971
|
+
| currency | string | no | Currency code. |
|
|
3972
|
+
| upi_poll_url | string | no | UPI poll url. |
|
|
3973
|
+
| aggregator_order_id | string | no | Payment order id |
|
|
3974
|
+
| status | string | no | Status of payment. |
|
|
3975
|
+
| bqr_image | string | no | Bharath qr image url. |
|
|
3976
|
+
| polling_url | string | yes | Polling url. |
|
|
3977
|
+
| merchant_order_id | string | yes | order id |
|
|
3978
|
+
| razorpay_payment_id | string | no | Payment id. |
|
|
3979
|
+
| timeout | number | no | timeout. |
|
|
3980
|
+
| success | boolean | yes | Response is successful or not. |
|
|
3981
|
+
| virtual_id | string | no | Payment virtual address. |
|
|
3982
|
+
|
|
3983
|
+
---
|
|
3984
|
+
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
#### [PaymentStatusUpdateRequest](#PaymentStatusUpdateRequest)
|
|
3989
|
+
|
|
3990
|
+
| Properties | Type | Nullable | Description |
|
|
3991
|
+
| ---------- | ---- | -------- | ----------- |
|
|
3992
|
+
| order_id | string | yes | Payment gateway order id |
|
|
3993
|
+
| contact | string | yes | Customer valid mobile number |
|
|
3994
|
+
| customer_id | string | yes | Payment gateway customer id. |
|
|
3995
|
+
| amount | number | yes | Payable amount. |
|
|
3996
|
+
| method | string | yes | Payment method |
|
|
3997
|
+
| aggregator | string | yes | Payment gateway name |
|
|
3998
|
+
| currency | string | yes | Currency code. |
|
|
3999
|
+
| status | string | yes | Status of payment. |
|
|
4000
|
+
| email | string | yes | Customer valid email |
|
|
4001
|
+
| merchant_order_id | string | yes | Unique fynd order id |
|
|
4002
|
+
| vpa | string | yes | Customer vpa address |
|
|
4003
|
+
|
|
4004
|
+
---
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
|
|
4009
|
+
#### [PaymentStatusUpdateResponse](#PaymentStatusUpdateResponse)
|
|
4010
|
+
|
|
4011
|
+
| Properties | Type | Nullable | Description |
|
|
4012
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4013
|
+
| retry | boolean | yes | Response is successful or not. |
|
|
4014
|
+
| redirect_url | string | no | Redirect url |
|
|
4015
|
+
| status | string | yes | Payment status |
|
|
4016
|
+
| aggregator_name | string | yes | Payment gateway name |
|
|
4017
|
+
| success | boolean | no | Response is successful or not |
|
|
4018
|
+
|
|
4019
|
+
---
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
#### [PaymentModeLogo](#PaymentModeLogo)
|
|
4025
|
+
|
|
4026
|
+
| Properties | Type | Nullable | Description |
|
|
4027
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4028
|
+
| small | string | yes | smalll |
|
|
4029
|
+
| large | string | yes | large |
|
|
4030
|
+
|
|
4031
|
+
---
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
#### [IntentApp](#IntentApp)
|
|
4037
|
+
|
|
4038
|
+
| Properties | Type | Nullable | Description |
|
|
4039
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4040
|
+
| code | string | no | code |
|
|
4041
|
+
| package_name | string | no | package_name |
|
|
4042
|
+
| logos | [PaymentModeLogo](#PaymentModeLogo) | no | logos |
|
|
4043
|
+
| display_name | string | no | display_name |
|
|
4044
|
+
|
|
4045
|
+
---
|
|
4046
|
+
|
|
4047
|
+
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
#### [IntentAppErrorList](#IntentAppErrorList)
|
|
4051
|
+
|
|
4052
|
+
| Properties | Type | Nullable | Description |
|
|
4053
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4054
|
+
| code | string | no | code |
|
|
4055
|
+
| package_name | string | no | package_name |
|
|
4056
|
+
|
|
4057
|
+
---
|
|
4058
|
+
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
|
|
4062
|
+
#### [PaymentModeList](#PaymentModeList)
|
|
4063
|
+
|
|
4064
|
+
| Properties | Type | Nullable | Description |
|
|
4065
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4066
|
+
| logo_url | [PaymentModeLogo](#PaymentModeLogo) | no | Logo |
|
|
4067
|
+
| card_number | string | no | card_number |
|
|
4068
|
+
| card_token | string | no | card_token |
|
|
4069
|
+
| display_priority | number | no | Dispaly Priority |
|
|
4070
|
+
| code | string | no | code |
|
|
4071
|
+
| intent_app | [[IntentApp](#IntentApp)] | no | intent_app |
|
|
4072
|
+
| expired | boolean | no | expired |
|
|
4073
|
+
| card_name | string | no | card_name |
|
|
4074
|
+
| cod_limit_per_order | number | no | Cod limit per order |
|
|
4075
|
+
| card_type | string | no | card_type |
|
|
4076
|
+
| card_issuer | string | no | card_issuer |
|
|
4077
|
+
| card_reference | string | no | card_reference |
|
|
4078
|
+
| card_isin | string | no | card_isin |
|
|
4079
|
+
| retry_count | number | no | retry_count |
|
|
4080
|
+
| fynd_vpa | string | no | fynd_vpa |
|
|
4081
|
+
| exp_year | number | no | exp_year |
|
|
4082
|
+
| merchant_code | string | no | merchant code |
|
|
4083
|
+
| aggregator_name | string | yes | aggregator_name |
|
|
4084
|
+
| intent_flow | boolean | no | intent_flow |
|
|
4085
|
+
| intent_app_error_dict_list | [[IntentAppErrorList](#IntentAppErrorList)] | no | intent_app_error_dict_list |
|
|
4086
|
+
| name | string | no | name |
|
|
4087
|
+
| cod_limit | number | no | cod limit |
|
|
4088
|
+
| card_brand_image | string | no | card_brand_image |
|
|
4089
|
+
| nickname | string | no | nickname |
|
|
4090
|
+
| exp_month | number | no | exp_month |
|
|
4091
|
+
| card_brand | string | no | card_brand |
|
|
4092
|
+
| card_fingerprint | string | no | card_fingerprint |
|
|
4093
|
+
| intent_app_error_list | [string] | no | intent_app_error_list |
|
|
4094
|
+
| display_name | string | no | display name |
|
|
4095
|
+
| card_id | string | no | card_id |
|
|
4096
|
+
| compliant_with_tokenisation_guidelines | boolean | no | If card is tokenised or not |
|
|
4097
|
+
| timeout | number | no | timeout |
|
|
4098
|
+
| remaining_limit | number | no | Remaining limit |
|
|
4099
|
+
|
|
4100
|
+
---
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
#### [RootPaymentMode](#RootPaymentMode)
|
|
4106
|
+
|
|
4107
|
+
| Properties | Type | Nullable | Description |
|
|
4108
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4109
|
+
| list | [[PaymentModeList](#PaymentModeList)] | no | Payment mode |
|
|
4110
|
+
| save_card | boolean | no | Card save or not |
|
|
4111
|
+
| display_name | string | yes | Payment mode display name |
|
|
4112
|
+
| is_pay_by_card_pl | boolean | no | This flag will be true in case of Payment link payment through card |
|
|
4113
|
+
| display_priority | number | yes | Dispaly Priority |
|
|
4114
|
+
| anonymous_enable | boolean | no | Annonymous card flag |
|
|
4115
|
+
| aggregator_name | string | no | Dispaly Priority |
|
|
4116
|
+
| add_card_enabled | boolean | no | Annonymous card flag |
|
|
4117
|
+
| name | string | yes | Payment mode name |
|
|
4118
|
+
|
|
4119
|
+
---
|
|
4120
|
+
|
|
4121
|
+
|
|
4122
|
+
|
|
4123
|
+
|
|
4124
|
+
#### [AggregatorRoute](#AggregatorRoute)
|
|
4125
|
+
|
|
4126
|
+
| Properties | Type | Nullable | Description |
|
|
4127
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4128
|
+
| data | string | no | Data |
|
|
4129
|
+
| payment_flow | string | no | payment_flow |
|
|
4130
|
+
| payment_flow_data | string | no | payment_flow_data |
|
|
4131
|
+
| api_link | string | no | api_link |
|
|
4132
|
+
|
|
4133
|
+
---
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
#### [PaymentFlow](#PaymentFlow)
|
|
4139
|
+
|
|
4140
|
+
| Properties | Type | Nullable | Description |
|
|
4141
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4142
|
+
| bqr_razorpay | [AggregatorRoute](#AggregatorRoute) | no | BQR_Razorpay |
|
|
4143
|
+
| stripe | [AggregatorRoute](#AggregatorRoute) | no | Stripe |
|
|
4144
|
+
| fynd | [AggregatorRoute](#AggregatorRoute) | no | Fynd |
|
|
4145
|
+
| epaylater | [AggregatorRoute](#AggregatorRoute) | no | Epaylater |
|
|
4146
|
+
| upi_razorpay | [AggregatorRoute](#AggregatorRoute) | no | UPI_Razorpay |
|
|
4147
|
+
| jiopay | [AggregatorRoute](#AggregatorRoute) | no | Jiopay |
|
|
4148
|
+
| mswipe | [AggregatorRoute](#AggregatorRoute) | no | mswipe |
|
|
4149
|
+
| simpl | [AggregatorRoute](#AggregatorRoute) | no | simpl |
|
|
4150
|
+
| ccavenue | [AggregatorRoute](#AggregatorRoute) | no | Ccavenue |
|
|
4151
|
+
| rupifi | [AggregatorRoute](#AggregatorRoute) | no | Rupifi |
|
|
4152
|
+
| payubiz | [AggregatorRoute](#AggregatorRoute) | no | Payubiz |
|
|
4153
|
+
| juspay | [AggregatorRoute](#AggregatorRoute) | no | Juspay |
|
|
4154
|
+
| razorpay | [AggregatorRoute](#AggregatorRoute) | no | Razorpay |
|
|
4155
|
+
|
|
4156
|
+
---
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
|
|
4161
|
+
#### [PaymentOptionAndFlow](#PaymentOptionAndFlow)
|
|
4162
|
+
|
|
4163
|
+
| Properties | Type | Nullable | Description |
|
|
4164
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4165
|
+
| payment_option | [[RootPaymentMode](#RootPaymentMode)] | yes | Payment options |
|
|
4166
|
+
| payment_flows | [PaymentFlow](#PaymentFlow) | yes | payment_flows |
|
|
4167
|
+
|
|
4168
|
+
---
|
|
4169
|
+
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
|
|
4173
|
+
#### [PaymentModeRouteResponse](#PaymentModeRouteResponse)
|
|
4174
|
+
|
|
4175
|
+
| Properties | Type | Nullable | Description |
|
|
4176
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4177
|
+
| payment_options | [PaymentOptionAndFlow](#PaymentOptionAndFlow) | yes | payment_options |
|
|
4178
|
+
| success | boolean | yes | Response is successful or not |
|
|
4179
|
+
|
|
4180
|
+
---
|
|
4181
|
+
|
|
4182
|
+
|
|
4183
|
+
|
|
4184
|
+
|
|
4185
|
+
#### [RupifiBannerData](#RupifiBannerData)
|
|
4186
|
+
|
|
4187
|
+
| Properties | Type | Nullable | Description |
|
|
4188
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4189
|
+
| status | string | no | Rupifi KYC status |
|
|
4190
|
+
| kyc_url | string | no | Rupifi KYC banner url. |
|
|
4191
|
+
|
|
4192
|
+
---
|
|
4193
|
+
|
|
4194
|
+
|
|
4195
|
+
|
|
4196
|
+
|
|
4197
|
+
#### [RupifiBannerResponse](#RupifiBannerResponse)
|
|
4198
|
+
|
|
4199
|
+
| Properties | Type | Nullable | Description |
|
|
4200
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4201
|
+
| data | [RupifiBannerData](#RupifiBannerData) | yes | Rupifi KYC banner details. |
|
|
4202
|
+
| success | boolean | yes | Successful or not. |
|
|
4203
|
+
|
|
4204
|
+
---
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
|
|
4208
|
+
|
|
4209
|
+
#### [EpaylaterBannerData](#EpaylaterBannerData)
|
|
4210
|
+
|
|
4211
|
+
| Properties | Type | Nullable | Description |
|
|
4212
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4213
|
+
| status | string | no | Epaylater KYC status |
|
|
4214
|
+
| display | boolean | yes | Need to display banner or not |
|
|
4215
|
+
| message | string | no | ePayLater message |
|
|
4216
|
+
|
|
4217
|
+
---
|
|
4218
|
+
|
|
4219
|
+
|
|
4220
|
+
|
|
4221
|
+
|
|
4222
|
+
#### [EpaylaterBannerResponse](#EpaylaterBannerResponse)
|
|
4223
|
+
|
|
4224
|
+
| Properties | Type | Nullable | Description |
|
|
4225
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4226
|
+
| data | [EpaylaterBannerData](#EpaylaterBannerData) | yes | Epaylater KYC banner details. |
|
|
4227
|
+
| success | boolean | yes | Successful or not. |
|
|
4228
|
+
|
|
4229
|
+
---
|
|
4230
|
+
|
|
4231
|
+
|
|
4232
|
+
|
|
4233
|
+
|
|
4234
|
+
#### [ResendOrCancelPaymentRequest](#ResendOrCancelPaymentRequest)
|
|
4235
|
+
|
|
4236
|
+
| Properties | Type | Nullable | Description |
|
|
4237
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4238
|
+
| order_id | string | yes | Unique order id |
|
|
4239
|
+
| request_type | string | yes | Either resend or cancel |
|
|
4240
|
+
|
|
4241
|
+
---
|
|
4242
|
+
|
|
4243
|
+
|
|
4244
|
+
|
|
4245
|
+
|
|
4246
|
+
#### [LinkStatus](#LinkStatus)
|
|
4247
|
+
|
|
4248
|
+
| Properties | Type | Nullable | Description |
|
|
4249
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4250
|
+
| message | string | yes | Message |
|
|
4251
|
+
| status | boolean | yes | Link action status |
|
|
4252
|
+
|
|
4253
|
+
---
|
|
4254
|
+
|
|
4255
|
+
|
|
4256
|
+
|
|
4257
|
+
|
|
4258
|
+
#### [ResendOrCancelPaymentResponse](#ResendOrCancelPaymentResponse)
|
|
4259
|
+
|
|
4260
|
+
| Properties | Type | Nullable | Description |
|
|
4261
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4262
|
+
| data | [LinkStatus](#LinkStatus) | yes | Data about link action status. |
|
|
4263
|
+
| success | boolean | yes | Response is successful or not. |
|
|
4264
|
+
|
|
4265
|
+
---
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
|
|
4269
|
+
|
|
4270
|
+
#### [TransferItemsDetails](#TransferItemsDetails)
|
|
4271
|
+
|
|
4272
|
+
| Properties | Type | Nullable | Description |
|
|
4273
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4274
|
+
| logo_small | string | yes | Beneficiary small Logo |
|
|
4275
|
+
| id | number | yes | |
|
|
4276
|
+
| logo_large | string | yes | Beneficiary large Logo |
|
|
4277
|
+
| display_name | string | no | Beneficiary Display Name |
|
|
4278
|
+
| name | string | yes | Beneficiary Name |
|
|
4279
|
+
|
|
4280
|
+
---
|
|
4281
|
+
|
|
4282
|
+
|
|
4283
|
+
|
|
4284
|
+
|
|
4285
|
+
#### [TransferModeDetails](#TransferModeDetails)
|
|
4286
|
+
|
|
4287
|
+
| Properties | Type | Nullable | Description |
|
|
4288
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4289
|
+
| display_name | string | yes | Beneficiary Mode Name |
|
|
4290
|
+
| items | [[TransferItemsDetails](#TransferItemsDetails)] | no | Beneficiary Mode Items |
|
|
4291
|
+
|
|
4292
|
+
---
|
|
4293
|
+
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
|
|
4297
|
+
#### [TransferModeResponse](#TransferModeResponse)
|
|
4298
|
+
|
|
4299
|
+
| Properties | Type | Nullable | Description |
|
|
4300
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4301
|
+
| data | [[TransferModeDetails](#TransferModeDetails)] | yes | Response Object |
|
|
4302
|
+
|
|
4303
|
+
---
|
|
4304
|
+
|
|
4305
|
+
|
|
4306
|
+
|
|
4307
|
+
|
|
4308
|
+
#### [UpdateRefundTransferModeRequest](#UpdateRefundTransferModeRequest)
|
|
4309
|
+
|
|
4310
|
+
| Properties | Type | Nullable | Description |
|
|
4311
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4312
|
+
| enable | boolean | yes | True for enabling the Transfer Mode |
|
|
4313
|
+
| transfer_mode | string | yes | Transfer Mode of the Beneficiary to be added |
|
|
4314
|
+
|
|
4315
|
+
---
|
|
4316
|
+
|
|
4317
|
+
|
|
4318
|
+
|
|
4319
|
+
|
|
4320
|
+
#### [UpdateRefundTransferModeResponse](#UpdateRefundTransferModeResponse)
|
|
4321
|
+
|
|
4322
|
+
| Properties | Type | Nullable | Description |
|
|
4323
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4324
|
+
| success | boolean | no | Response is successful or not |
|
|
4325
|
+
|
|
4326
|
+
---
|
|
4327
|
+
|
|
4328
|
+
|
|
4329
|
+
|
|
4330
|
+
|
|
4331
|
+
#### [OrderBeneficiaryDetails](#OrderBeneficiaryDetails)
|
|
4332
|
+
|
|
4333
|
+
| Properties | Type | Nullable | Description |
|
|
4334
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4335
|
+
| is_active | boolean | yes | Boolean Flag whether Beneficiary set or not |
|
|
4336
|
+
| account_no | string | yes | Account Number |
|
|
4337
|
+
| comment | string | no | Remarks |
|
|
4338
|
+
| delights_user_name | string | no | User Id Who filled the Beneficiary |
|
|
4339
|
+
| id | number | yes | |
|
|
4340
|
+
| created_on | string | yes | Creation Date of Beneficiary |
|
|
4341
|
+
| title | string | yes | Title Of Account |
|
|
4342
|
+
| subtitle | string | yes | SHort Title Of Account |
|
|
4343
|
+
| beneficiary_id | string | yes | Benenficiary Id |
|
|
4344
|
+
| bank_name | string | yes | Bank Name Of Account |
|
|
4345
|
+
| modified_on | string | yes | MOdification Date of Beneficiary |
|
|
4346
|
+
| ifsc_code | string | yes | Ifsc Code Of Account |
|
|
4347
|
+
| transfer_mode | string | yes | Transfer Mode Of Account |
|
|
4348
|
+
| address | string | yes | Address of User |
|
|
4349
|
+
| branch_name | string | no | Branch Name Of Account |
|
|
4350
|
+
| display_name | string | yes | Display Name Of Account |
|
|
4351
|
+
| email | string | yes | EMail of User |
|
|
4352
|
+
| account_holder | string | yes | Account Holder Name |
|
|
4353
|
+
| mobile | string | no | MObile no of User |
|
|
4354
|
+
|
|
4355
|
+
---
|
|
4356
|
+
|
|
4357
|
+
|
|
4358
|
+
|
|
4359
|
+
|
|
4360
|
+
#### [OrderBeneficiaryResponse](#OrderBeneficiaryResponse)
|
|
4361
|
+
|
|
4362
|
+
| Properties | Type | Nullable | Description |
|
|
4363
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4364
|
+
| show_beneficiary_details | boolean | no | Show beneficiary details or not. |
|
|
4365
|
+
| beneficiaries | [[OrderBeneficiaryDetails](#OrderBeneficiaryDetails)] | no | All Beneficiaries Of An Order |
|
|
4366
|
+
|
|
4367
|
+
---
|
|
4368
|
+
|
|
4369
|
+
|
|
4370
|
+
|
|
4371
|
+
|
|
4372
|
+
#### [NotFoundResourceError](#NotFoundResourceError)
|
|
4373
|
+
|
|
4374
|
+
| Properties | Type | Nullable | Description |
|
|
4375
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4376
|
+
| code | string | yes | Bad Request Data |
|
|
4377
|
+
| success | boolean | yes | Response is successful or not |
|
|
4378
|
+
| description | string | yes | Not Found |
|
|
4379
|
+
|
|
4380
|
+
---
|
|
4381
|
+
|
|
4382
|
+
|
|
4383
|
+
|
|
4384
|
+
|
|
4385
|
+
#### [IfscCodeResponse](#IfscCodeResponse)
|
|
4386
|
+
|
|
4387
|
+
| Properties | Type | Nullable | Description |
|
|
4388
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4389
|
+
| bank_name | string | yes | Bank Name Of Account |
|
|
4390
|
+
| branch_name | string | yes | Branch Name Of Account |
|
|
4391
|
+
| success | boolean | no | Response is successful or not |
|
|
4392
|
+
|
|
4393
|
+
---
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
#### [ErrorCodeDescription](#ErrorCodeDescription)
|
|
4399
|
+
|
|
4400
|
+
| Properties | Type | Nullable | Description |
|
|
4401
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4402
|
+
| code | string | yes | Error descrption code. |
|
|
4403
|
+
| success | boolean | yes | Response is successful or not |
|
|
4404
|
+
| description | string | yes | Error human understandable description. |
|
|
4405
|
+
|
|
4406
|
+
---
|
|
4407
|
+
|
|
4408
|
+
|
|
4409
|
+
|
|
4410
|
+
|
|
4411
|
+
#### [AddBeneficiaryViaOtpVerificationRequest](#AddBeneficiaryViaOtpVerificationRequest)
|
|
4412
|
+
|
|
4413
|
+
| Properties | Type | Nullable | Description |
|
|
4414
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4415
|
+
| request_id | string | yes | Request Id sent in |
|
|
4416
|
+
| hash_key | string | yes | Hash key of the beneficiary Id |
|
|
4417
|
+
| otp | string | yes | Otp sent to the given Mobile No |
|
|
4418
|
+
|
|
4419
|
+
---
|
|
4420
|
+
|
|
4421
|
+
|
|
4422
|
+
|
|
4423
|
+
|
|
4424
|
+
#### [AddBeneficiaryViaOtpVerificationResponse](#AddBeneficiaryViaOtpVerificationResponse)
|
|
4425
|
+
|
|
4426
|
+
| Properties | Type | Nullable | Description |
|
|
4427
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4428
|
+
| message | string | yes | Aggregator Response of beneficicary |
|
|
4429
|
+
| success | boolean | no | Response is successful or not |
|
|
4430
|
+
|
|
4431
|
+
---
|
|
4432
|
+
|
|
4433
|
+
|
|
4434
|
+
|
|
4435
|
+
|
|
4436
|
+
#### [WrongOtpError](#WrongOtpError)
|
|
4437
|
+
|
|
4438
|
+
| Properties | Type | Nullable | Description |
|
|
4439
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4440
|
+
| is_verified_flag | boolean | yes | Vefified flag. |
|
|
4441
|
+
| success | string | yes | Response is successful or not |
|
|
4442
|
+
| description | string | yes | Wrong OTP Code |
|
|
4443
|
+
|
|
4444
|
+
---
|
|
4445
|
+
|
|
4446
|
+
|
|
4447
|
+
|
|
4448
|
+
|
|
4449
|
+
#### [BeneficiaryModeDetails](#BeneficiaryModeDetails)
|
|
4450
|
+
|
|
4451
|
+
| Properties | Type | Nullable | Description |
|
|
4452
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4453
|
+
| comment | string | no | Remarks added by The user |
|
|
4454
|
+
| mobile | string | yes | Moblie Number of the User |
|
|
4455
|
+
| bank_name | string | yes | Bank Name of the Account |
|
|
4456
|
+
| ifsc_code | string | yes | Ifsc Code of the Account |
|
|
4457
|
+
| account_no | string | yes | Account NUmber of the Account Holder |
|
|
4458
|
+
| wallet | string | no | |
|
|
4459
|
+
| email | string | yes | Email of the Account Holder |
|
|
4460
|
+
| account_holder | string | yes | Name of the Account Holder |
|
|
4461
|
+
| address | string | no | Address of the User |
|
|
4462
|
+
| branch_name | string | yes | Branch Name of the Account |
|
|
4463
|
+
| vpa | string | no | |
|
|
4464
|
+
|
|
4465
|
+
---
|
|
4466
|
+
|
|
4467
|
+
|
|
4468
|
+
|
|
4469
|
+
|
|
4470
|
+
#### [AddBeneficiaryDetailsRequest](#AddBeneficiaryDetailsRequest)
|
|
4471
|
+
|
|
4472
|
+
| Properties | Type | Nullable | Description |
|
|
4473
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4474
|
+
| order_id | string | yes | Merchant Order Id |
|
|
4475
|
+
| transfer_mode | string | yes | Transfer Mode of the Beneficiary to be added |
|
|
4476
|
+
| delights | boolean | yes | True if beneficiary to be added by delights or False if by User |
|
|
4477
|
+
| details | [BeneficiaryModeDetails](#BeneficiaryModeDetails) | yes | Beneficiary bank details |
|
|
4478
|
+
| otp | string | no | |
|
|
4479
|
+
| request_id | string | no | |
|
|
4480
|
+
| shipment_id | string | yes | Shipment Id of the respective Merchant Order Id |
|
|
4481
|
+
|
|
4482
|
+
---
|
|
4483
|
+
|
|
4484
|
+
|
|
4485
|
+
|
|
4486
|
+
|
|
4487
|
+
#### [RefundAccountResponse](#RefundAccountResponse)
|
|
4488
|
+
|
|
4489
|
+
| Properties | Type | Nullable | Description |
|
|
4490
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4491
|
+
| message | string | yes | Response message |
|
|
4492
|
+
| is_verified_flag | boolean | no | |
|
|
4493
|
+
| data | string | no | Refund account data. |
|
|
4494
|
+
| success | boolean | yes | Success or failure flag. |
|
|
4495
|
+
|
|
4496
|
+
---
|
|
4497
|
+
|
|
4498
|
+
|
|
4499
|
+
|
|
4500
|
+
|
|
4501
|
+
#### [BankDetailsForOTP](#BankDetailsForOTP)
|
|
4502
|
+
|
|
4503
|
+
| Properties | Type | Nullable | Description |
|
|
4504
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4505
|
+
| bank_name | string | yes | |
|
|
4506
|
+
| ifsc_code | string | yes | |
|
|
4507
|
+
| account_no | string | yes | |
|
|
4508
|
+
| account_holder | string | yes | |
|
|
4509
|
+
| branch_name | string | yes | |
|
|
4510
|
+
|
|
4511
|
+
---
|
|
4512
|
+
|
|
4513
|
+
|
|
4514
|
+
|
|
4515
|
+
|
|
4516
|
+
#### [AddBeneficiaryDetailsOTPRequest](#AddBeneficiaryDetailsOTPRequest)
|
|
4517
|
+
|
|
4518
|
+
| Properties | Type | Nullable | Description |
|
|
4519
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4520
|
+
| order_id | string | yes | |
|
|
4521
|
+
| details | [BankDetailsForOTP](#BankDetailsForOTP) | yes | |
|
|
4522
|
+
|
|
4523
|
+
---
|
|
4524
|
+
|
|
4525
|
+
|
|
4526
|
+
|
|
4527
|
+
|
|
4528
|
+
#### [WalletOtpRequest](#WalletOtpRequest)
|
|
4529
|
+
|
|
4530
|
+
| Properties | Type | Nullable | Description |
|
|
4531
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4532
|
+
| mobile | string | yes | Wallet Moblie Number of the User |
|
|
4533
|
+
| country_code | string | yes | Country Code of the Mobile Number |
|
|
4534
|
+
|
|
4535
|
+
---
|
|
4536
|
+
|
|
4537
|
+
|
|
4538
|
+
|
|
4539
|
+
|
|
4540
|
+
#### [WalletOtpResponse](#WalletOtpResponse)
|
|
4541
|
+
|
|
4542
|
+
| Properties | Type | Nullable | Description |
|
|
4543
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4544
|
+
| is_verified_flag | string | yes | Boolean Flag whether OTP Validation is already done or not |
|
|
4545
|
+
| success | boolean | no | Response is successful or not |
|
|
4546
|
+
| request_id | string | yes | request id |
|
|
4547
|
+
|
|
4548
|
+
---
|
|
4549
|
+
|
|
4550
|
+
|
|
4551
|
+
|
|
4552
|
+
|
|
4553
|
+
#### [SetDefaultBeneficiaryRequest](#SetDefaultBeneficiaryRequest)
|
|
4554
|
+
|
|
4555
|
+
| Properties | Type | Nullable | Description |
|
|
4556
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4557
|
+
| order_id | string | yes | Merchant Order Id |
|
|
4558
|
+
| beneficiary_id | string | yes | Beneficiary Hash Id of the beneficiary added |
|
|
4559
|
+
|
|
4560
|
+
---
|
|
4561
|
+
|
|
4562
|
+
|
|
4563
|
+
|
|
4564
|
+
|
|
4565
|
+
#### [SetDefaultBeneficiaryResponse](#SetDefaultBeneficiaryResponse)
|
|
4566
|
+
|
|
4567
|
+
| Properties | Type | Nullable | Description |
|
|
4568
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4569
|
+
| is_beneficiary_set | boolean | yes | Boolean Flag whether Beneficiary set or not |
|
|
4570
|
+
| success | boolean | no | Response is successful or not |
|
|
4571
|
+
|
|
4572
|
+
---
|
|
4573
|
+
|
|
4574
|
+
|
|
4575
|
+
|
|
4576
|
+
|
|
4577
|
+
#### [GetPaymentLinkResponse](#GetPaymentLinkResponse)
|
|
4578
|
+
|
|
4579
|
+
| Properties | Type | Nullable | Description |
|
|
4580
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4581
|
+
| merchant_name | string | no | Merchant name |
|
|
4582
|
+
| amount | number | no | Total value of order |
|
|
4583
|
+
| payment_link_url | string | no | Url of payment link |
|
|
4584
|
+
| payment_link_current_status | string | no | Status of payment link |
|
|
4585
|
+
| external_order_id | string | no | Merchant order id |
|
|
4586
|
+
| message | string | yes | Message |
|
|
4587
|
+
| polling_timeout | number | no | Polling request timeout |
|
|
4588
|
+
| status_code | number | yes | HTTP status code |
|
|
4589
|
+
| success | boolean | yes | Successful or failure |
|
|
4590
|
+
|
|
4591
|
+
---
|
|
4592
|
+
|
|
4593
|
+
|
|
4594
|
+
|
|
4595
|
+
|
|
4596
|
+
#### [ErrorDescription](#ErrorDescription)
|
|
4597
|
+
|
|
4598
|
+
| Properties | Type | Nullable | Description |
|
|
4599
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4600
|
+
| invalid_id | boolean | no | Payment link id is valid or not |
|
|
4601
|
+
| amount | number | no | Amount paid |
|
|
4602
|
+
| expired | boolean | no | Payment link expired or not |
|
|
4603
|
+
| cancelled | boolean | no | Payment link is cancelled or not |
|
|
4604
|
+
| merchant_order_id | string | no | Order id |
|
|
4605
|
+
| msg | string | no | Message |
|
|
4606
|
+
| payment_transaction_id | string | no | Payment transaction id |
|
|
4607
|
+
| merchant_name | string | no | Name of merchant that created payment link |
|
|
4608
|
+
|
|
4609
|
+
---
|
|
4610
|
+
|
|
4611
|
+
|
|
4612
|
+
|
|
4613
|
+
|
|
4614
|
+
#### [ErrorResponse](#ErrorResponse)
|
|
4615
|
+
|
|
4616
|
+
| Properties | Type | Nullable | Description |
|
|
4617
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4618
|
+
| message | string | yes | Message |
|
|
4619
|
+
| status_code | number | yes | HTTP status code |
|
|
4620
|
+
| success | boolean | yes | Successful or failure |
|
|
4621
|
+
| error | [ErrorDescription](#ErrorDescription) | no | |
|
|
4622
|
+
|
|
4623
|
+
---
|
|
4624
|
+
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
|
|
4628
|
+
#### [CreatePaymentLinkMeta](#CreatePaymentLinkMeta)
|
|
4629
|
+
|
|
4630
|
+
| Properties | Type | Nullable | Description |
|
|
4631
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4632
|
+
| cart_id | string | yes | |
|
|
4633
|
+
| amount | string | yes | |
|
|
4634
|
+
| checkout_mode | string | yes | |
|
|
4635
|
+
| assign_card_id | string | no | |
|
|
4636
|
+
| pincode | string | yes | |
|
|
4637
|
+
|
|
4638
|
+
---
|
|
4639
|
+
|
|
4640
|
+
|
|
4641
|
+
|
|
4642
|
+
|
|
4643
|
+
#### [CreatePaymentLinkRequest](#CreatePaymentLinkRequest)
|
|
4644
|
+
|
|
4645
|
+
| Properties | Type | Nullable | Description |
|
|
4646
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4647
|
+
| amount | number | yes | Total value of order |
|
|
4648
|
+
| description | string | no | Merchant order id |
|
|
4649
|
+
| mobile_number | string | yes | Mobile number to which the payment link is to be sent |
|
|
4650
|
+
| external_order_id | string | yes | Merchant order id |
|
|
4651
|
+
| email | string | yes | Email to which the payment link is to be sent |
|
|
4652
|
+
| meta | [CreatePaymentLinkMeta](#CreatePaymentLinkMeta) | yes | Meta |
|
|
4653
|
+
|
|
4654
|
+
---
|
|
4655
|
+
|
|
4656
|
+
|
|
4657
|
+
|
|
4658
|
+
|
|
4659
|
+
#### [CreatePaymentLinkResponse](#CreatePaymentLinkResponse)
|
|
4660
|
+
|
|
4661
|
+
| Properties | Type | Nullable | Description |
|
|
4662
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4663
|
+
| payment_link_url | string | no | Url of payment link |
|
|
4664
|
+
| payment_link_id | string | no | Unique id of payment link |
|
|
4665
|
+
| message | string | yes | Message |
|
|
4666
|
+
| polling_timeout | number | no | Polling request timeout |
|
|
4667
|
+
| status_code | number | yes | HTTP status code |
|
|
4668
|
+
| success | boolean | yes | Successful or failure |
|
|
4669
|
+
|
|
4670
|
+
---
|
|
4671
|
+
|
|
4672
|
+
|
|
4673
|
+
|
|
4674
|
+
|
|
4675
|
+
#### [CancelOrResendPaymentLinkRequest](#CancelOrResendPaymentLinkRequest)
|
|
4676
|
+
|
|
4677
|
+
| Properties | Type | Nullable | Description |
|
|
4678
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4679
|
+
| payment_link_id | string | yes | Unique id of payment link |
|
|
4680
|
+
|
|
4681
|
+
---
|
|
4682
|
+
|
|
4683
|
+
|
|
4684
|
+
|
|
4685
|
+
|
|
4686
|
+
#### [ResendPaymentLinkResponse](#ResendPaymentLinkResponse)
|
|
4687
|
+
|
|
4688
|
+
| Properties | Type | Nullable | Description |
|
|
4689
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4690
|
+
| message | string | yes | Message |
|
|
4691
|
+
| status_code | number | yes | HTTP status code |
|
|
4692
|
+
| success | boolean | yes | Successful or failure |
|
|
4693
|
+
| polling_timeout | number | no | Polling request timeout |
|
|
4694
|
+
|
|
4695
|
+
---
|
|
4696
|
+
|
|
4697
|
+
|
|
4698
|
+
|
|
4699
|
+
|
|
4700
|
+
#### [CancelPaymentLinkResponse](#CancelPaymentLinkResponse)
|
|
4701
|
+
|
|
4702
|
+
| Properties | Type | Nullable | Description |
|
|
4703
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4704
|
+
| message | string | yes | Message |
|
|
4705
|
+
| status_code | number | yes | HTTP status code |
|
|
4706
|
+
| success | boolean | yes | Successful or failure |
|
|
4707
|
+
|
|
4708
|
+
---
|
|
4709
|
+
|
|
4710
|
+
|
|
4711
|
+
|
|
4712
|
+
|
|
4713
|
+
#### [PollingPaymentLinkResponse](#PollingPaymentLinkResponse)
|
|
4714
|
+
|
|
4715
|
+
| Properties | Type | Nullable | Description |
|
|
4716
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4717
|
+
| order_id | string | no | Fynd order id |
|
|
4718
|
+
| amount | number | no | Amount |
|
|
4719
|
+
| redirect_url | string | no | Url to redirect to |
|
|
4720
|
+
| payment_link_id | string | no | Payment link id |
|
|
4721
|
+
| status | string | no | Status of payment link |
|
|
4722
|
+
| message | string | no | Message |
|
|
4723
|
+
| aggregator_name | string | no | Aggregator name |
|
|
4724
|
+
| status_code | number | no | HTTP status code |
|
|
4725
|
+
| success | boolean | no | Successful or failure |
|
|
4726
|
+
| http_status | number | no | HTTP status code |
|
|
4727
|
+
|
|
4728
|
+
---
|
|
4729
|
+
|
|
4730
|
+
|
|
4731
|
+
|
|
4732
|
+
|
|
4733
|
+
#### [PaymentMethodsMeta](#PaymentMethodsMeta)
|
|
4734
|
+
|
|
4735
|
+
| Properties | Type | Nullable | Description |
|
|
4736
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4737
|
+
| payment_gateway | string | yes | Payment gateway name |
|
|
4738
|
+
| merchant_code | string | yes | Merchant code |
|
|
4739
|
+
| payment_identifier | string | yes | Payment identifier |
|
|
4740
|
+
|
|
4741
|
+
---
|
|
4742
|
+
|
|
4743
|
+
|
|
4744
|
+
|
|
4745
|
+
|
|
4746
|
+
#### [CreateOrderUserPaymentMethods](#CreateOrderUserPaymentMethods)
|
|
4747
|
+
|
|
4748
|
+
| Properties | Type | Nullable | Description |
|
|
4749
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4750
|
+
| mode | string | yes | Payment mode |
|
|
4751
|
+
| name | string | yes | Payment mode name |
|
|
4752
|
+
| meta | [PaymentMethodsMeta](#PaymentMethodsMeta) | yes | Meta |
|
|
4753
|
+
|
|
4754
|
+
---
|
|
4755
|
+
|
|
4756
|
+
|
|
4757
|
+
|
|
4758
|
+
|
|
4759
|
+
#### [CreateOrderUserRequest](#CreateOrderUserRequest)
|
|
4760
|
+
|
|
4761
|
+
| Properties | Type | Nullable | Description |
|
|
4762
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4763
|
+
| currency | string | yes | Currency |
|
|
4764
|
+
| payment_link_id | string | yes | Unique id of payment link |
|
|
4765
|
+
| failure_callback_url | string | yes | Failure page url |
|
|
4766
|
+
| payment_methods | [CreateOrderUserPaymentMethods](#CreateOrderUserPaymentMethods) | yes | Payment method details |
|
|
4767
|
+
| success_callback_url | string | yes | Success page url |
|
|
4768
|
+
| meta | string | no | Meta |
|
|
4769
|
+
|
|
4770
|
+
---
|
|
4771
|
+
|
|
4772
|
+
|
|
4773
|
+
|
|
4774
|
+
|
|
4775
|
+
#### [CreateOrderUserData](#CreateOrderUserData)
|
|
4776
|
+
|
|
4777
|
+
| Properties | Type | Nullable | Description |
|
|
4778
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4779
|
+
| order_id | string | no | Aggregator order id |
|
|
4780
|
+
| contact | string | no | Mobile number |
|
|
4781
|
+
| customer_id | string | no | Aggregator customer id |
|
|
4782
|
+
| amount | number | no | Amount |
|
|
4783
|
+
| method | string | no | Method |
|
|
4784
|
+
| aggregator | string | no | Aggregator name |
|
|
4785
|
+
| currency | string | no | Currency |
|
|
4786
|
+
| email | string | no | Email |
|
|
4787
|
+
| merchant_order_id | string | no | Merchant order id |
|
|
4788
|
+
| callback_url | string | no | Callback url for aggregator |
|
|
4789
|
+
|
|
4790
|
+
---
|
|
4791
|
+
|
|
4792
|
+
|
|
4793
|
+
|
|
4794
|
+
|
|
4795
|
+
#### [CreateOrderUserResponse](#CreateOrderUserResponse)
|
|
4796
|
+
|
|
4797
|
+
| Properties | Type | Nullable | Description |
|
|
4798
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4799
|
+
| order_id | string | no | Merchant order id |
|
|
4800
|
+
| data | [CreateOrderUserData](#CreateOrderUserData) | no | |
|
|
4801
|
+
| message | string | yes | Message |
|
|
4802
|
+
| status_code | number | yes | HTTP status code |
|
|
4803
|
+
| payment_confirm_url | string | no | Payment confirm url for aggregator |
|
|
4804
|
+
| callback_url | string | no | Callback url for aggregator |
|
|
4805
|
+
| success | boolean | yes | Successful or failure |
|
|
4806
|
+
|
|
4807
|
+
---
|
|
4808
|
+
|
|
4809
|
+
|
|
4810
|
+
|
|
4811
|
+
|
|
4812
|
+
#### [BalanceDetails](#BalanceDetails)
|
|
4813
|
+
|
|
4814
|
+
| Properties | Type | Nullable | Description |
|
|
4815
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4816
|
+
| formatted_value | string | yes | Formated Amount with currency symbol |
|
|
4817
|
+
| value | number | yes | Payment amount |
|
|
4818
|
+
| currency | string | yes | Currency Code |
|
|
4819
|
+
|
|
4820
|
+
---
|
|
4821
|
+
|
|
4822
|
+
|
|
4823
|
+
|
|
4824
|
+
|
|
4825
|
+
#### [CreditSummary](#CreditSummary)
|
|
4826
|
+
|
|
4827
|
+
| Properties | Type | Nullable | Description |
|
|
4828
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4829
|
+
| status | string | yes | Customer Credit status |
|
|
4830
|
+
| merchant_customer_ref_id | string | yes | Unique aggregator customer id |
|
|
4831
|
+
| status_message | string | yes | message to customer |
|
|
4832
|
+
| balance | [BalanceDetails](#BalanceDetails) | no | Credit summary of user. |
|
|
4833
|
+
|
|
4834
|
+
---
|
|
4835
|
+
|
|
4836
|
+
|
|
4837
|
+
|
|
4838
|
+
|
|
4839
|
+
#### [CustomerCreditSummaryResponse](#CustomerCreditSummaryResponse)
|
|
4840
|
+
|
|
4841
|
+
| Properties | Type | Nullable | Description |
|
|
4842
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4843
|
+
| data | [CreditSummary](#CreditSummary) | no | Credit summary of user. |
|
|
4844
|
+
| success | boolean | yes | Payment confirmation updated or not. |
|
|
4845
|
+
|
|
4846
|
+
---
|
|
4847
|
+
|
|
4848
|
+
|
|
4849
|
+
|
|
4850
|
+
|
|
4851
|
+
#### [RedirectURL](#RedirectURL)
|
|
4852
|
+
|
|
4853
|
+
| Properties | Type | Nullable | Description |
|
|
4854
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4855
|
+
| status | boolean | yes | Aggregator's Operation is successful or not. |
|
|
4856
|
+
| signup_url | string | yes | URL to which the user may redirect. |
|
|
4857
|
+
|
|
4858
|
+
---
|
|
4859
|
+
|
|
4860
|
+
|
|
4861
|
+
|
|
4862
|
+
|
|
4863
|
+
#### [RedirectToAggregatorResponse](#RedirectToAggregatorResponse)
|
|
4864
|
+
|
|
4865
|
+
| Properties | Type | Nullable | Description |
|
|
4866
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4867
|
+
| data | [RedirectURL](#RedirectURL) | yes | Redirect URL. |
|
|
4868
|
+
| success | boolean | yes | Status updated or not. |
|
|
4869
|
+
|
|
4870
|
+
---
|
|
4871
|
+
|
|
4872
|
+
|
|
4873
|
+
|
|
4874
|
+
|
|
4875
|
+
#### [CreditDetail](#CreditDetail)
|
|
4876
|
+
|
|
4877
|
+
| Properties | Type | Nullable | Description |
|
|
4878
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4879
|
+
| status | boolean | yes | Operation is successful or not. |
|
|
4880
|
+
| signup_url | string | yes | URL to which the user may redirect. |
|
|
4881
|
+
| is_registered | boolean | yes | User is registered with aggregator or not. |
|
|
4882
|
+
|
|
4883
|
+
---
|
|
4884
|
+
|
|
4885
|
+
|
|
4886
|
+
|
|
4887
|
+
|
|
4888
|
+
#### [CheckCreditResponse](#CheckCreditResponse)
|
|
4889
|
+
|
|
4890
|
+
| Properties | Type | Nullable | Description |
|
|
4891
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4892
|
+
| data | [CreditDetail](#CreditDetail) | yes | Credit summary of user. |
|
|
4893
|
+
| success | boolean | yes | Operation is successful or not. |
|
|
4894
|
+
|
|
4895
|
+
---
|
|
4896
|
+
|
|
4897
|
+
|
|
4898
|
+
|
|
4899
|
+
|
|
4900
|
+
#### [DeviceDetails](#DeviceDetails)
|
|
4901
|
+
|
|
4902
|
+
| Properties | Type | Nullable | Description |
|
|
4903
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4904
|
+
| identification_number | string | no | IP |
|
|
4905
|
+
| identifier_type | string | no | Static value = ip |
|
|
4906
|
+
| os_version | string | no | OS Version |
|
|
4907
|
+
| os | string | no | OS Name |
|
|
4908
|
+
| device_type | string | no | Device Type(E.g. Mobile) |
|
|
4909
|
+
| device_model | string | no | Device Model |
|
|
4910
|
+
| device_make | string | no | Device maker |
|
|
4911
|
+
|
|
4912
|
+
---
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
|
|
4917
|
+
#### [KYCAddress](#KYCAddress)
|
|
4918
|
+
|
|
4919
|
+
| Properties | Type | Nullable | Description |
|
|
4920
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4921
|
+
| addressline2 | string | no | Address Line 2 |
|
|
4922
|
+
| state | string | yes | State |
|
|
4923
|
+
| addressline1 | string | yes | Address Line 1 |
|
|
4924
|
+
| ownership_type | string | no | Address Owner Type |
|
|
4925
|
+
| land_mark | string | no | Land Mark |
|
|
4926
|
+
| city | string | yes | City |
|
|
4927
|
+
| pincode | string | yes | Pincode |
|
|
4928
|
+
|
|
4929
|
+
---
|
|
4930
|
+
|
|
4931
|
+
|
|
4932
|
+
|
|
4933
|
+
|
|
4934
|
+
#### [BusinessDetails](#BusinessDetails)
|
|
4935
|
+
|
|
4936
|
+
| Properties | Type | Nullable | Description |
|
|
4937
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4938
|
+
| shop_and_establishment | string | no | Shop Establishment |
|
|
4939
|
+
| vintage | string | no | Vintage |
|
|
4940
|
+
| business_ownership_type | string | no | business Ownershipp type(e.g Rented) |
|
|
4941
|
+
| business_type | string | no | Business Type |
|
|
4942
|
+
| entity_type | string | no | Busineess Entity Type |
|
|
4943
|
+
| gstin | string | no | GSTIN Number |
|
|
4944
|
+
| fda | string | no | Driver License |
|
|
4945
|
+
| pan | string | no | Pan Number |
|
|
4946
|
+
| fssai | string | no | FDA License Number |
|
|
4947
|
+
| name | string | no | Business Name |
|
|
4948
|
+
| address | [KYCAddress](#KYCAddress) | no | Address details |
|
|
4949
|
+
|
|
4950
|
+
---
|
|
4951
|
+
|
|
4952
|
+
|
|
4953
|
+
|
|
4954
|
+
|
|
4955
|
+
#### [UserPersonalInfoInDetails](#UserPersonalInfoInDetails)
|
|
4956
|
+
|
|
4957
|
+
| Properties | Type | Nullable | Description |
|
|
4958
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4959
|
+
| dob | string | yes | DOB |
|
|
4960
|
+
| email_verified | boolean | yes | Is Email Verified or not |
|
|
4961
|
+
| driving_license | string | no | Driver License |
|
|
4962
|
+
| fathers_name | string | no | Father's Name |
|
|
4963
|
+
| first_name | string | yes | First Name |
|
|
4964
|
+
| passport | string | no | Passport |
|
|
4965
|
+
| phone | string | yes | Email |
|
|
4966
|
+
| address_as_per_id | [KYCAddress](#KYCAddress) | yes | Address details |
|
|
4967
|
+
| mothers_name | string | no | Mother's Name |
|
|
4968
|
+
| gender | string | no | Gender |
|
|
4969
|
+
| email | string | no | Email |
|
|
4970
|
+
| last_name | string | no | Last Name |
|
|
4971
|
+
| voter_id | string | no | Voter ID Number |
|
|
4972
|
+
| pan | string | no | Pan Number |
|
|
4973
|
+
| mobile_verified | boolean | yes | Is Mobile Verified or not |
|
|
4974
|
+
| middle_name | string | no | middle Name |
|
|
4975
|
+
|
|
4976
|
+
---
|
|
4977
|
+
|
|
4978
|
+
|
|
4979
|
+
|
|
4980
|
+
|
|
4981
|
+
#### [MarketplaceInfo](#MarketplaceInfo)
|
|
4982
|
+
|
|
4983
|
+
| Properties | Type | Nullable | Description |
|
|
4984
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4985
|
+
| membership_id | string | yes | merchant id |
|
|
4986
|
+
| name | string | yes | Name of store |
|
|
4987
|
+
| date_of_joining | string | no | Date of joining |
|
|
4988
|
+
|
|
4989
|
+
---
|
|
4990
|
+
|
|
4991
|
+
|
|
4992
|
+
|
|
4993
|
+
|
|
4994
|
+
#### [CustomerOnboardingRequest](#CustomerOnboardingRequest)
|
|
4995
|
+
|
|
4996
|
+
| Properties | Type | Nullable | Description |
|
|
4997
|
+
| ---------- | ---- | -------- | ----------- |
|
|
4998
|
+
| device | [DeviceDetails](#DeviceDetails) | no | Device Details. |
|
|
4999
|
+
| aggregator | string | yes | Aggregator Name |
|
|
5000
|
+
| source | string | yes | callbackURL |
|
|
5001
|
+
| mcc | string | no | Mcc |
|
|
5002
|
+
| business_info | [BusinessDetails](#BusinessDetails) | no | Business summary. |
|
|
5003
|
+
| personal_info | [UserPersonalInfoInDetails](#UserPersonalInfoInDetails) | yes | Credit summary of user. |
|
|
5004
|
+
| marketplace_info | [MarketplaceInfo](#MarketplaceInfo) | no | Market Place info. |
|
|
5005
|
+
|
|
5006
|
+
---
|
|
5007
|
+
|
|
5008
|
+
|
|
5009
|
+
|
|
5010
|
+
|
|
5011
|
+
#### [OnboardSummary](#OnboardSummary)
|
|
5012
|
+
|
|
5013
|
+
| Properties | Type | Nullable | Description |
|
|
5014
|
+
| ---------- | ---- | -------- | ----------- |
|
|
5015
|
+
| status | boolean | yes | Operation Status |
|
|
5016
|
+
| session | string | yes | User Session |
|
|
5017
|
+
| redirect_url | string | yes | URL to which the user may redirect. |
|
|
5018
|
+
|
|
5019
|
+
---
|
|
5020
|
+
|
|
5021
|
+
|
|
5022
|
+
|
|
5023
|
+
|
|
5024
|
+
#### [CustomerOnboardingResponse](#CustomerOnboardingResponse)
|
|
5025
|
+
|
|
5026
|
+
| Properties | Type | Nullable | Description |
|
|
5027
|
+
| ---------- | ---- | -------- | ----------- |
|
|
5028
|
+
| data | [OnboardSummary](#OnboardSummary) | yes | Redirect URL. |
|
|
5029
|
+
| success | boolean | yes | Status updated or not. |
|
|
5030
|
+
|
|
5031
|
+
---
|
|
5032
|
+
|
|
5033
|
+
|
|
5034
|
+
|
|
5035
|
+
|