@spare-technologies/spare-link 0.1.0-beta.1 → 1.0.0
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/README.md +119 -63
- package/lib/commonjs/core/models/payment-return-params.js +245 -20
- package/lib/commonjs/core/models/payment-return-params.js.map +1 -1
- package/lib/commonjs/core/models/pending-session-record.js +2 -0
- package/lib/commonjs/core/models/pending-session-record.js.map +1 -0
- package/lib/commonjs/core/services/hosted-flow-controller.js +333 -0
- package/lib/commonjs/core/services/hosted-flow-controller.js.map +1 -0
- package/lib/commonjs/core/services/hosted-flow-state.js +96 -0
- package/lib/commonjs/core/services/hosted-flow-state.js.map +1 -0
- package/lib/commonjs/index.js +42 -164
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/hosted/bridge-message.js +107 -0
- package/lib/commonjs/internal/hosted/bridge-message.js.map +1 -0
- package/lib/commonjs/internal/hosted/hosted-url.js +41 -0
- package/lib/commonjs/internal/hosted/hosted-url.js.map +1 -0
- package/lib/commonjs/internal/index.js +0 -7
- package/lib/commonjs/internal/index.js.map +1 -1
- package/lib/commonjs/internal/redact-uri.js +59 -15
- package/lib/commonjs/internal/redact-uri.js.map +1 -1
- package/lib/commonjs/internal/secure-store-pending-session-store.js +20 -25
- package/lib/commonjs/internal/secure-store-pending-session-store.js.map +1 -1
- package/lib/commonjs/internal/url-parts.js +145 -0
- package/lib/commonjs/internal/url-parts.js.map +1 -0
- package/lib/commonjs/public/index.js +0 -37
- package/lib/commonjs/public/index.js.map +1 -1
- package/lib/commonjs/public/payment-result.js +16 -4
- package/lib/commonjs/public/payment-result.js.map +1 -1
- package/lib/commonjs/public/recovery-result.js +7 -18
- package/lib/commonjs/public/recovery-result.js.map +1 -1
- package/lib/commonjs/public/spare-link-config.js +41 -16
- package/lib/commonjs/public/spare-link-config.js.map +1 -1
- package/lib/commonjs/public/spare-link-event.js +27 -33
- package/lib/commonjs/public/spare-link-event.js.map +1 -1
- package/lib/commonjs/public/spare-link-instance.js +67 -77
- package/lib/commonjs/public/spare-link-instance.js.map +1 -1
- package/lib/commonjs/public/spare-link-session.js +2 -9
- package/lib/commonjs/public/spare-link-session.js.map +1 -1
- package/lib/commonjs/public/spare-link.js +0 -12
- package/lib/commonjs/public/spare-link.js.map +1 -1
- package/lib/commonjs/ui/hooks/{use-payment-flow-state.js → use-hosted-flow-state.js} +4 -4
- package/lib/commonjs/ui/hooks/use-hosted-flow-state.js.map +1 -0
- package/lib/commonjs/ui/hosted/hosted-payment-page.js +177 -0
- package/lib/commonjs/ui/hosted/hosted-payment-page.js.map +1 -0
- package/lib/commonjs/ui/hosted/hosted-payment-webview.js +168 -0
- package/lib/commonjs/ui/hosted/hosted-payment-webview.js.map +1 -0
- package/lib/commonjs/ui/screens/index.js +3 -17
- package/lib/commonjs/ui/screens/index.js.map +1 -1
- package/lib/commonjs/ui/screens/page-unavailable-screen.js +101 -0
- package/lib/commonjs/ui/screens/page-unavailable-screen.js.map +1 -0
- package/lib/commonjs/ui/spare-link-host.js +220 -234
- package/lib/commonjs/ui/spare-link-host.js.map +1 -1
- package/lib/commonjs/ui/widgets/index.js +3 -10
- package/lib/commonjs/ui/widgets/index.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/core/models/payment-return-params.js +235 -20
- package/lib/module/core/models/payment-return-params.js.map +1 -1
- package/lib/module/core/models/pending-session-record.js +2 -0
- package/lib/module/core/models/pending-session-record.js.map +1 -0
- package/lib/module/core/services/hosted-flow-controller.js +328 -0
- package/lib/module/core/services/hosted-flow-controller.js.map +1 -0
- package/lib/module/core/services/hosted-flow-state.js +91 -0
- package/lib/module/core/services/hosted-flow-state.js.map +1 -0
- package/lib/module/index.js +8 -22
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/hosted/bridge-message.js +104 -0
- package/lib/module/internal/hosted/bridge-message.js.map +1 -0
- package/lib/module/internal/hosted/hosted-url.js +36 -0
- package/lib/module/internal/hosted/hosted-url.js.map +1 -0
- package/lib/module/internal/index.js +0 -1
- package/lib/module/internal/index.js.map +1 -1
- package/lib/module/internal/redact-uri.js +59 -15
- package/lib/module/internal/redact-uri.js.map +1 -1
- package/lib/module/internal/secure-store-pending-session-store.js +20 -25
- package/lib/module/internal/secure-store-pending-session-store.js.map +1 -1
- package/lib/module/internal/url-parts.js +139 -0
- package/lib/module/internal/url-parts.js.map +1 -0
- package/lib/module/public/index.js +2 -3
- package/lib/module/public/index.js.map +1 -1
- package/lib/module/public/payment-result.js +16 -4
- package/lib/module/public/payment-result.js.map +1 -1
- package/lib/module/public/recovery-result.js +7 -17
- package/lib/module/public/recovery-result.js.map +1 -1
- package/lib/module/public/spare-link-config.js +42 -15
- package/lib/module/public/spare-link-config.js.map +1 -1
- package/lib/module/public/spare-link-event.js +27 -33
- package/lib/module/public/spare-link-event.js.map +1 -1
- package/lib/module/public/spare-link-instance.js +68 -72
- package/lib/module/public/spare-link-instance.js.map +1 -1
- package/lib/module/public/spare-link-session.js +2 -9
- package/lib/module/public/spare-link-session.js.map +1 -1
- package/lib/module/public/spare-link.js +1 -1
- package/lib/module/public/spare-link.js.map +1 -1
- package/lib/module/ui/hooks/{use-payment-flow-state.js → use-hosted-flow-state.js} +3 -3
- package/lib/module/ui/hooks/use-hosted-flow-state.js.map +1 -0
- package/lib/module/ui/hosted/hosted-payment-page.js +175 -0
- package/lib/module/ui/hosted/hosted-payment-page.js.map +1 -0
- package/lib/module/ui/hosted/hosted-payment-webview.js +163 -0
- package/lib/module/ui/hosted/hosted-payment-webview.js.map +1 -0
- package/lib/module/ui/screens/index.js +1 -3
- package/lib/module/ui/screens/index.js.map +1 -1
- package/lib/module/ui/screens/page-unavailable-screen.js +97 -0
- package/lib/module/ui/screens/page-unavailable-screen.js.map +1 -0
- package/lib/module/ui/spare-link-host.js +221 -236
- package/lib/module/ui/spare-link-host.js.map +1 -1
- package/lib/module/ui/widgets/index.js +1 -2
- package/lib/module/ui/widgets/index.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/commonjs/core/models/index.d.ts +1 -123
- package/lib/typescript/commonjs/core/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/models/payment-return-params.d.ts +91 -8
- package/lib/typescript/commonjs/core/models/payment-return-params.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/models/pending-session-record.d.ts +11 -0
- package/lib/typescript/commonjs/core/models/pending-session-record.d.ts.map +1 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-controller.d.ts +119 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-controller.d.ts.map +1 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-state.d.ts +75 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +5 -14
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/hosted/bridge-message.d.ts +44 -0
- package/lib/typescript/commonjs/internal/hosted/bridge-message.d.ts.map +1 -0
- package/lib/typescript/commonjs/internal/hosted/hosted-url.d.ts +30 -0
- package/lib/typescript/commonjs/internal/hosted/hosted-url.d.ts.map +1 -0
- package/lib/typescript/commonjs/internal/index.d.ts +0 -1
- package/lib/typescript/commonjs/internal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/redact-uri.d.ts +21 -1
- package/lib/typescript/commonjs/internal/redact-uri.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/secure-store-pending-session-store.d.ts +3 -2
- package/lib/typescript/commonjs/internal/secure-store-pending-session-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/url-parts.d.ts +46 -0
- package/lib/typescript/commonjs/internal/url-parts.d.ts.map +1 -0
- package/lib/typescript/commonjs/public/index.d.ts +4 -6
- package/lib/typescript/commonjs/public/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/payment-result.d.ts +50 -12
- package/lib/typescript/commonjs/public/payment-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/recovery-result.d.ts +11 -20
- package/lib/typescript/commonjs/public/recovery-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-config.d.ts +13 -31
- package/lib/typescript/commonjs/public/spare-link-config.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-event.d.ts +29 -31
- package/lib/typescript/commonjs/public/spare-link-event.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-host-api.d.ts +1 -12
- package/lib/typescript/commonjs/public/spare-link-host-api.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-instance.d.ts +26 -20
- package/lib/typescript/commonjs/public/spare-link-instance.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-session.d.ts +3 -8
- package/lib/typescript/commonjs/public/spare-link-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link.d.ts +1 -1
- package/lib/typescript/commonjs/public/spare-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/use-hosted-flow-state.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/use-hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-page.d.ts +17 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-page.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-webview.d.ts +43 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-webview.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/index.d.ts +1 -3
- package/lib/typescript/commonjs/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/page-unavailable-screen.d.ts +18 -0
- package/lib/typescript/commonjs/ui/screens/page-unavailable-screen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/spare-link-host.d.ts +4 -5
- package/lib/typescript/commonjs/ui/spare-link-host.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/widgets/index.d.ts +1 -2
- package/lib/typescript/commonjs/ui/widgets/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/version.d.ts +1 -1
- package/lib/typescript/commonjs/version.d.ts.map +1 -1
- package/lib/typescript/module/core/models/index.d.ts +1 -123
- package/lib/typescript/module/core/models/index.d.ts.map +1 -1
- package/lib/typescript/module/core/models/payment-return-params.d.ts +91 -8
- package/lib/typescript/module/core/models/payment-return-params.d.ts.map +1 -1
- package/lib/typescript/module/core/models/pending-session-record.d.ts +11 -0
- package/lib/typescript/module/core/models/pending-session-record.d.ts.map +1 -0
- package/lib/typescript/module/core/services/hosted-flow-controller.d.ts +119 -0
- package/lib/typescript/module/core/services/hosted-flow-controller.d.ts.map +1 -0
- package/lib/typescript/module/core/services/hosted-flow-state.d.ts +75 -0
- package/lib/typescript/module/core/services/hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +5 -14
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/internal/hosted/bridge-message.d.ts +44 -0
- package/lib/typescript/module/internal/hosted/bridge-message.d.ts.map +1 -0
- package/lib/typescript/module/internal/hosted/hosted-url.d.ts +30 -0
- package/lib/typescript/module/internal/hosted/hosted-url.d.ts.map +1 -0
- package/lib/typescript/module/internal/index.d.ts +0 -1
- package/lib/typescript/module/internal/index.d.ts.map +1 -1
- package/lib/typescript/module/internal/redact-uri.d.ts +21 -1
- package/lib/typescript/module/internal/redact-uri.d.ts.map +1 -1
- package/lib/typescript/module/internal/secure-store-pending-session-store.d.ts +3 -2
- package/lib/typescript/module/internal/secure-store-pending-session-store.d.ts.map +1 -1
- package/lib/typescript/module/internal/url-parts.d.ts +46 -0
- package/lib/typescript/module/internal/url-parts.d.ts.map +1 -0
- package/lib/typescript/module/public/index.d.ts +4 -6
- package/lib/typescript/module/public/index.d.ts.map +1 -1
- package/lib/typescript/module/public/payment-result.d.ts +50 -12
- package/lib/typescript/module/public/payment-result.d.ts.map +1 -1
- package/lib/typescript/module/public/recovery-result.d.ts +11 -20
- package/lib/typescript/module/public/recovery-result.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-config.d.ts +13 -31
- package/lib/typescript/module/public/spare-link-config.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-event.d.ts +29 -31
- package/lib/typescript/module/public/spare-link-event.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-host-api.d.ts +1 -12
- package/lib/typescript/module/public/spare-link-host-api.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-instance.d.ts +26 -20
- package/lib/typescript/module/public/spare-link-instance.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-session.d.ts +3 -8
- package/lib/typescript/module/public/spare-link-session.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link.d.ts +1 -1
- package/lib/typescript/module/public/spare-link.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/use-hosted-flow-state.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/use-hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-page.d.ts +17 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-page.d.ts.map +1 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-webview.d.ts +43 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-webview.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/index.d.ts +1 -3
- package/lib/typescript/module/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/page-unavailable-screen.d.ts +18 -0
- package/lib/typescript/module/ui/screens/page-unavailable-screen.d.ts.map +1 -0
- package/lib/typescript/module/ui/spare-link-host.d.ts +4 -5
- package/lib/typescript/module/ui/spare-link-host.d.ts.map +1 -1
- package/lib/typescript/module/ui/widgets/index.d.ts +1 -2
- package/lib/typescript/module/ui/widgets/index.d.ts.map +1 -1
- package/lib/typescript/module/version.d.ts +1 -1
- package/lib/typescript/module/version.d.ts.map +1 -1
- package/package.json +24 -22
- package/plugins/with-spare-link.js +6 -26
- package/src/core/models/index.ts +1 -139
- package/src/core/models/payment-return-params.ts +269 -21
- package/src/core/models/pending-session-record.ts +10 -0
- package/src/core/services/hosted-flow-controller.ts +374 -0
- package/src/core/services/hosted-flow-state.ts +123 -0
- package/src/index.ts +20 -89
- package/src/internal/hosted/bridge-message.ts +106 -0
- package/src/internal/hosted/hosted-url.ts +33 -0
- package/src/internal/index.ts +0 -1
- package/src/internal/redact-uri.ts +69 -15
- package/src/internal/secure-store-pending-session-store.ts +28 -49
- package/src/internal/url-parts.ts +134 -0
- package/src/public/index.ts +2 -24
- package/src/public/payment-result.ts +50 -12
- package/src/public/recovery-result.ts +16 -25
- package/src/public/spare-link-config.ts +56 -43
- package/src/public/spare-link-event.ts +33 -42
- package/src/public/spare-link-host-api.ts +1 -14
- package/src/public/spare-link-instance.ts +57 -65
- package/src/public/spare-link-session.ts +4 -16
- package/src/public/spare-link.ts +1 -1
- package/src/ui/hooks/use-hosted-flow-state.ts +16 -0
- package/src/ui/hosted/hosted-payment-page.tsx +178 -0
- package/src/ui/hosted/hosted-payment-webview.tsx +164 -0
- package/src/ui/screens/index.ts +4 -6
- package/src/ui/screens/page-unavailable-screen.tsx +94 -0
- package/src/ui/spare-link-host.tsx +227 -247
- package/src/ui/widgets/index.ts +1 -2
- package/src/version.ts +1 -1
- package/CHANGELOG.md +0 -25
- package/lib/commonjs/core/client/link-api-client.js +0 -297
- package/lib/commonjs/core/client/link-api-client.js.map +0 -1
- package/lib/commonjs/core/errors/payment-api-error.js +0 -35
- package/lib/commonjs/core/errors/payment-api-error.js.map +0 -1
- package/lib/commonjs/core/models/link-session-status.js +0 -14
- package/lib/commonjs/core/models/link-session-status.js.map +0 -1
- package/lib/commonjs/core/models/payment-type.js +0 -45
- package/lib/commonjs/core/models/payment-type.js.map +0 -1
- package/lib/commonjs/core/models/wire-mappers.js +0 -277
- package/lib/commonjs/core/models/wire-mappers.js.map +0 -1
- package/lib/commonjs/core/services/consent-presenter.js +0 -150
- package/lib/commonjs/core/services/consent-presenter.js.map +0 -1
- package/lib/commonjs/core/services/execute-resume-if-needed.js +0 -216
- package/lib/commonjs/core/services/execute-resume-if-needed.js.map +0 -1
- package/lib/commonjs/core/services/multi-payment-rules-presenter.js +0 -151
- package/lib/commonjs/core/services/multi-payment-rules-presenter.js.map +0 -1
- package/lib/commonjs/core/services/payment-flow-controller.js +0 -547
- package/lib/commonjs/core/services/payment-flow-controller.js.map +0 -1
- package/lib/commonjs/core/services/payment-flow-state.js +0 -110
- package/lib/commonjs/core/services/payment-flow-state.js.map +0 -1
- package/lib/commonjs/core/services/payment-result-mapper.js +0 -49
- package/lib/commonjs/core/services/payment-result-mapper.js.map +0 -1
- package/lib/commonjs/core/services/presentation-utils.js +0 -11
- package/lib/commonjs/core/services/presentation-utils.js.map +0 -1
- package/lib/commonjs/core/services/redirect-buffer.js +0 -40
- package/lib/commonjs/core/services/redirect-buffer.js.map +0 -1
- package/lib/commonjs/core/services/user-friendly-messages.js +0 -46
- package/lib/commonjs/core/services/user-friendly-messages.js.map +0 -1
- package/lib/commonjs/internal/telemetry-collector.js +0 -80
- package/lib/commonjs/internal/telemetry-collector.js.map +0 -1
- package/lib/commonjs/public/constants.js +0 -21
- package/lib/commonjs/public/constants.js.map +0 -1
- package/lib/commonjs/public/spare-link-callbacks.js +0 -6
- package/lib/commonjs/public/spare-link-callbacks.js.map +0 -1
- package/lib/commonjs/ui/consent/charge-bearer-display.js +0 -99
- package/lib/commonjs/ui/consent/charge-bearer-display.js.map +0 -1
- package/lib/commonjs/ui/consent/consent-accordion.js +0 -94
- package/lib/commonjs/ui/consent/consent-accordion.js.map +0 -1
- package/lib/commonjs/ui/consent/consent-summary-section.js +0 -27
- package/lib/commonjs/ui/consent/consent-summary-section.js.map +0 -1
- package/lib/commonjs/ui/consent/cop-information.js +0 -168
- package/lib/commonjs/ui/consent/cop-information.js.map +0 -1
- package/lib/commonjs/ui/consent/international-payment-summary.js +0 -98
- package/lib/commonjs/ui/consent/international-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/label-value-rows.js +0 -59
- package/lib/commonjs/ui/consent/label-value-rows.js.map +0 -1
- package/lib/commonjs/ui/consent/multi-payment-rules-list.js +0 -130
- package/lib/commonjs/ui/consent/multi-payment-rules-list.js.map +0 -1
- package/lib/commonjs/ui/consent/multi-payment-summary.js +0 -99
- package/lib/commonjs/ui/consent/multi-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/single-payment-summary.js +0 -158
- package/lib/commonjs/ui/consent/single-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/terms-link.js +0 -35
- package/lib/commonjs/ui/consent/terms-link.js.map +0 -1
- package/lib/commonjs/ui/hooks/use-payment-flow-state.js.map +0 -1
- package/lib/commonjs/ui/payment-flow-page.js +0 -235
- package/lib/commonjs/ui/payment-flow-page.js.map +0 -1
- package/lib/commonjs/ui/screens/bank-selection-screen.js +0 -215
- package/lib/commonjs/ui/screens/bank-selection-screen.js.map +0 -1
- package/lib/commonjs/ui/screens/consent-details-screen.js +0 -124
- package/lib/commonjs/ui/screens/consent-details-screen.js.map +0 -1
- package/lib/commonjs/ui/screens/mandate-setup-success-screen.js +0 -79
- package/lib/commonjs/ui/screens/mandate-setup-success-screen.js.map +0 -1
- package/lib/commonjs/ui/widgets/layout-w-header.js +0 -106
- package/lib/commonjs/ui/widgets/layout-w-header.js.map +0 -1
- package/lib/commonjs/ui/widgets/stepper.js +0 -124
- package/lib/commonjs/ui/widgets/stepper.js.map +0 -1
- package/lib/module/core/client/link-api-client.js +0 -292
- package/lib/module/core/client/link-api-client.js.map +0 -1
- package/lib/module/core/errors/payment-api-error.js +0 -29
- package/lib/module/core/errors/payment-api-error.js.map +0 -1
- package/lib/module/core/models/link-session-status.js +0 -10
- package/lib/module/core/models/link-session-status.js.map +0 -1
- package/lib/module/core/models/payment-type.js +0 -36
- package/lib/module/core/models/payment-type.js.map +0 -1
- package/lib/module/core/models/wire-mappers.js +0 -263
- package/lib/module/core/models/wire-mappers.js.map +0 -1
- package/lib/module/core/services/consent-presenter.js +0 -140
- package/lib/module/core/services/consent-presenter.js.map +0 -1
- package/lib/module/core/services/execute-resume-if-needed.js +0 -211
- package/lib/module/core/services/execute-resume-if-needed.js.map +0 -1
- package/lib/module/core/services/multi-payment-rules-presenter.js +0 -146
- package/lib/module/core/services/multi-payment-rules-presenter.js.map +0 -1
- package/lib/module/core/services/payment-flow-controller.js +0 -544
- package/lib/module/core/services/payment-flow-controller.js.map +0 -1
- package/lib/module/core/services/payment-flow-state.js +0 -106
- package/lib/module/core/services/payment-flow-state.js.map +0 -1
- package/lib/module/core/services/payment-result-mapper.js +0 -45
- package/lib/module/core/services/payment-result-mapper.js.map +0 -1
- package/lib/module/core/services/presentation-utils.js +0 -7
- package/lib/module/core/services/presentation-utils.js.map +0 -1
- package/lib/module/core/services/redirect-buffer.js +0 -33
- package/lib/module/core/services/redirect-buffer.js.map +0 -1
- package/lib/module/core/services/user-friendly-messages.js +0 -42
- package/lib/module/core/services/user-friendly-messages.js.map +0 -1
- package/lib/module/internal/telemetry-collector.js +0 -75
- package/lib/module/internal/telemetry-collector.js.map +0 -1
- package/lib/module/public/constants.js +0 -17
- package/lib/module/public/constants.js.map +0 -1
- package/lib/module/public/spare-link-callbacks.js +0 -4
- package/lib/module/public/spare-link-callbacks.js.map +0 -1
- package/lib/module/ui/consent/charge-bearer-display.js +0 -95
- package/lib/module/ui/consent/charge-bearer-display.js.map +0 -1
- package/lib/module/ui/consent/consent-accordion.js +0 -90
- package/lib/module/ui/consent/consent-accordion.js.map +0 -1
- package/lib/module/ui/consent/consent-summary-section.js +0 -23
- package/lib/module/ui/consent/consent-summary-section.js.map +0 -1
- package/lib/module/ui/consent/cop-information.js +0 -165
- package/lib/module/ui/consent/cop-information.js.map +0 -1
- package/lib/module/ui/consent/international-payment-summary.js +0 -94
- package/lib/module/ui/consent/international-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/label-value-rows.js +0 -55
- package/lib/module/ui/consent/label-value-rows.js.map +0 -1
- package/lib/module/ui/consent/multi-payment-rules-list.js +0 -125
- package/lib/module/ui/consent/multi-payment-rules-list.js.map +0 -1
- package/lib/module/ui/consent/multi-payment-summary.js +0 -95
- package/lib/module/ui/consent/multi-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/single-payment-summary.js +0 -154
- package/lib/module/ui/consent/single-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/terms-link.js +0 -31
- package/lib/module/ui/consent/terms-link.js.map +0 -1
- package/lib/module/ui/hooks/use-payment-flow-state.js.map +0 -1
- package/lib/module/ui/payment-flow-page.js +0 -232
- package/lib/module/ui/payment-flow-page.js.map +0 -1
- package/lib/module/ui/screens/bank-selection-screen.js +0 -211
- package/lib/module/ui/screens/bank-selection-screen.js.map +0 -1
- package/lib/module/ui/screens/consent-details-screen.js +0 -120
- package/lib/module/ui/screens/consent-details-screen.js.map +0 -1
- package/lib/module/ui/screens/mandate-setup-success-screen.js +0 -75
- package/lib/module/ui/screens/mandate-setup-success-screen.js.map +0 -1
- package/lib/module/ui/widgets/layout-w-header.js +0 -102
- package/lib/module/ui/widgets/layout-w-header.js.map +0 -1
- package/lib/module/ui/widgets/stepper.js +0 -120
- package/lib/module/ui/widgets/stepper.js.map +0 -1
- package/lib/typescript/commonjs/core/client/link-api-client.d.ts +0 -70
- package/lib/typescript/commonjs/core/client/link-api-client.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/errors/payment-api-error.d.ts +0 -15
- package/lib/typescript/commonjs/core/errors/payment-api-error.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/link-session-status.d.ts +0 -6
- package/lib/typescript/commonjs/core/models/link-session-status.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/payment-type.d.ts +0 -18
- package/lib/typescript/commonjs/core/models/payment-type.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/wire-mappers.d.ts +0 -19
- package/lib/typescript/commonjs/core/models/wire-mappers.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/consent-presenter.d.ts +0 -67
- package/lib/typescript/commonjs/core/services/consent-presenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/execute-resume-if-needed.d.ts +0 -32
- package/lib/typescript/commonjs/core/services/execute-resume-if-needed.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/multi-payment-rules-presenter.d.ts +0 -9
- package/lib/typescript/commonjs/core/services/multi-payment-rules-presenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-flow-controller.d.ts +0 -146
- package/lib/typescript/commonjs/core/services/payment-flow-controller.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-flow-state.d.ts +0 -64
- package/lib/typescript/commonjs/core/services/payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-result-mapper.d.ts +0 -5
- package/lib/typescript/commonjs/core/services/payment-result-mapper.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/presentation-utils.d.ts +0 -5
- package/lib/typescript/commonjs/core/services/presentation-utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/redirect-buffer.d.ts +0 -6
- package/lib/typescript/commonjs/core/services/redirect-buffer.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/user-friendly-messages.d.ts +0 -6
- package/lib/typescript/commonjs/core/services/user-friendly-messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/internal/telemetry-collector.d.ts +0 -2
- package/lib/typescript/commonjs/internal/telemetry-collector.d.ts.map +0 -1
- package/lib/typescript/commonjs/public/constants.d.ts +0 -12
- package/lib/typescript/commonjs/public/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/public/spare-link-callbacks.d.ts +0 -14
- package/lib/typescript/commonjs/public/spare-link-callbacks.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/charge-bearer-display.d.ts +0 -5
- package/lib/typescript/commonjs/ui/consent/charge-bearer-display.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/consent-accordion.d.ts +0 -10
- package/lib/typescript/commonjs/ui/consent/consent-accordion.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/consent-summary-section.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/consent-summary-section.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/cop-information.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/cop-information.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/international-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/international-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/label-value-rows.d.ts +0 -10
- package/lib/typescript/commonjs/ui/consent/label-value-rows.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/multi-payment-rules-list.d.ts +0 -15
- package/lib/typescript/commonjs/ui/consent/multi-payment-rules-list.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/multi-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/multi-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/single-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/single-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/terms-link.d.ts +0 -2
- package/lib/typescript/commonjs/ui/consent/terms-link.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/use-payment-flow-state.d.ts +0 -9
- package/lib/typescript/commonjs/ui/hooks/use-payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/payment-flow-page.d.ts +0 -20
- package/lib/typescript/commonjs/ui/payment-flow-page.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/bank-selection-screen.d.ts +0 -15
- package/lib/typescript/commonjs/ui/screens/bank-selection-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/consent-details-screen.d.ts +0 -13
- package/lib/typescript/commonjs/ui/screens/consent-details-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/mandate-setup-success-screen.d.ts +0 -10
- package/lib/typescript/commonjs/ui/screens/mandate-setup-success-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/widgets/layout-w-header.d.ts +0 -20
- package/lib/typescript/commonjs/ui/widgets/layout-w-header.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/widgets/stepper.d.ts +0 -15
- package/lib/typescript/commonjs/ui/widgets/stepper.d.ts.map +0 -1
- package/lib/typescript/module/core/client/link-api-client.d.ts +0 -70
- package/lib/typescript/module/core/client/link-api-client.d.ts.map +0 -1
- package/lib/typescript/module/core/errors/payment-api-error.d.ts +0 -15
- package/lib/typescript/module/core/errors/payment-api-error.d.ts.map +0 -1
- package/lib/typescript/module/core/models/link-session-status.d.ts +0 -6
- package/lib/typescript/module/core/models/link-session-status.d.ts.map +0 -1
- package/lib/typescript/module/core/models/payment-type.d.ts +0 -18
- package/lib/typescript/module/core/models/payment-type.d.ts.map +0 -1
- package/lib/typescript/module/core/models/wire-mappers.d.ts +0 -19
- package/lib/typescript/module/core/models/wire-mappers.d.ts.map +0 -1
- package/lib/typescript/module/core/services/consent-presenter.d.ts +0 -67
- package/lib/typescript/module/core/services/consent-presenter.d.ts.map +0 -1
- package/lib/typescript/module/core/services/execute-resume-if-needed.d.ts +0 -32
- package/lib/typescript/module/core/services/execute-resume-if-needed.d.ts.map +0 -1
- package/lib/typescript/module/core/services/multi-payment-rules-presenter.d.ts +0 -9
- package/lib/typescript/module/core/services/multi-payment-rules-presenter.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-flow-controller.d.ts +0 -146
- package/lib/typescript/module/core/services/payment-flow-controller.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-flow-state.d.ts +0 -64
- package/lib/typescript/module/core/services/payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-result-mapper.d.ts +0 -5
- package/lib/typescript/module/core/services/payment-result-mapper.d.ts.map +0 -1
- package/lib/typescript/module/core/services/presentation-utils.d.ts +0 -5
- package/lib/typescript/module/core/services/presentation-utils.d.ts.map +0 -1
- package/lib/typescript/module/core/services/redirect-buffer.d.ts +0 -6
- package/lib/typescript/module/core/services/redirect-buffer.d.ts.map +0 -1
- package/lib/typescript/module/core/services/user-friendly-messages.d.ts +0 -6
- package/lib/typescript/module/core/services/user-friendly-messages.d.ts.map +0 -1
- package/lib/typescript/module/internal/telemetry-collector.d.ts +0 -2
- package/lib/typescript/module/internal/telemetry-collector.d.ts.map +0 -1
- package/lib/typescript/module/public/constants.d.ts +0 -12
- package/lib/typescript/module/public/constants.d.ts.map +0 -1
- package/lib/typescript/module/public/spare-link-callbacks.d.ts +0 -14
- package/lib/typescript/module/public/spare-link-callbacks.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/charge-bearer-display.d.ts +0 -5
- package/lib/typescript/module/ui/consent/charge-bearer-display.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/consent-accordion.d.ts +0 -10
- package/lib/typescript/module/ui/consent/consent-accordion.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/consent-summary-section.d.ts +0 -6
- package/lib/typescript/module/ui/consent/consent-summary-section.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/cop-information.d.ts +0 -6
- package/lib/typescript/module/ui/consent/cop-information.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/international-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/international-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/label-value-rows.d.ts +0 -10
- package/lib/typescript/module/ui/consent/label-value-rows.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/multi-payment-rules-list.d.ts +0 -15
- package/lib/typescript/module/ui/consent/multi-payment-rules-list.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/multi-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/multi-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/single-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/single-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/terms-link.d.ts +0 -2
- package/lib/typescript/module/ui/consent/terms-link.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/use-payment-flow-state.d.ts +0 -9
- package/lib/typescript/module/ui/hooks/use-payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/module/ui/payment-flow-page.d.ts +0 -20
- package/lib/typescript/module/ui/payment-flow-page.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/bank-selection-screen.d.ts +0 -15
- package/lib/typescript/module/ui/screens/bank-selection-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/consent-details-screen.d.ts +0 -13
- package/lib/typescript/module/ui/screens/consent-details-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/mandate-setup-success-screen.d.ts +0 -10
- package/lib/typescript/module/ui/screens/mandate-setup-success-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/widgets/layout-w-header.d.ts +0 -20
- package/lib/typescript/module/ui/widgets/layout-w-header.d.ts.map +0 -1
- package/lib/typescript/module/ui/widgets/stepper.d.ts +0 -15
- package/lib/typescript/module/ui/widgets/stepper.d.ts.map +0 -1
- package/src/core/client/link-api-client.ts +0 -414
- package/src/core/errors/payment-api-error.ts +0 -35
- package/src/core/models/link-session-status.ts +0 -7
- package/src/core/models/payment-type.ts +0 -54
- package/src/core/models/wire-mappers.ts +0 -315
- package/src/core/services/consent-presenter.ts +0 -213
- package/src/core/services/execute-resume-if-needed.ts +0 -243
- package/src/core/services/multi-payment-rules-presenter.ts +0 -158
- package/src/core/services/payment-flow-controller.ts +0 -607
- package/src/core/services/payment-flow-state.ts +0 -124
- package/src/core/services/payment-result-mapper.ts +0 -41
- package/src/core/services/presentation-utils.ts +0 -4
- package/src/core/services/redirect-buffer.ts +0 -34
- package/src/core/services/user-friendly-messages.ts +0 -39
- package/src/internal/telemetry-collector.ts +0 -90
- package/src/public/constants.ts +0 -14
- package/src/public/spare-link-callbacks.ts +0 -20
- package/src/ui/consent/charge-bearer-display.tsx +0 -68
- package/src/ui/consent/consent-accordion.tsx +0 -89
- package/src/ui/consent/consent-summary-section.tsx +0 -19
- package/src/ui/consent/cop-information.tsx +0 -121
- package/src/ui/consent/international-payment-summary.tsx +0 -83
- package/src/ui/consent/label-value-rows.tsx +0 -50
- package/src/ui/consent/multi-payment-rules-list.tsx +0 -138
- package/src/ui/consent/multi-payment-summary.tsx +0 -82
- package/src/ui/consent/single-payment-summary.tsx +0 -123
- package/src/ui/consent/terms-link.tsx +0 -27
- package/src/ui/hooks/use-payment-flow-state.ts +0 -16
- package/src/ui/payment-flow-page.tsx +0 -254
- package/src/ui/screens/bank-selection-screen.tsx +0 -209
- package/src/ui/screens/consent-details-screen.tsx +0 -106
- package/src/ui/screens/mandate-setup-success-screen.tsx +0 -72
- package/src/ui/widgets/layout-w-header.tsx +0 -89
- package/src/ui/widgets/stepper.tsx +0 -126
|
@@ -6,30 +6,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SpareLinkHost = SpareLinkHost;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
9
10
|
var _reactNativeScreens = require("react-native-screens");
|
|
10
|
-
var _linkApiClient = require("../core/client/link-api-client.js");
|
|
11
11
|
var _paymentReturnParams = require("../core/models/payment-return-params.js");
|
|
12
|
-
var
|
|
13
|
-
var _paymentFlowController = require("../core/services/payment-flow-controller.js");
|
|
14
|
-
var _redirectBuffer = require("../core/services/redirect-buffer.js");
|
|
15
|
-
var _userFriendlyMessages = require("../core/services/user-friendly-messages.js");
|
|
16
|
-
var _bankRedirect = require("../internal/bank-redirect.js");
|
|
12
|
+
var _hostedFlowController = require("../core/services/hosted-flow-controller.js");
|
|
17
13
|
var _logger = require("../internal/logger.js");
|
|
18
|
-
var
|
|
14
|
+
var _redactUri = require("../internal/redact-uri.js");
|
|
19
15
|
var _paymentResult = require("../public/payment-result.js");
|
|
20
|
-
var _spareLinkConfig = require("../public/spare-link-config.js");
|
|
21
16
|
var _spareLinkEvent = require("../public/spare-link-event.js");
|
|
22
17
|
var _spareLinkInstance = require("../public/spare-link-instance.js");
|
|
23
|
-
var
|
|
18
|
+
var _hostedPaymentPage = require("./hosted/hosted-payment-page.js");
|
|
24
19
|
var _index = require("./theme/index.js");
|
|
25
20
|
var _fonts = require("./theme/fonts.js");
|
|
26
21
|
var _modalDismissButton = require("./widgets/modal-dismiss-button.js");
|
|
27
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
// `react-native`'s own SafeAreaView applies nothing on Android, which left the
|
|
24
|
+
// hosted page's header under the status bar there. This one insets both platforms.
|
|
25
|
+
|
|
28
26
|
(0, _reactNativeScreens.enableScreens)();
|
|
29
27
|
const log = (0, _logger.createLogger)('SpareLinkHost');
|
|
30
28
|
/**
|
|
31
29
|
* Host component that mounts the SDK modal and connects a {@link SpareLink}
|
|
32
|
-
* instance —
|
|
30
|
+
* instance — one instance, one host.
|
|
33
31
|
*/
|
|
34
32
|
function SpareLinkHost(props) {
|
|
35
33
|
const {
|
|
@@ -41,194 +39,200 @@ function SpareLinkHost(props) {
|
|
|
41
39
|
const fontsLoaded = (0, _fonts.useLinkFonts)();
|
|
42
40
|
const [active, setActive] = (0, _react.useState)(null);
|
|
43
41
|
const activeRef = (0, _react.useRef)(null);
|
|
42
|
+
|
|
43
|
+
/** A return that arrived before there was a flow to give it to. */
|
|
44
|
+
const bufferedRedirect = (0, _react.useRef)(null);
|
|
44
45
|
(0, _react.useEffect)(() => {
|
|
45
46
|
activeRef.current = active;
|
|
46
47
|
}, [active]);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
void pendingSessionStore?.clear().catch(() => {
|
|
67
|
-
log.warning('close: pendingSessionStore.clear() failed — continuing');
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Serializes every write to the pending-session store.
|
|
51
|
+
*
|
|
52
|
+
* The store is pluggable, so it cannot be assumed to order its own writes: a
|
|
53
|
+
* `clear` overtaking a slow `save` would leave a record for a payment that has
|
|
54
|
+
* already resolved, and the next cold start would offer to recover it.
|
|
55
|
+
*/
|
|
56
|
+
const persistQueue = (0, _react.useRef)(Promise.resolve());
|
|
57
|
+
const enqueuePersist = (0, _react.useCallback)(op => {
|
|
58
|
+
const next = persistQueue.current.then(op, op);
|
|
59
|
+
// Kept un-rejected so one failure does not poison the queue behind it.
|
|
60
|
+
persistQueue.current = next.catch(() => undefined);
|
|
61
|
+
return next;
|
|
62
|
+
}, []);
|
|
63
|
+
const clearPending = (0, _react.useCallback)(() => {
|
|
64
|
+
if (!pendingSessionStore) return;
|
|
65
|
+
void enqueuePersist(() => pendingSessionStore.clear()).catch(() => {
|
|
66
|
+
log.warning('could not clear the pending payment — continuing');
|
|
68
67
|
});
|
|
68
|
+
}, [pendingSessionStore, enqueuePersist]);
|
|
69
|
+
const close = (0, _react.useCallback)((flow, result) => {
|
|
70
|
+
clearPending();
|
|
69
71
|
flow.resolve(result);
|
|
70
72
|
flow.controller.dispose();
|
|
71
73
|
if (activeRef.current === flow) {
|
|
72
74
|
activeRef.current = null;
|
|
73
75
|
setActive(null);
|
|
74
76
|
}
|
|
75
|
-
}, [
|
|
77
|
+
}, [clearPending]);
|
|
78
|
+
|
|
79
|
+
/** Maps a resolved flow onto the result the caller awaits. */
|
|
80
|
+
const resultFor = (0, _react.useCallback)(flow => {
|
|
81
|
+
const s = flow.controller.state;
|
|
82
|
+
const base = {
|
|
83
|
+
reference: s.reference,
|
|
84
|
+
...reportedFields(s.report),
|
|
85
|
+
resolvedAtMs: Date.now()
|
|
86
|
+
};
|
|
87
|
+
switch (s.phase) {
|
|
88
|
+
case 'succeeded':
|
|
89
|
+
return (0, _paymentResult.paymentSuccess)(base);
|
|
90
|
+
case 'cancelled':
|
|
91
|
+
return (0, _paymentResult.paymentCancelled)(base);
|
|
92
|
+
case 'failed':
|
|
93
|
+
return (0, _paymentResult.paymentFailed)({
|
|
94
|
+
...base,
|
|
95
|
+
errorCode: s.errorCode ?? 'internal_error'
|
|
96
|
+
});
|
|
97
|
+
default:
|
|
98
|
+
// Anything else resolving is the payer leaving mid-flow, which may still
|
|
99
|
+
// complete at the bank — so it is reported as unresolved, not as a failure.
|
|
100
|
+
return (0, _paymentResult.paymentAbandoned)(base);
|
|
101
|
+
}
|
|
102
|
+
}, []);
|
|
103
|
+
const onResolved = (0, _react.useCallback)(() => {
|
|
104
|
+
const current = activeRef.current;
|
|
105
|
+
if (!current) return;
|
|
106
|
+
close(current, resultFor(current));
|
|
107
|
+
}, [close, resultFor]);
|
|
76
108
|
const startFlow = (0, _react.useCallback)(args => {
|
|
77
109
|
if (activeRef.current) {
|
|
78
|
-
log.warning('start: a payment
|
|
110
|
+
log.warning('start: a payment is already in progress — rejecting concurrent call');
|
|
79
111
|
args.resolve((0, _paymentResult.paymentFailed)({
|
|
80
|
-
|
|
112
|
+
reference: args.reference,
|
|
81
113
|
errorCode: 'concurrent_start',
|
|
82
|
-
message: 'A payment
|
|
114
|
+
message: 'A payment is already in progress.',
|
|
83
115
|
resolvedAtMs: Date.now()
|
|
84
116
|
}));
|
|
85
117
|
return;
|
|
86
118
|
}
|
|
87
119
|
log.info(`start: tenant=${spareLink.tenant}, environment=${spareLink.environment}`);
|
|
88
|
-
const controller = new
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
tenant: (0, _spareLinkConfig.tenantCountryCode)(spareLink.tenant),
|
|
94
|
-
...(spareLink.fetch ? {
|
|
95
|
-
fetch: spareLink.fetch
|
|
96
|
-
} : {}),
|
|
97
|
-
...(spareLink.requestTimeoutMs !== undefined ? {
|
|
98
|
-
requestTimeoutMs: spareLink.requestTimeoutMs
|
|
99
|
-
} : {})
|
|
100
|
-
}),
|
|
101
|
-
collectTelemetry: _telemetryCollector.collectTelemetry,
|
|
102
|
-
...(pendingSessionStore ? {
|
|
103
|
-
pendingSessionStore
|
|
104
|
-
} : {}),
|
|
105
|
-
onEvent: event => {
|
|
106
|
-
emitMappedEvent(args.linkToken, event);
|
|
107
|
-
if (event === 'sessionLoaded') {
|
|
108
|
-
const linkSessionId = controller.state.linkSessionId;
|
|
109
|
-
if (linkSessionId) {
|
|
110
|
-
args.onSessionLoaded?.(linkSessionId);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
120
|
+
const controller = new _hostedFlowController.HostedFlowController({
|
|
121
|
+
reference: args.reference,
|
|
122
|
+
...(launchBankRedirect ? {
|
|
123
|
+
bankLauncher: launchBankRedirect
|
|
124
|
+
} : {})
|
|
114
125
|
});
|
|
115
126
|
const flow = {
|
|
116
127
|
controller,
|
|
117
|
-
|
|
118
|
-
resolve: args.resolve
|
|
119
|
-
...(args.onSessionLoaded ? {
|
|
120
|
-
onSessionLoaded: args.onSessionLoaded
|
|
121
|
-
} : {})
|
|
128
|
+
reference: args.reference,
|
|
129
|
+
resolve: args.resolve
|
|
122
130
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
message: 'Unable to load payment session. Please try again.',
|
|
131
|
-
resolvedAtMs: Date.now()
|
|
132
|
-
}));
|
|
131
|
+
controller.subscribe(() => {
|
|
132
|
+
const phase = controller.state.phase;
|
|
133
|
+
if (phase === 'hosted') {
|
|
134
|
+
spareLink.emitEvent(_spareLinkEvent.SpareLinkEvents.pageReady(args.reference));
|
|
135
|
+
} else if (phase === 'redirecting') {
|
|
136
|
+
spareLink.emitEvent(_spareLinkEvent.SpareLinkEvents.redirectToBank(args.reference));
|
|
137
|
+
}
|
|
133
138
|
});
|
|
134
|
-
|
|
139
|
+
|
|
140
|
+
// Claimed synchronously so a second `start` in the same tick is rejected by
|
|
141
|
+
// the guard above rather than racing this one.
|
|
142
|
+
activeRef.current = flow;
|
|
143
|
+
|
|
144
|
+
// Recorded *before* the page is presented, so the payer cannot reach their
|
|
145
|
+
// bank on a payment a cold start would not know about. A store that cannot
|
|
146
|
+
// write is not a reason to refuse the payment.
|
|
147
|
+
const present = () => {
|
|
148
|
+
if (activeRef.current !== flow) return;
|
|
149
|
+
setActive(flow);
|
|
150
|
+
|
|
151
|
+
// A return can beat the page onto the screen when the app was resumed
|
|
152
|
+
// rather than launched, so replay one that arrived before there was a flow.
|
|
153
|
+
const buffered = bufferedRedirect.current;
|
|
154
|
+
if (buffered) {
|
|
155
|
+
bufferedRedirect.current = null;
|
|
156
|
+
controller.handleReturn(buffered);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
if (!pendingSessionStore) {
|
|
160
|
+
present();
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
void enqueuePersist(() => pendingSessionStore.save({
|
|
164
|
+
reference: args.reference
|
|
165
|
+
})).catch(() => {
|
|
166
|
+
log.warning('could not record the pending payment — continuing');
|
|
167
|
+
}).finally(present);
|
|
168
|
+
}, [spareLink, pendingSessionStore, launchBankRedirect, enqueuePersist]);
|
|
135
169
|
const handleRedirect = (0, _react.useCallback)(async uri => {
|
|
136
|
-
const current = activeRef.current;
|
|
137
170
|
const asString = typeof uri === 'string' ? uri : uri.toString();
|
|
171
|
+
log.info(`handleRedirect: ${(0, _redactUri.redactPaymentReturnUri)(asString)}`);
|
|
172
|
+
if (!(0, _paymentReturnParams.isPaymentReturnCallbackUri)(asString)) return false;
|
|
173
|
+
const current = activeRef.current;
|
|
138
174
|
if (!current) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
(0, _redirectBuffer.setBufferedRedirect)(asString);
|
|
144
|
-
log.info('handleRedirect: no active controller — buffering URI for recovery');
|
|
175
|
+
log.info('handleRedirect: no active payment — holding for recovery');
|
|
176
|
+
bufferedRedirect.current = asString;
|
|
145
177
|
return true;
|
|
146
178
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
log.info('handleRedirect: forwarding to controller');
|
|
152
|
-
try {
|
|
153
|
-
current.controller.handleCallback(uri);
|
|
154
|
-
spareLink.emitEvent(_spareLinkEvent.SpareLinkEvents.bankCallbackReceived(current.linkToken));
|
|
155
|
-
return true;
|
|
156
|
-
} catch {
|
|
157
|
-
return false;
|
|
158
|
-
}
|
|
159
|
-
}, [spareLink]);
|
|
160
|
-
const openRecoveryFlow = (0, _react.useCallback)(args => {
|
|
161
|
-
if (activeRef.current) {
|
|
162
|
-
args.controller.dispose();
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
const flow = {
|
|
166
|
-
controller: args.controller,
|
|
167
|
-
linkToken: args.linkToken,
|
|
168
|
-
resolve: args.resolve ?? (() => {
|
|
169
|
-
/* recovery UI only */
|
|
170
|
-
})
|
|
171
|
-
};
|
|
172
|
-
activeRef.current = flow;
|
|
173
|
-
setActive(flow);
|
|
174
|
-
spareLink.emitEvent(_spareLinkEvent.SpareLinkEvents.initialized(args.linkToken));
|
|
179
|
+
spareLink.emitEvent(_spareLinkEvent.SpareLinkEvents.bankCallbackReceived(current.reference));
|
|
180
|
+
current.controller.handleReturn(asString);
|
|
181
|
+
return true;
|
|
175
182
|
}, [spareLink]);
|
|
176
183
|
const resumeIfNeeded = (0, _react.useCallback)(async () => {
|
|
177
|
-
if (
|
|
184
|
+
if (activeRef.current) return (0, _spareLinkInstance.noRecovery)('flowAlreadyActive');
|
|
185
|
+
if (!pendingSessionStore) return (0, _spareLinkInstance.noRecovery)('persistenceUnavailable');
|
|
186
|
+
let record = null;
|
|
187
|
+
try {
|
|
188
|
+
record = await pendingSessionStore.load();
|
|
189
|
+
} catch {
|
|
190
|
+
log.warning('resumeIfNeeded: could not read the pending payment');
|
|
178
191
|
return (0, _spareLinkInstance.noRecovery)('persistenceUnavailable');
|
|
179
192
|
}
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
} : {}),
|
|
195
|
-
...(spareLink.requestTimeoutMs !== undefined ? {
|
|
196
|
-
requestTimeoutMs: spareLink.requestTimeoutMs
|
|
197
|
-
} : {})
|
|
193
|
+
if (!record) return (0, _spareLinkInstance.noRecovery)('noPendingSession');
|
|
194
|
+
const buffered = bufferedRedirect.current;
|
|
195
|
+
if (buffered) {
|
|
196
|
+
const {
|
|
197
|
+
outcome,
|
|
198
|
+
report
|
|
199
|
+
} = (0, _paymentReturnParams.readPaymentReturn)(buffered);
|
|
200
|
+
|
|
201
|
+
// The buffered link is only this payment's if it says so. Pairing whatever
|
|
202
|
+
// arrived with whatever was persisted is how a callback for one payment
|
|
203
|
+
// resolves another.
|
|
204
|
+
if (report.reference !== undefined && report.reference !== record.reference) {
|
|
205
|
+
log.warning('resumeIfNeeded: the buffered return names a different payment — keeping it');
|
|
206
|
+
return (0, _spareLinkInstance.noRecovery)('outcomeUnknown', record.reference);
|
|
198
207
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
spareLink.emitTerminal(result);
|
|
213
|
-
}
|
|
214
|
-
});
|
|
208
|
+
bufferedRedirect.current = null;
|
|
209
|
+
clearPending();
|
|
210
|
+
const base = {
|
|
211
|
+
reference: record.reference,
|
|
212
|
+
...reportedFields(report),
|
|
213
|
+
resolvedAtMs: Date.now()
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
// A return that did not say what happened is not a failure — the backend
|
|
217
|
+
// holds the outcome, which is what `outcomeUnknown` tells the caller.
|
|
218
|
+
if (outcome === 'unknown') {
|
|
219
|
+
log.info('resumeIfNeeded: the buffered return did not say what happened');
|
|
220
|
+
return (0, _spareLinkInstance.noRecovery)('outcomeUnknown', record.reference);
|
|
215
221
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
222
|
+
const result = outcome === 'processed' ? (0, _paymentResult.paymentSuccess)(base) : (0, _paymentResult.paymentFailed)({
|
|
223
|
+
...base,
|
|
224
|
+
errorCode: report.errorCode ?? 'authorize_failed'
|
|
225
|
+
});
|
|
226
|
+
spareLink.emitTerminal(result);
|
|
219
227
|
return {
|
|
220
228
|
kind: 'recovered',
|
|
221
|
-
result
|
|
229
|
+
result
|
|
222
230
|
};
|
|
223
231
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
return (0, _spareLinkInstance.noRecovery)('noPendingSession');
|
|
231
|
-
}, [pendingSessionStore, spareLink, openRecoveryFlow]);
|
|
232
|
+
log.info('resumeIfNeeded: a payment was pending and no return arrived — the backend holds the outcome');
|
|
233
|
+
clearPending();
|
|
234
|
+
return (0, _spareLinkInstance.noRecovery)('outcomeUnknown', record.reference);
|
|
235
|
+
}, [pendingSessionStore, spareLink, clearPending]);
|
|
232
236
|
(0, _react.useEffect)(() => {
|
|
233
237
|
const detach = spareLink._attachHost({
|
|
234
238
|
startFlow,
|
|
@@ -238,72 +242,34 @@ function SpareLinkHost(props) {
|
|
|
238
242
|
});
|
|
239
243
|
return detach;
|
|
240
244
|
}, [spareLink, startFlow, handleRedirect, resumeIfNeeded]);
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
switch (s.phase) {
|
|
247
|
-
case 'succeeded':
|
|
248
|
-
result = (0, _paymentResult.paymentSuccess)({
|
|
249
|
-
linkToken: current.linkToken,
|
|
250
|
-
...(s.exchangeCode ? {
|
|
251
|
-
exchangeCode: s.exchangeCode
|
|
252
|
-
} : {}),
|
|
253
|
-
...(s.linkSessionId ? {
|
|
254
|
-
linkSessionId: s.linkSessionId
|
|
255
|
-
} : {}),
|
|
256
|
-
...(s.merchantRef ? {
|
|
257
|
-
merchantRef: s.merchantRef
|
|
258
|
-
} : {}),
|
|
259
|
-
...(s.selectedProvider ? {
|
|
260
|
-
bankId: s.selectedProvider.id
|
|
261
|
-
} : {}),
|
|
262
|
-
...(s.session?.request?.type ? {
|
|
263
|
-
paymentType: s.session.request.type
|
|
264
|
-
} : {}),
|
|
265
|
-
resolvedAtMs: Date.now()
|
|
266
|
-
});
|
|
267
|
-
break;
|
|
268
|
-
case 'failed':
|
|
269
|
-
{
|
|
270
|
-
const errorCode = s.errorCode ?? 'unknown_error';
|
|
271
|
-
result = (0, _paymentResult.paymentFailed)({
|
|
272
|
-
linkToken: current.linkToken,
|
|
273
|
-
errorCode,
|
|
274
|
-
message: (0, _userFriendlyMessages.userFriendlyMessageFor)(errorCode),
|
|
275
|
-
resolvedAtMs: Date.now()
|
|
276
|
-
});
|
|
277
|
-
break;
|
|
278
|
-
}
|
|
279
|
-
case 'cancelled':
|
|
280
|
-
result = (0, _paymentResult.paymentCancelled)({
|
|
281
|
-
linkToken: current.linkToken,
|
|
282
|
-
resolvedAtMs: Date.now()
|
|
283
|
-
});
|
|
284
|
-
break;
|
|
285
|
-
default:
|
|
286
|
-
result = (0, _paymentResult.paymentAbandoned)({
|
|
287
|
-
linkToken: current.linkToken,
|
|
288
|
-
resolvedAtMs: Date.now()
|
|
289
|
-
});
|
|
290
|
-
break;
|
|
291
|
-
}
|
|
292
|
-
close(current, result);
|
|
293
|
-
}, [close]);
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* A dismiss mid-flow means the payer left, which the caller must hear about — a
|
|
248
|
+
* silent close would strand whoever is awaiting the result.
|
|
249
|
+
*/
|
|
294
250
|
const onDismissPressed = (0, _react.useCallback)(() => {
|
|
295
251
|
const current = activeRef.current;
|
|
296
|
-
if (!current)
|
|
297
|
-
|
|
298
|
-
|
|
252
|
+
if (!current) return;
|
|
253
|
+
current.controller.abandon();
|
|
254
|
+
close(current, resultFor(current));
|
|
255
|
+
}, [close, resultFor]);
|
|
256
|
+
const modalBody = (0, _react.useMemo)(() => {
|
|
257
|
+
if (!active) return null;
|
|
258
|
+
if (!fontsLoaded) {
|
|
259
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
260
|
+
style: styles.fontLoading,
|
|
261
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
262
|
+
size: "large",
|
|
263
|
+
color: _index.Colors.spareBlue
|
|
264
|
+
})
|
|
265
|
+
});
|
|
299
266
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}, [
|
|
306
|
-
const launcher = (0, _react.useMemo)(() => launchBankRedirect ?? _bankRedirect.launchBankRedirect, [launchBankRedirect]);
|
|
267
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_hostedPaymentPage.HostedPaymentPage, {
|
|
268
|
+
controller: active.controller,
|
|
269
|
+
baseUrl: spareLink.resolvedBaseUrl,
|
|
270
|
+
onResolved: onResolved
|
|
271
|
+
});
|
|
272
|
+
}, [active, fontsLoaded, spareLink, onResolved]);
|
|
307
273
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
308
274
|
children: [props.children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
309
275
|
animationType: "slide",
|
|
@@ -311,7 +277,7 @@ function SpareLinkHost(props) {
|
|
|
311
277
|
onRequestClose: onDismissPressed,
|
|
312
278
|
presentationStyle: "overFullScreen",
|
|
313
279
|
testID: "spare-link-modal",
|
|
314
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
280
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSafeAreaContext.SafeAreaView, {
|
|
315
281
|
accessibilityViewIsModal: true,
|
|
316
282
|
accessibilityRole: "alert",
|
|
317
283
|
style: styles.modalRoot,
|
|
@@ -321,17 +287,7 @@ function SpareLinkHost(props) {
|
|
|
321
287
|
onPress: onDismissPressed
|
|
322
288
|
}), active ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
323
289
|
style: styles.flowWrap,
|
|
324
|
-
children:
|
|
325
|
-
controller: active.controller,
|
|
326
|
-
onResolved: onResolved,
|
|
327
|
-
launchBankRedirect: launcher
|
|
328
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
329
|
-
style: styles.fontLoading,
|
|
330
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
331
|
-
size: "large",
|
|
332
|
-
color: _index.Colors.spareBlue
|
|
333
|
-
})
|
|
334
|
-
})
|
|
290
|
+
children: modalBody
|
|
335
291
|
}) : null]
|
|
336
292
|
})
|
|
337
293
|
})]
|
|
@@ -351,4 +307,34 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
351
307
|
justifyContent: 'center'
|
|
352
308
|
}
|
|
353
309
|
});
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Lifts what the return reported onto the result the caller awaits.
|
|
313
|
+
*
|
|
314
|
+
* `errorCode` is not among them: a failure's code has a fallback the report does
|
|
315
|
+
* not, so it is set where the failure is built.
|
|
316
|
+
*/
|
|
317
|
+
function reportedFields(report) {
|
|
318
|
+
if (!report) return {};
|
|
319
|
+
return {
|
|
320
|
+
...(report.merchantRef ? {
|
|
321
|
+
merchantRef: report.merchantRef
|
|
322
|
+
} : {}),
|
|
323
|
+
...(report.paymentId ? {
|
|
324
|
+
paymentId: report.paymentId
|
|
325
|
+
} : {}),
|
|
326
|
+
...(report.mandateId ? {
|
|
327
|
+
mandateId: report.mandateId
|
|
328
|
+
} : {}),
|
|
329
|
+
...(report.signature ? {
|
|
330
|
+
signature: report.signature
|
|
331
|
+
} : {}),
|
|
332
|
+
...(report.errorReason ? {
|
|
333
|
+
errorReason: report.errorReason
|
|
334
|
+
} : {}),
|
|
335
|
+
...(report.errorDescription ? {
|
|
336
|
+
message: report.errorDescription
|
|
337
|
+
} : {})
|
|
338
|
+
};
|
|
339
|
+
}
|
|
354
340
|
//# sourceMappingURL=spare-link-host.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeScreens","_linkApiClient","_paymentReturnParams","_executeResumeIfNeeded","_paymentFlowController","_redirectBuffer","_userFriendlyMessages","_bankRedirect","_logger","_telemetryCollector","_paymentResult","_spareLinkConfig","_spareLinkEvent","_spareLinkInstance","_paymentFlowPage","_index","_fonts","_modalDismissButton","_jsxRuntime","enableScreens","log","createLogger","SpareLinkHost","props","spareLink","showDismissButton","launchBankRedirect","pendingSessionStore","fontsLoaded","useLinkFonts","active","setActive","useState","activeRef","useRef","useEffect","current","emitMappedEvent","useCallback","linkToken","event","linkSessionId","emitEvent","SpareLinkEvents","sessionLoaded","consentStarted","redirectToBank","bankCallbackReceived","close","flow","result","clear","catch","warning","resolve","controller","dispose","startFlow","args","paymentFailed","errorCode","message","resolvedAtMs","Date","now","info","tenant","environment","PaymentFlowController","sessionToken","apiClient","LinkApiClient","baseUrl","resolvedBaseUrl","tenantCountryCode","fetch","requestTimeoutMs","undefined","collectTelemetry","onEvent","state","onSessionLoaded","hydrate","err","severe","Error","String","handleRedirect","uri","asString","toString","isPaymentReturnCallbackUri","fine","setBufferedRedirect","handleCallback","openRecoveryFlow","initialized","resumeIfNeeded","noRecovery","flowOpened","openedLinkToken","terminal","executeResumeIfNeeded","config","isFlowActive","emitTerminal","kind","mapHostRecovery","detach","_attachHost","onResolved","s","phase","paymentSuccess","exchangeCode","merchantRef","selectedProvider","bankId","id","session","request","type","paymentType","userFriendlyMessageFor","paymentCancelled","paymentAbandoned","onDismissPressed","abandoned","cancel","finally","launcher","useMemo","defaultLaunchBankRedirect","jsxs","Fragment","children","jsx","Modal","animationType","visible","onRequestClose","presentationStyle","testID","SafeAreaView","accessibilityViewIsModal","accessibilityRole","style","styles","modalRoot","ModalDismissButton","onPress","View","flowWrap","PaymentFlowPage","fontLoading","ActivityIndicator","size","color","Colors","spareBlue","StyleSheet","create","flex","backgroundColor","surfacePage","alignItems","justifyContent"],"sourceRoot":"../../../src","sources":["ui/spare-link-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,oBAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AACA,IAAAM,sBAAA,GAAAN,OAAA;AAEA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,qBAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AAEA,IAAAY,cAAA,GAAAZ,OAAA;AAOA,IAAAa,gBAAA,GAAAb,OAAA;AACA,IAAAc,eAAA,GAAAd,OAAA;AACA,IAAAe,kBAAA,GAAAf,OAAA;AACA,IAAAgB,gBAAA,GAAAhB,OAAA;AACA,IAAAiB,MAAA,GAAAjB,OAAA;AACA,IAAAkB,MAAA,GAAAlB,OAAA;AACA,IAAAmB,mBAAA,GAAAnB,OAAA;AAAoE,IAAAoB,WAAA,GAAApB,OAAA;AAEpE,IAAAqB,iCAAa,EAAC,CAAC;AAEf,MAAMC,GAAG,GAAG,IAAAC,oBAAY,EAAC,eAAe,CAAC;AAsBzC;AACA;AACA;AACA;AACO,SAASC,a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CAAC;IAAEC,eAAe,EAAEL,aAAM,CAACM;EAAY,CAAC;EAC3DZ,QAAQ,EAAE;IAAEU,IAAI,EAAE;EAAE,CAAC;EACrBR,WAAW,EAAE;IAAEQ,IAAI,EAAE,CAAC;IAAEG,UAAU,EAAE,QAAQ;IAAEC,cAAc,EAAE;EAAS;AACzE,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeSafeAreaContext","_reactNativeScreens","_paymentReturnParams","_hostedFlowController","_logger","_redactUri","_paymentResult","_spareLinkEvent","_spareLinkInstance","_hostedPaymentPage","_index","_fonts","_modalDismissButton","_jsxRuntime","enableScreens","log","createLogger","SpareLinkHost","props","spareLink","showDismissButton","launchBankRedirect","pendingSessionStore","fontsLoaded","useLinkFonts","active","setActive","useState","activeRef","useRef","bufferedRedirect","useEffect","current","persistQueue","Promise","resolve","enqueuePersist","useCallback","op","next","then","catch","undefined","clearPending","clear","warning","close","flow","result","controller","dispose","resultFor","s","state","base","reference","reportedFields","report","resolvedAtMs","Date","now","phase","paymentSuccess","paymentCancelled","paymentFailed","errorCode","paymentAbandoned","onResolved","startFlow","args","message","info","tenant","environment","HostedFlowController","bankLauncher","subscribe","emitEvent","SpareLinkEvents","pageReady","redirectToBank","present","buffered","handleReturn","save","finally","handleRedirect","uri","asString","toString","redactPaymentReturnUri","isPaymentReturnCallbackUri","bankCallbackReceived","resumeIfNeeded","noRecovery","record","load","outcome","readPaymentReturn","emitTerminal","kind","detach","_attachHost","isFlowActive","onDismissPressed","abandon","modalBody","useMemo","jsx","View","style","styles","fontLoading","children","ActivityIndicator","size","color","Colors","spareBlue","HostedPaymentPage","baseUrl","resolvedBaseUrl","jsxs","Fragment","Modal","animationType","visible","onRequestClose","presentationStyle","testID","SafeAreaView","accessibilityViewIsModal","accessibilityRole","modalRoot","ModalDismissButton","onPress","flowWrap","StyleSheet","create","flex","backgroundColor","surfacePage","alignItems","justifyContent","merchantRef","paymentId","mandateId","signature","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AAG,CAAC,CAAC,CAAC;IAClE,IAAI3F,MAAM,CAAC4F,gBAAgB,GAAG;MAAE/E,OAAO,EAAEb,MAAM,CAAC4F;IAAiB,CAAC,GAAG,CAAC,CAAC;EACzE,CAAC;AACH","ignoreList":[]}
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "CustomStepper", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _stepper.CustomStepper;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "Footer", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function () {
|
|
@@ -27,15 +21,14 @@ Object.defineProperty(exports, "HandoffScreenLayout", {
|
|
|
27
21
|
return _handoffScreenLayout.HandoffScreenLayout;
|
|
28
22
|
}
|
|
29
23
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "ModalDismissButton", {
|
|
31
25
|
enumerable: true,
|
|
32
26
|
get: function () {
|
|
33
|
-
return
|
|
27
|
+
return _modalDismissButton.ModalDismissButton;
|
|
34
28
|
}
|
|
35
29
|
});
|
|
36
|
-
var _stepper = require("./stepper.js");
|
|
37
|
-
var _layoutWHeader = require("./layout-w-header.js");
|
|
38
30
|
var _footer = require("./footer.js");
|
|
39
31
|
var _gradientSpinner = require("./gradient-spinner.js");
|
|
40
32
|
var _handoffScreenLayout = require("./handoff-screen-layout.js");
|
|
33
|
+
var _modalDismissButton = require("./modal-dismiss-button.js");
|
|
41
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_footer","require","_gradientSpinner","_handoffScreenLayout","_modalDismissButton"],"sourceRoot":"../../../../src","sources":["ui/widgets/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA","ignoreList":[]}
|
package/lib/commonjs/version.js
CHANGED
|
@@ -12,5 +12,5 @@ exports.SDK_VERSION = void 0;
|
|
|
12
12
|
* `changeset version`). The src/index.ts smoke test asserts this matches
|
|
13
13
|
* package.json's version.
|
|
14
14
|
*/
|
|
15
|
-
const SDK_VERSION = exports.SDK_VERSION = '
|
|
15
|
+
const SDK_VERSION = exports.SDK_VERSION = '1.0.0';
|
|
16
16
|
//# sourceMappingURL=version.js.map
|