@phonepe-pg/pg-sdk-node 2.0.4

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.
Files changed (231) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +221 -0
  3. package/dist/src/Env.d.ts +4 -0
  4. package/dist/src/Env.js +23 -0
  5. package/dist/src/EnvConfig.d.ts +11 -0
  6. package/dist/src/EnvConfig.js +42 -0
  7. package/dist/src/common/BaseClient.d.ts +33 -0
  8. package/dist/src/common/BaseClient.js +103 -0
  9. package/dist/src/common/CommonUtils.d.ts +9 -0
  10. package/dist/src/common/CommonUtils.js +45 -0
  11. package/dist/src/common/configs/CredentialConfig.d.ts +25 -0
  12. package/dist/src/common/configs/CredentialConfig.js +64 -0
  13. package/dist/src/common/configs/index.d.ts +1 -0
  14. package/dist/src/common/configs/index.js +32 -0
  15. package/dist/src/common/constants/BaseUrl.d.ts +12 -0
  16. package/dist/src/common/constants/BaseUrl.js +30 -0
  17. package/dist/src/common/constants/Headers.d.ts +16 -0
  18. package/dist/src/common/constants/Headers.js +36 -0
  19. package/dist/src/common/events/Constants.d.ts +10 -0
  20. package/dist/src/common/events/Constants.js +29 -0
  21. package/dist/src/common/events/EventQueueHandler.d.ts +11 -0
  22. package/dist/src/common/events/EventQueueHandler.js +57 -0
  23. package/dist/src/common/events/builders/BaseEventBuilder.d.ts +17 -0
  24. package/dist/src/common/events/builders/BaseEventBuilder.js +46 -0
  25. package/dist/src/common/events/builders/EventBuillder.d.ts +16 -0
  26. package/dist/src/common/events/builders/EventBuillder.js +195 -0
  27. package/dist/src/common/events/builders/EventDataBuilder.d.ts +55 -0
  28. package/dist/src/common/events/builders/EventDataBuilder.js +115 -0
  29. package/dist/src/common/events/models/BaseEvent.d.ts +11 -0
  30. package/dist/src/common/events/models/BaseEvent.js +31 -0
  31. package/dist/src/common/events/models/BulkEvent.d.ts +18 -0
  32. package/dist/src/common/events/models/BulkEvent.js +56 -0
  33. package/dist/src/common/events/models/EventData.d.ts +32 -0
  34. package/dist/src/common/events/models/EventData.js +53 -0
  35. package/dist/src/common/events/models/enums/EventState.d.ts +5 -0
  36. package/dist/src/common/events/models/enums/EventState.js +24 -0
  37. package/dist/src/common/events/models/enums/EventType.d.ts +19 -0
  38. package/dist/src/common/events/models/enums/EventType.js +38 -0
  39. package/dist/src/common/events/models/enums/FlowType.d.ts +3 -0
  40. package/dist/src/common/events/models/enums/FlowType.js +22 -0
  41. package/dist/src/common/events/publisher/DefaultEventPublisher.d.ts +7 -0
  42. package/dist/src/common/events/publisher/DefaultEventPublisher.js +31 -0
  43. package/dist/src/common/events/publisher/EventPublisher.d.ts +6 -0
  44. package/dist/src/common/events/publisher/EventPublisher.js +21 -0
  45. package/dist/src/common/events/publisher/EventPublisherFactory.d.ts +9 -0
  46. package/dist/src/common/events/publisher/EventPublisherFactory.js +38 -0
  47. package/dist/src/common/events/publisher/QueuedEventPublisher.d.ts +21 -0
  48. package/dist/src/common/events/publisher/QueuedEventPublisher.js +124 -0
  49. package/dist/src/common/exception/Constants.d.ts +3 -0
  50. package/dist/src/common/exception/Constants.js +24 -0
  51. package/dist/src/common/exception/Exceptions.d.ts +45 -0
  52. package/dist/src/common/exception/Exceptions.js +102 -0
  53. package/dist/src/common/exception/index.d.ts +1 -0
  54. package/dist/src/common/exception/index.js +32 -0
  55. package/dist/src/common/http/HttpCommand.d.ts +15 -0
  56. package/dist/src/common/http/HttpCommand.js +93 -0
  57. package/dist/src/common/http/HttpMethodType.d.ts +4 -0
  58. package/dist/src/common/http/HttpMethodType.js +23 -0
  59. package/dist/src/common/http/PhonePeResponse.d.ts +12 -0
  60. package/dist/src/common/http/PhonePeResponse.js +21 -0
  61. package/dist/src/common/http/index.d.ts +2 -0
  62. package/dist/src/common/http/index.js +33 -0
  63. package/dist/src/common/index.d.ts +5 -0
  64. package/dist/src/common/index.js +36 -0
  65. package/dist/src/common/models/MetaInfo.d.ts +26 -0
  66. package/dist/src/common/models/MetaInfo.js +61 -0
  67. package/dist/src/common/models/PaymentFlow.d.ts +5 -0
  68. package/dist/src/common/models/PaymentFlow.js +24 -0
  69. package/dist/src/common/models/PaymentFlowType.d.ts +4 -0
  70. package/dist/src/common/models/PaymentFlowType.js +23 -0
  71. package/dist/src/common/models/PgV2InstrumentType.d.ts +9 -0
  72. package/dist/src/common/models/PgV2InstrumentType.js +28 -0
  73. package/dist/src/common/models/index.d.ts +6 -0
  74. package/dist/src/common/models/index.js +37 -0
  75. package/dist/src/common/models/request/AccountConstraint.d.ts +18 -0
  76. package/dist/src/common/models/request/AccountConstraint.js +49 -0
  77. package/dist/src/common/models/request/DeviceContext.d.ts +17 -0
  78. package/dist/src/common/models/request/DeviceContext.js +46 -0
  79. package/dist/src/common/models/request/InstrumentConstraint.d.ts +5 -0
  80. package/dist/src/common/models/request/InstrumentConstraint.js +24 -0
  81. package/dist/src/common/models/request/PaymentInstrumentType.d.ts +3 -0
  82. package/dist/src/common/models/request/PaymentInstrumentType.js +22 -0
  83. package/dist/src/common/models/request/RefundRequest.d.ts +20 -0
  84. package/dist/src/common/models/request/RefundRequest.js +51 -0
  85. package/dist/src/common/models/request/index.d.ts +5 -0
  86. package/dist/src/common/models/request/index.js +36 -0
  87. package/dist/src/common/models/request/instruments/BillingAddress.d.ts +29 -0
  88. package/dist/src/common/models/request/instruments/BillingAddress.js +60 -0
  89. package/dist/src/common/models/request/instruments/CardPayRequestBuilder.d.ts +39 -0
  90. package/dist/src/common/models/request/instruments/CardPayRequestBuilder.js +113 -0
  91. package/dist/src/common/models/request/instruments/CardPaymentV2Instrument.d.ts +22 -0
  92. package/dist/src/common/models/request/instruments/CardPaymentV2Instrument.js +56 -0
  93. package/dist/src/common/models/request/instruments/CollectPaymentDetails.d.ts +5 -0
  94. package/dist/src/common/models/request/instruments/CollectPaymentDetails.js +24 -0
  95. package/dist/src/common/models/request/instruments/CollectPaymentDetailsType.d.ts +4 -0
  96. package/dist/src/common/models/request/instruments/CollectPaymentDetailsType.js +23 -0
  97. package/dist/src/common/models/request/instruments/CollectPaymentV2Instrument.d.ts +19 -0
  98. package/dist/src/common/models/request/instruments/CollectPaymentV2Instrument.js +49 -0
  99. package/dist/src/common/models/request/instruments/Expiry.d.ts +14 -0
  100. package/dist/src/common/models/request/instruments/Expiry.js +43 -0
  101. package/dist/src/common/models/request/instruments/IntentPaymentV2Instrument.d.ts +12 -0
  102. package/dist/src/common/models/request/instruments/IntentPaymentV2Instrument.js +41 -0
  103. package/dist/src/common/models/request/instruments/NetBankingPayRequestBuilder.d.ts +25 -0
  104. package/dist/src/common/models/request/instruments/NetBankingPayRequestBuilder.js +71 -0
  105. package/dist/src/common/models/request/instruments/NetBankingPaymentV2Instrument.d.ts +15 -0
  106. package/dist/src/common/models/request/instruments/NetBankingPaymentV2Instrument.js +46 -0
  107. package/dist/src/common/models/request/instruments/NewCardDetails.d.ts +29 -0
  108. package/dist/src/common/models/request/instruments/NewCardDetails.js +61 -0
  109. package/dist/src/common/models/request/instruments/PaymentV2Instrument.d.ts +7 -0
  110. package/dist/src/common/models/request/instruments/PaymentV2Instrument.js +24 -0
  111. package/dist/src/common/models/request/instruments/PhoneNumberCollectPaymentDetails.d.ts +12 -0
  112. package/dist/src/common/models/request/instruments/PhoneNumberCollectPaymentDetails.js +41 -0
  113. package/dist/src/common/models/request/instruments/TokenDetails.d.ts +39 -0
  114. package/dist/src/common/models/request/instruments/TokenDetails.js +81 -0
  115. package/dist/src/common/models/request/instruments/TokenPayRequestBuilder.d.ts +41 -0
  116. package/dist/src/common/models/request/instruments/TokenPayRequestBuilder.js +118 -0
  117. package/dist/src/common/models/request/instruments/TokenPaymentV2Instrument.d.ts +19 -0
  118. package/dist/src/common/models/request/instruments/TokenPaymentV2Instrument.js +51 -0
  119. package/dist/src/common/models/request/instruments/UpiCollectPayViaPhoneNumberRequestBuilder.d.ts +25 -0
  120. package/dist/src/common/models/request/instruments/UpiCollectPayViaPhoneNumberRequestBuilder.js +73 -0
  121. package/dist/src/common/models/request/instruments/UpiCollectPayViaVpaRequestBuilder.d.ts +25 -0
  122. package/dist/src/common/models/request/instruments/UpiCollectPayViaVpaRequestBuilder.js +71 -0
  123. package/dist/src/common/models/request/instruments/UpiIntentPayRequestBuilder.d.ts +25 -0
  124. package/dist/src/common/models/request/instruments/UpiIntentPayRequestBuilder.js +71 -0
  125. package/dist/src/common/models/request/instruments/UpiQrPaymentV2Instrument.d.ts +9 -0
  126. package/dist/src/common/models/request/instruments/UpiQrPaymentV2Instrument.js +36 -0
  127. package/dist/src/common/models/request/instruments/UpiQrRequestBuilder.d.ts +19 -0
  128. package/dist/src/common/models/request/instruments/UpiQrRequestBuilder.js +55 -0
  129. package/dist/src/common/models/request/instruments/VpaCollectPaymentDetails.d.ts +12 -0
  130. package/dist/src/common/models/request/instruments/VpaCollectPaymentDetails.js +41 -0
  131. package/dist/src/common/models/request/instruments/index.d.ts +21 -0
  132. package/dist/src/common/models/request/instruments/index.js +52 -0
  133. package/dist/src/common/models/response/CallbackData.d.ts +17 -0
  134. package/dist/src/common/models/response/CallbackData.js +21 -0
  135. package/dist/src/common/models/response/CallbackResponse.d.ts +6 -0
  136. package/dist/src/common/models/response/CallbackResponse.js +21 -0
  137. package/dist/src/common/models/response/CallbackType.d.ts +11 -0
  138. package/dist/src/common/models/response/CallbackType.js +30 -0
  139. package/dist/src/common/models/response/InstrumentCombo.d.ts +15 -0
  140. package/dist/src/common/models/response/InstrumentCombo.js +21 -0
  141. package/dist/src/common/models/response/OrderStatusResponse.d.ts +16 -0
  142. package/dist/src/common/models/response/OrderStatusResponse.js +21 -0
  143. package/dist/src/common/models/response/PaymentDetail.d.ts +24 -0
  144. package/dist/src/common/models/response/PaymentDetail.js +21 -0
  145. package/dist/src/common/models/response/PaymentRefundDetail.d.ts +24 -0
  146. package/dist/src/common/models/response/PaymentRefundDetail.js +21 -0
  147. package/dist/src/common/models/response/RefundResponse.d.ts +5 -0
  148. package/dist/src/common/models/response/RefundResponse.js +21 -0
  149. package/dist/src/common/models/response/RefundStatusResponse.d.ts +9 -0
  150. package/dist/src/common/models/response/RefundStatusResponse.js +21 -0
  151. package/dist/src/common/models/response/index.d.ts +11 -0
  152. package/dist/src/common/models/response/index.js +42 -0
  153. package/dist/src/common/models/response/paymentinstruments/AccountInstrumentV2.d.ts +10 -0
  154. package/dist/src/common/models/response/paymentinstruments/AccountInstrumentV2.js +22 -0
  155. package/dist/src/common/models/response/paymentinstruments/CreditCardPaymentInstrumentV2.d.ts +7 -0
  156. package/dist/src/common/models/response/paymentinstruments/CreditCardPaymentInstrumentV2.js +22 -0
  157. package/dist/src/common/models/response/paymentinstruments/DebitCardPaymentInstrumentV2.d.ts +7 -0
  158. package/dist/src/common/models/response/paymentinstruments/DebitCardPaymentInstrumentV2.js +22 -0
  159. package/dist/src/common/models/response/paymentinstruments/EgvPaymentInstrumentV2.d.ts +5 -0
  160. package/dist/src/common/models/response/paymentinstruments/EgvPaymentInstrumentV2.js +22 -0
  161. package/dist/src/common/models/response/paymentinstruments/NetbankingPaymentInstrumentV2.d.ts +7 -0
  162. package/dist/src/common/models/response/paymentinstruments/NetbankingPaymentInstrumentV2.js +22 -0
  163. package/dist/src/common/models/response/paymentinstruments/PaymentInstrumentType.d.ts +8 -0
  164. package/dist/src/common/models/response/paymentinstruments/PaymentInstrumentType.js +27 -0
  165. package/dist/src/common/models/response/paymentinstruments/PaymentInstrumentV2.d.ts +4 -0
  166. package/dist/src/common/models/response/paymentinstruments/PaymentInstrumentV2.js +21 -0
  167. package/dist/src/common/models/response/paymentinstruments/WalletPaymentInstrumentV2.d.ts +4 -0
  168. package/dist/src/common/models/response/paymentinstruments/WalletPaymentInstrumentV2.js +22 -0
  169. package/dist/src/common/models/response/paymentinstruments/index.d.ts +8 -0
  170. package/dist/src/common/models/response/paymentinstruments/index.js +39 -0
  171. package/dist/src/common/models/response/rails/PaymentRail.d.ts +9 -0
  172. package/dist/src/common/models/response/rails/PaymentRail.js +28 -0
  173. package/dist/src/common/models/response/rails/PgPaymentRail.d.ts +6 -0
  174. package/dist/src/common/models/response/rails/PgPaymentRail.js +22 -0
  175. package/dist/src/common/models/response/rails/PpiEgvPaymentRail.d.ts +3 -0
  176. package/dist/src/common/models/response/rails/PpiEgvPaymentRail.js +22 -0
  177. package/dist/src/common/models/response/rails/PpiWalletPaymentRail.d.ts +3 -0
  178. package/dist/src/common/models/response/rails/PpiWalletPaymentRail.js +22 -0
  179. package/dist/src/common/models/response/rails/UpiPaymentRail.d.ts +6 -0
  180. package/dist/src/common/models/response/rails/UpiPaymentRail.js +22 -0
  181. package/dist/src/common/models/response/rails/index.d.ts +5 -0
  182. package/dist/src/common/models/response/rails/index.js +36 -0
  183. package/dist/src/common/tokenhandler/OAuthRequest.d.ts +6 -0
  184. package/dist/src/common/tokenhandler/OAuthRequest.js +17 -0
  185. package/dist/src/common/tokenhandler/OAuthResponse.d.ts +10 -0
  186. package/dist/src/common/tokenhandler/OAuthResponse.js +52 -0
  187. package/dist/src/common/tokenhandler/TokenConstants.d.ts +4 -0
  188. package/dist/src/common/tokenhandler/TokenConstants.js +23 -0
  189. package/dist/src/common/tokenhandler/TokenService.d.ts +22 -0
  190. package/dist/src/common/tokenhandler/TokenService.js +115 -0
  191. package/dist/src/common/tokenhandler/index.d.ts +2 -0
  192. package/dist/src/common/tokenhandler/index.js +33 -0
  193. package/dist/src/index.d.ts +4 -0
  194. package/dist/src/index.js +35 -0
  195. package/dist/src/payments/v2/CustomCheckoutClient.d.ts +86 -0
  196. package/dist/src/payments/v2/CustomCheckoutClient.js +229 -0
  197. package/dist/src/payments/v2/StandardCheckoutClient.d.ts +86 -0
  198. package/dist/src/payments/v2/StandardCheckoutClient.js +227 -0
  199. package/dist/src/payments/v2/customcheckout/Constants.d.ts +9 -0
  200. package/dist/src/payments/v2/customcheckout/Constants.js +28 -0
  201. package/dist/src/payments/v2/index.d.ts +3 -0
  202. package/dist/src/payments/v2/index.js +34 -0
  203. package/dist/src/payments/v2/models/index.d.ts +2 -0
  204. package/dist/src/payments/v2/models/index.js +33 -0
  205. package/dist/src/payments/v2/models/request/CreateSdkOrderRequest.d.ts +63 -0
  206. package/dist/src/payments/v2/models/request/CreateSdkOrderRequest.js +130 -0
  207. package/dist/src/payments/v2/models/request/CustomCheckoutPayRequest.d.ts +37 -0
  208. package/dist/src/payments/v2/models/request/CustomCheckoutPayRequest.js +79 -0
  209. package/dist/src/payments/v2/models/request/MerchantUrls.d.ts +4 -0
  210. package/dist/src/payments/v2/models/request/MerchantUrls.js +24 -0
  211. package/dist/src/payments/v2/models/request/PgCheckoutPaymentFlow.d.ts +18 -0
  212. package/dist/src/payments/v2/models/request/PgCheckoutPaymentFlow.js +48 -0
  213. package/dist/src/payments/v2/models/request/PgPaymentFlow.d.ts +20 -0
  214. package/dist/src/payments/v2/models/request/PgPaymentFlow.js +50 -0
  215. package/dist/src/payments/v2/models/request/PrefillUserLoginDetails.d.ts +16 -0
  216. package/dist/src/payments/v2/models/request/PrefillUserLoginDetails.js +38 -0
  217. package/dist/src/payments/v2/models/request/StandardCheckoutPayRequest.d.ts +40 -0
  218. package/dist/src/payments/v2/models/request/StandardCheckoutPayRequest.js +82 -0
  219. package/dist/src/payments/v2/models/request/index.d.ts +7 -0
  220. package/dist/src/payments/v2/models/request/index.js +38 -0
  221. package/dist/src/payments/v2/models/response/CreateSdkOrderResponse.d.ts +6 -0
  222. package/dist/src/payments/v2/models/response/CreateSdkOrderResponse.js +21 -0
  223. package/dist/src/payments/v2/models/response/CustomCheckoutPayResponse.d.ts +8 -0
  224. package/dist/src/payments/v2/models/response/CustomCheckoutPayResponse.js +21 -0
  225. package/dist/src/payments/v2/models/response/StandardCheckoutPayResponse.d.ts +6 -0
  226. package/dist/src/payments/v2/models/response/StandardCheckoutPayResponse.js +21 -0
  227. package/dist/src/payments/v2/models/response/index.d.ts +3 -0
  228. package/dist/src/payments/v2/models/response/index.js +34 -0
  229. package/dist/src/payments/v2/standardcheckout/Constants.d.ts +9 -0
  230. package/dist/src/payments/v2/standardcheckout/Constants.js +28 -0
  231. package/package.json +58 -0
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Original Author(s), PhonePe India Pvt. Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ __exportStar(require("./request"), exports);
33
+ __exportStar(require("./response"), exports);
@@ -0,0 +1,63 @@
1
+ import { InstrumentConstraint } from '../../../../common/models/request/InstrumentConstraint';
2
+ import { MetaInfo } from '../../../../common/models/MetaInfo';
3
+ import { PaymentFlow } from '../../../../common/models/PaymentFlow';
4
+ /**
5
+ * Creates a request to initiate a order for SDK Integration
6
+ * 1. For Standard Checkout -> CreateSdkOrderRequest.StandardCheckoutBuilder()
7
+ * 2. For Custom Checkout -> CreateSdkOrderRequest.CustomCheckoutBuilder()
8
+ */
9
+ export declare class CreateSdkOrderRequest {
10
+ merchantOrderId: string;
11
+ amount: number;
12
+ paymentFlow: PaymentFlow;
13
+ metaInfo?: MetaInfo;
14
+ constraints?: InstrumentConstraint[];
15
+ expireAfter?: number;
16
+ disablePaymentRetry?: boolean;
17
+ constructor(merchantOrderId: string, amount: number, paymentFlow: PaymentFlow, metaInfo?: MetaInfo, expireAfter?: number, constraints?: InstrumentConstraint[], disablePaymentRetry?: boolean);
18
+ static StandardCheckoutBuilder: () => StandardCheckoutBuilder;
19
+ static CustomCheckoutBuilder: () => CustomCheckoutBuilder;
20
+ }
21
+ declare class CustomCheckoutBuilder {
22
+ private _merchantOrderId;
23
+ private _amount;
24
+ private _metaInfo?;
25
+ private _message;
26
+ private _redirectUrl;
27
+ private _constraints?;
28
+ private _expireAfter?;
29
+ private _disablePaymentRetry?;
30
+ /**
31
+ * SETTERS
32
+ */
33
+ merchantOrderId: (merchantOrderId: string) => this;
34
+ amount: (amount: number) => this;
35
+ metaInfo: (metaInfo: MetaInfo) => this;
36
+ message: (message: string) => this;
37
+ redirectUrl: (redirectUrl: string) => this;
38
+ constraints: (constraints: InstrumentConstraint[]) => this;
39
+ expireAfter: (expireAfter: number) => this;
40
+ disablePaymentRetry: (disablePaymentRetry: boolean) => this;
41
+ build: () => CreateSdkOrderRequest;
42
+ }
43
+ declare class StandardCheckoutBuilder {
44
+ private _merchantOrderId;
45
+ private _amount;
46
+ private _metaInfo?;
47
+ private _message;
48
+ private _redirectUrl;
49
+ private _expireAfter?;
50
+ private _disablePaymentRetry?;
51
+ /**
52
+ * SETTERS
53
+ */
54
+ merchantOrderId: (merchantOrderId: string) => this;
55
+ amount: (amount: number) => this;
56
+ metaInfo: (metaInfo: MetaInfo) => this;
57
+ message: (message: string) => this;
58
+ redirectUrl: (redirectUrl: string) => this;
59
+ expireAfter: (expireAfter: number) => this;
60
+ disablePaymentRetry: (disablePaymentRetry: boolean) => this;
61
+ build: () => CreateSdkOrderRequest;
62
+ }
63
+ export {};
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Original Author(s), PhonePe India Pvt. Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CreateSdkOrderRequest = void 0;
19
+ const PgCheckoutPaymentFlow_1 = require("./PgCheckoutPaymentFlow");
20
+ /**
21
+ * Creates a request to initiate a order for SDK Integration
22
+ * 1. For Standard Checkout -> CreateSdkOrderRequest.StandardCheckoutBuilder()
23
+ * 2. For Custom Checkout -> CreateSdkOrderRequest.CustomCheckoutBuilder()
24
+ */
25
+ class CreateSdkOrderRequest {
26
+ constructor(merchantOrderId, amount, paymentFlow, metaInfo, expireAfter, constraints, disablePaymentRetry) {
27
+ this.merchantOrderId = merchantOrderId;
28
+ this.amount = amount;
29
+ this.metaInfo = metaInfo;
30
+ this.paymentFlow = paymentFlow;
31
+ this.constraints = constraints;
32
+ this.expireAfter = expireAfter;
33
+ this.disablePaymentRetry = disablePaymentRetry;
34
+ }
35
+ }
36
+ exports.CreateSdkOrderRequest = CreateSdkOrderRequest;
37
+ CreateSdkOrderRequest.StandardCheckoutBuilder = () => {
38
+ return new StandardCheckoutBuilder();
39
+ };
40
+ CreateSdkOrderRequest.CustomCheckoutBuilder = () => {
41
+ return new CustomCheckoutBuilder();
42
+ };
43
+ class CustomCheckoutBuilder {
44
+ constructor() {
45
+ /**
46
+ * SETTERS
47
+ */
48
+ this.merchantOrderId = (merchantOrderId) => {
49
+ this._merchantOrderId = merchantOrderId;
50
+ return this;
51
+ };
52
+ this.amount = (amount) => {
53
+ this._amount = amount;
54
+ return this;
55
+ };
56
+ this.metaInfo = (metaInfo) => {
57
+ this._metaInfo = metaInfo;
58
+ return this;
59
+ };
60
+ this.message = (message) => {
61
+ this._message = message;
62
+ return this;
63
+ };
64
+ this.redirectUrl = (redirectUrl) => {
65
+ this._redirectUrl = redirectUrl;
66
+ return this;
67
+ };
68
+ this.constraints = (constraints) => {
69
+ this._constraints = constraints;
70
+ return this;
71
+ };
72
+ this.expireAfter = (expireAfter) => {
73
+ this._expireAfter = expireAfter;
74
+ return this;
75
+ };
76
+ this.disablePaymentRetry = (disablePaymentRetry) => {
77
+ this._disablePaymentRetry = disablePaymentRetry;
78
+ return this;
79
+ };
80
+ this.build = () => {
81
+ const paymentFlow = PgCheckoutPaymentFlow_1.PgCheckoutPaymentFlow.builder()
82
+ .redirectUrl(this._redirectUrl)
83
+ .message(this._message)
84
+ .build();
85
+ return new CreateSdkOrderRequest(this._merchantOrderId, this._amount, paymentFlow, this._metaInfo, this._expireAfter, this._constraints, this._disablePaymentRetry);
86
+ };
87
+ }
88
+ }
89
+ class StandardCheckoutBuilder {
90
+ constructor() {
91
+ /**
92
+ * SETTERS
93
+ */
94
+ this.merchantOrderId = (merchantOrderId) => {
95
+ this._merchantOrderId = merchantOrderId;
96
+ return this;
97
+ };
98
+ this.amount = (amount) => {
99
+ this._amount = amount;
100
+ return this;
101
+ };
102
+ this.metaInfo = (metaInfo) => {
103
+ this._metaInfo = metaInfo;
104
+ return this;
105
+ };
106
+ this.message = (message) => {
107
+ this._message = message;
108
+ return this;
109
+ };
110
+ this.redirectUrl = (redirectUrl) => {
111
+ this._redirectUrl = redirectUrl;
112
+ return this;
113
+ };
114
+ this.expireAfter = (expireAfter) => {
115
+ this._expireAfter = expireAfter;
116
+ return this;
117
+ };
118
+ this.disablePaymentRetry = (disablePaymentRetry) => {
119
+ this._disablePaymentRetry = disablePaymentRetry;
120
+ return this;
121
+ };
122
+ this.build = () => {
123
+ const paymentFlow = PgCheckoutPaymentFlow_1.PgCheckoutPaymentFlow.builder()
124
+ .redirectUrl(this._redirectUrl)
125
+ .message(this._message)
126
+ .build();
127
+ return new CreateSdkOrderRequest(this._merchantOrderId, this._amount, paymentFlow, this._metaInfo, this._expireAfter, undefined, this._disablePaymentRetry);
128
+ };
129
+ }
130
+ }
@@ -0,0 +1,37 @@
1
+ import { UpiIntentPayRequestBuilder } from '../../../../common/models/request/instruments/UpiIntentPayRequestBuilder';
2
+ import { DeviceContext } from '../../../../common/models/request/DeviceContext';
3
+ import { InstrumentConstraint } from '../../../../common/models/request/InstrumentConstraint';
4
+ import { MetaInfo } from '../../../../common/models/MetaInfo';
5
+ import { PaymentFlow } from '../../../../common/models/PaymentFlow';
6
+ import { UpiCollectPayViaVpaRequestBuilder } from '../../../../common/models/request/instruments/UpiCollectPayViaVpaRequestBuilder';
7
+ import { UpiQrRequestBuilder } from '../../../../common/models/request/instruments/UpiQrRequestBuilder';
8
+ import { NetBankingPayRequestBuilder } from '../../../../common/models/request/instruments/NetBankingPayRequestBuilder';
9
+ import { TokenPayRequestBuilder } from '../../../../common/models/request/instruments/TokenPayRequestBuilder';
10
+ import { CardPayRequestBuilder } from '../../../../common/models/request/instruments/CardPayRequestBuilder';
11
+ /**
12
+ * Creates a request based on different builder for different instruments.
13
+ * 1. UpiIntentPayRequestBuilder -> Upi Intent
14
+ * 2. UpiCollectPayViaVpaRequestBuilder -> Upi Collect
15
+ * 3. UpiQrRequestBuilder -> Upi QR
16
+ * 4. NetBankingPayRequestBuilder -> Netbanking
17
+ * 5. TokenPayRequestBuilder -> Token
18
+ * 6. CardPayRequestBuilder -> Card
19
+ */
20
+ export declare class CustomCheckoutPayRequest {
21
+ merchantOrderId: string;
22
+ amount: number;
23
+ paymentFlow: PaymentFlow;
24
+ metaInfo?: MetaInfo;
25
+ constraints?: InstrumentConstraint[];
26
+ deviceContext?: DeviceContext;
27
+ expireAfter?: number;
28
+ deviceOS?: string;
29
+ constructor(merchantOrderId: string, amount: number, paymentFlow: PaymentFlow, expireAfter?: number, metaInfo?: MetaInfo, constrainsts?: InstrumentConstraint[], deviceContext?: DeviceContext, deviceOS?: string);
30
+ toJSON(): Omit<this, "toJSON" | "deviceOS">;
31
+ static UpiIntentPayRequestBuilder(): UpiIntentPayRequestBuilder;
32
+ static UpiCollectPayViaVpaRequestBuilder(): UpiCollectPayViaVpaRequestBuilder;
33
+ static UpiQrRequestBuilder(): UpiQrRequestBuilder;
34
+ static NetBankingPayRequestBuilder(): NetBankingPayRequestBuilder;
35
+ static TokenPayRequestBuilder(): TokenPayRequestBuilder;
36
+ static CardPayRequestBuilder(): CardPayRequestBuilder;
37
+ }
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Original Author(s), PhonePe India Pvt. Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CustomCheckoutPayRequest = void 0;
30
+ const UpiIntentPayRequestBuilder_1 = require("../../../../common/models/request/instruments/UpiIntentPayRequestBuilder");
31
+ const UpiCollectPayViaVpaRequestBuilder_1 = require("../../../../common/models/request/instruments/UpiCollectPayViaVpaRequestBuilder");
32
+ const UpiQrRequestBuilder_1 = require("../../../../common/models/request/instruments/UpiQrRequestBuilder");
33
+ const NetBankingPayRequestBuilder_1 = require("../../../../common/models/request/instruments/NetBankingPayRequestBuilder");
34
+ const TokenPayRequestBuilder_1 = require("../../../../common/models/request/instruments/TokenPayRequestBuilder");
35
+ const CardPayRequestBuilder_1 = require("../../../../common/models/request/instruments/CardPayRequestBuilder");
36
+ /**
37
+ * Creates a request based on different builder for different instruments.
38
+ * 1. UpiIntentPayRequestBuilder -> Upi Intent
39
+ * 2. UpiCollectPayViaVpaRequestBuilder -> Upi Collect
40
+ * 3. UpiQrRequestBuilder -> Upi QR
41
+ * 4. NetBankingPayRequestBuilder -> Netbanking
42
+ * 5. TokenPayRequestBuilder -> Token
43
+ * 6. CardPayRequestBuilder -> Card
44
+ */
45
+ class CustomCheckoutPayRequest {
46
+ constructor(merchantOrderId, amount, paymentFlow, expireAfter, metaInfo, constrainsts, deviceContext, deviceOS) {
47
+ this.merchantOrderId = merchantOrderId;
48
+ this.amount = amount;
49
+ this.paymentFlow = paymentFlow;
50
+ this.metaInfo = metaInfo;
51
+ this.constraints = constrainsts;
52
+ this.deviceContext = deviceContext;
53
+ this.expireAfter = expireAfter;
54
+ this.deviceOS = deviceOS;
55
+ }
56
+ toJSON() {
57
+ const _a = this, { deviceOS } = _a, rest = __rest(_a, ["deviceOS"]);
58
+ return rest;
59
+ }
60
+ static UpiIntentPayRequestBuilder() {
61
+ return new UpiIntentPayRequestBuilder_1.UpiIntentPayRequestBuilder();
62
+ }
63
+ static UpiCollectPayViaVpaRequestBuilder() {
64
+ return new UpiCollectPayViaVpaRequestBuilder_1.UpiCollectPayViaVpaRequestBuilder();
65
+ }
66
+ static UpiQrRequestBuilder() {
67
+ return new UpiQrRequestBuilder_1.UpiQrRequestBuilder();
68
+ }
69
+ static NetBankingPayRequestBuilder() {
70
+ return new NetBankingPayRequestBuilder_1.NetBankingPayRequestBuilder();
71
+ }
72
+ static TokenPayRequestBuilder() {
73
+ return new TokenPayRequestBuilder_1.TokenPayRequestBuilder();
74
+ }
75
+ static CardPayRequestBuilder() {
76
+ return new CardPayRequestBuilder_1.CardPayRequestBuilder();
77
+ }
78
+ }
79
+ exports.CustomCheckoutPayRequest = CustomCheckoutPayRequest;
@@ -0,0 +1,4 @@
1
+ export declare class MerchantUrls {
2
+ private redirectUrl?;
3
+ constructor(redirectUrl?: string);
4
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Original Author(s), PhonePe India Pvt. Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MerchantUrls = void 0;
19
+ class MerchantUrls {
20
+ constructor(redirectUrl) {
21
+ this.redirectUrl = redirectUrl;
22
+ }
23
+ }
24
+ exports.MerchantUrls = MerchantUrls;
@@ -0,0 +1,18 @@
1
+ import { PaymentFlow } from '../../../../common/models/PaymentFlow';
2
+ export declare class PgCheckoutPaymentFlow extends PaymentFlow {
3
+ private message?;
4
+ private merchantUrls?;
5
+ constructor(message?: string, redirectUrl?: string);
6
+ static builder(): PgCheckoutPaymentFlowBuilder;
7
+ }
8
+ declare class PgCheckoutPaymentFlowBuilder {
9
+ private _message?;
10
+ private _redirectUrl?;
11
+ /**
12
+ * SETTERS FOR PG_CHECKOUT PAYMENT FLOW
13
+ */
14
+ message(message?: string): this;
15
+ redirectUrl(redirectUrl?: string): this;
16
+ build(): PgCheckoutPaymentFlow;
17
+ }
18
+ export {};
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Original Author(s), PhonePe India Pvt. Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PgCheckoutPaymentFlow = void 0;
19
+ const MerchantUrls_1 = require("./MerchantUrls");
20
+ const PaymentFlow_1 = require("../../../../common/models/PaymentFlow");
21
+ const PaymentFlowType_1 = require("../../../../common/models/PaymentFlowType");
22
+ class PgCheckoutPaymentFlow extends PaymentFlow_1.PaymentFlow {
23
+ constructor(message, redirectUrl) {
24
+ super(PaymentFlowType_1.PaymentFlowType.PG_CHECKOUT);
25
+ this.message = message;
26
+ this.merchantUrls = new MerchantUrls_1.MerchantUrls(redirectUrl);
27
+ }
28
+ static builder() {
29
+ return new PgCheckoutPaymentFlowBuilder();
30
+ }
31
+ }
32
+ exports.PgCheckoutPaymentFlow = PgCheckoutPaymentFlow;
33
+ class PgCheckoutPaymentFlowBuilder {
34
+ /**
35
+ * SETTERS FOR PG_CHECKOUT PAYMENT FLOW
36
+ */
37
+ message(message) {
38
+ this._message = message;
39
+ return this;
40
+ }
41
+ redirectUrl(redirectUrl) {
42
+ this._redirectUrl = redirectUrl;
43
+ return this;
44
+ }
45
+ build() {
46
+ return new PgCheckoutPaymentFlow(this._message, this._redirectUrl);
47
+ }
48
+ }
@@ -0,0 +1,20 @@
1
+ import { MerchantUrls } from './MerchantUrls';
2
+ import { PaymentFlow } from '../../../../common/models/PaymentFlow';
3
+ import { PaymentV2Instrument } from '../../../../common/models/request/instruments/PaymentV2Instrument';
4
+ export declare class PgPaymentFlow extends PaymentFlow {
5
+ paymentMode: PaymentV2Instrument;
6
+ merchantUrls?: MerchantUrls;
7
+ constructor(paymentMode: PaymentV2Instrument, redirectUrl?: string);
8
+ static builder: () => PgPaymentFlowBuilder;
9
+ }
10
+ declare class PgPaymentFlowBuilder {
11
+ private _paymentMode;
12
+ private _redirectUrl?;
13
+ /**
14
+ * SETTERS FOR PG PAYMENT FLOW
15
+ */
16
+ paymentMode: (paymentMode: PaymentV2Instrument) => this;
17
+ redirectUrl: (redirectUrl?: string) => this;
18
+ build: () => PgPaymentFlow;
19
+ }
20
+ export {};
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Original Author(s), PhonePe India Pvt. Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PgPaymentFlow = void 0;
19
+ const MerchantUrls_1 = require("./MerchantUrls");
20
+ const PaymentFlow_1 = require("../../../../common/models/PaymentFlow");
21
+ const PaymentFlowType_1 = require("../../../../common/models/PaymentFlowType");
22
+ class PgPaymentFlow extends PaymentFlow_1.PaymentFlow {
23
+ constructor(paymentMode, redirectUrl) {
24
+ super(PaymentFlowType_1.PaymentFlowType.PG);
25
+ this.paymentMode = paymentMode;
26
+ this.merchantUrls = new MerchantUrls_1.MerchantUrls(redirectUrl);
27
+ }
28
+ }
29
+ exports.PgPaymentFlow = PgPaymentFlow;
30
+ PgPaymentFlow.builder = () => {
31
+ return new PgPaymentFlowBuilder();
32
+ };
33
+ class PgPaymentFlowBuilder {
34
+ constructor() {
35
+ /**
36
+ * SETTERS FOR PG PAYMENT FLOW
37
+ */
38
+ this.paymentMode = (paymentMode) => {
39
+ this._paymentMode = paymentMode;
40
+ return this;
41
+ };
42
+ this.redirectUrl = (redirectUrl) => {
43
+ this._redirectUrl = redirectUrl;
44
+ return this;
45
+ };
46
+ this.build = () => {
47
+ return new PgPaymentFlow(this._paymentMode, this._redirectUrl);
48
+ };
49
+ }
50
+ }
@@ -0,0 +1,16 @@
1
+ export declare class PrefillUserLoginDetails {
2
+ /**
3
+ * The user's mobile number to pre-fill on the PhonePe payment page.
4
+ * Expected format: 10-digit Indian mobile number (e.g. "9876543210"),
5
+ * or E.164 format with country code (e.g. "+919876543210").
6
+ */
7
+ phoneNumber?: string;
8
+ constructor(phoneNumber?: string);
9
+ static builder(): PrefillUserLoginDetailsBuilder;
10
+ }
11
+ declare class PrefillUserLoginDetailsBuilder {
12
+ private _phoneNumber?;
13
+ phoneNumber: (phoneNumber: string) => PrefillUserLoginDetailsBuilder;
14
+ build: () => PrefillUserLoginDetails;
15
+ }
16
+ export {};
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2025 Original Author(s), PhonePe India Pvt. Ltd.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.PrefillUserLoginDetails = void 0;
19
+ class PrefillUserLoginDetails {
20
+ constructor(phoneNumber) {
21
+ this.phoneNumber = phoneNumber;
22
+ }
23
+ static builder() {
24
+ return new PrefillUserLoginDetailsBuilder();
25
+ }
26
+ }
27
+ exports.PrefillUserLoginDetails = PrefillUserLoginDetails;
28
+ class PrefillUserLoginDetailsBuilder {
29
+ constructor() {
30
+ this.phoneNumber = (phoneNumber) => {
31
+ this._phoneNumber = phoneNumber;
32
+ return this;
33
+ };
34
+ this.build = () => {
35
+ return new PrefillUserLoginDetails(this._phoneNumber);
36
+ };
37
+ }
38
+ }
@@ -0,0 +1,40 @@
1
+ import { MetaInfo } from '../../../../common/models/MetaInfo';
2
+ import { PaymentFlow } from '../../../../common/models/PaymentFlow';
3
+ import { PrefillUserLoginDetails } from './PrefillUserLoginDetails';
4
+ /**
5
+ * Creates a request using the builder -> StandardCheckoutPayRequest.builder()
6
+ */
7
+ export declare class StandardCheckoutPayRequest {
8
+ merchantOrderId: string;
9
+ amount: number;
10
+ paymentFlow: PaymentFlow;
11
+ metaInfo?: MetaInfo;
12
+ expireAfter?: number;
13
+ disablePaymentRetry?: boolean;
14
+ prefillUserLoginDetails?: PrefillUserLoginDetails;
15
+ constructor(merchantOrderId: string, amount: number, metaInfo?: MetaInfo, message?: string, redirectUrl?: string, expireAfter?: number, disablePaymentRetry?: boolean, prefillUserLoginDetails?: PrefillUserLoginDetails);
16
+ static builder(): StandardCheckoutPayRequestBuilder;
17
+ }
18
+ declare class StandardCheckoutPayRequestBuilder {
19
+ private _merchantOrderId;
20
+ private _amount;
21
+ private _metaInfo?;
22
+ private _redirectUrl?;
23
+ private _message?;
24
+ private _expireAfter?;
25
+ private _disablePaymentRetry?;
26
+ private _prefillUserLoginDetails?;
27
+ /**
28
+ * Setters used for builder
29
+ */
30
+ merchantOrderId: (merchantOrderId: string) => StandardCheckoutPayRequestBuilder;
31
+ amount: (amount: number) => StandardCheckoutPayRequestBuilder;
32
+ metaInfo: (metaInfo: MetaInfo) => StandardCheckoutPayRequestBuilder;
33
+ redirectUrl: (redirectUrl: string) => StandardCheckoutPayRequestBuilder;
34
+ message: (message: string) => StandardCheckoutPayRequestBuilder;
35
+ expireAfter: (expireAfter: number) => StandardCheckoutPayRequestBuilder;
36
+ disablePaymentRetry: (disablePaymentRetry: boolean) => StandardCheckoutPayRequestBuilder;
37
+ prefillUserLoginDetails: (prefillUserLoginDetails: PrefillUserLoginDetails) => StandardCheckoutPayRequestBuilder;
38
+ build: () => StandardCheckoutPayRequest;
39
+ }
40
+ export {};