@payos-inc/payos-react 1.0.42-staging.83 → 1.2.0-staging.100
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/LICENSE +96 -0
- package/README.md +160 -0
- package/dist/THIRD_PARTY_NOTICES.txt +549 -0
- package/dist/payos-react.cjs +50 -0
- package/dist/payos-react.css +1 -1
- package/dist/payos-react.esm.js +18 -12
- package/dist/payos-react.min.js +2 -1
- package/dist/payos-react.mjs +50 -0
- package/dist/types/index.d.ts +1 -57
- package/dist/types/payos-passkey-js/src/api/ApiClient.d.ts +48 -0
- package/dist/types/payos-passkey-js/src/core/PayOSPasskey.d.ts +165 -0
- package/dist/types/payos-passkey-js/src/core/sessionFlow.d.ts +48 -0
- package/dist/types/payos-passkey-js/src/core/types.d.ts +183 -0
- package/dist/types/payos-passkey-js/src/index.d.ts +10 -0
- package/dist/types/payos-passkey-js/src/services/mastercard/MastercardSDKService.d.ts +61 -0
- package/dist/types/payos-passkey-js/src/services/visa/VisaSDKService.d.ts +90 -0
- package/dist/types/payos-passkey-js/src/utils/diagnostics.d.ts +30 -0
- package/dist/types/payos-passkey-js/src/utils/logger.d.ts +36 -0
- package/dist/types/payos-passkey-js/src/version.d.ts +5 -0
- package/dist/{components → types/payos-react/src/components}/payos/ActiveCardWidget.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/AgentRegistrationFlow.d.ts +1 -3
- package/dist/{components → types/payos-react/src/components}/payos/ConnectStripeLinkButton.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/IdentityVerificationFlow.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/LinkPaymentFlow.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/LinkSessionContent.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/PayOSFooter.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/PayWithLinkButton.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/PaymentMethodRow.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/PaymentSheet.d.ts +3 -4
- package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetContent.d.ts +6 -4
- package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetPaymentFlow.d.ts +4 -2
- package/dist/{components → types/payos-react/src/components}/payos/PaymentSheetShell.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/PaymentSheetStatusViews.d.ts +3 -2
- package/dist/types/{components → payos-react/src/components}/payos/PriceTag.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/ReceiptPanel.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/ViewHeader.d.ts +2 -1
- package/dist/types/{components → payos-react/src/components}/payos/drawer.d.ts +5 -2
- package/dist/{components → types/payos-react/src/components}/payos/order-summary.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/otp-input.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/phone-input.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/themeMode.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetDisplayData.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/usePaymentSheetLifecycle.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToAuth.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/usePaymentSheetSkipToLink.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/AgentRegistrationView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/CardAddView.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/payos/views/CheckoutView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/IdentityView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/LinkBrand.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/LinkCheckoutView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/LinkConnectView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/LinkDeniedView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/LinkLoadingView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/LinkSuccessView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/ManageThirdPartyView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/MethodListView.d.ts +8 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/OTPView.d.ts +0 -1
- package/dist/types/payos-react/src/components/payos/views/ShareCardsView.d.ts +28 -0
- package/dist/types/{components → payos-react/src/components}/payos/views/SuccessView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/VisaIframeView.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/payos/views/VisaMethodView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/VisaOtpView.d.ts +0 -1
- package/dist/{components → types/payos-react/src/components}/payos/views/WelcomeBackView.d.ts +0 -1
- package/dist/types/payos-react/src/components/ui/CardArt.d.ts +22 -0
- package/dist/types/{components → payos-react/src/components}/ui/CardBrandIcon.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/ui/ConfirmDialog.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/ui/DigitalCard.d.ts +0 -1
- package/dist/types/payos-react/src/components/ui/HelpPopover.d.ts +17 -0
- package/dist/types/{components → payos-react/src/components}/ui/button.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/ui/card.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/ui/input.d.ts +0 -1
- package/dist/types/{components → payos-react/src/components}/ui/label.d.ts +1 -2
- package/dist/types/{components → payos-react/src/components}/ui/separator.d.ts +0 -1
- package/dist/{hooks → types/payos-react/src/hooks}/useBiometricType.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useBodyScrollLock.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useCardElement.d.ts +1 -2
- package/dist/types/{hooks → payos-react/src/hooks}/useLinkAuth.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useLinkDeviceAuthPoll.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useLinkMethods.d.ts +0 -1
- package/dist/{hooks → types/payos-react/src/hooks}/useLinkSession.d.ts +0 -1
- package/dist/{hooks → types/payos-react/src/hooks}/useLinkSpendStatusPoll.d.ts +0 -1
- package/dist/types/{hooks → payos-react/src/hooks}/usePasskeySDK.d.ts +2 -4
- package/dist/{hooks → types/payos-react/src/hooks}/useSession.d.ts +14 -1
- package/dist/types/{hooks → payos-react/src/hooks}/useVisualViewport.d.ts +0 -1
- package/dist/{index.d.ts → types/payos-react/src/index.d.ts} +3 -4
- package/dist/{lib → types/payos-react/src/lib}/utils.d.ts +0 -1
- package/dist/{services → types/payos-react/src/services}/apiService.d.ts +14 -3
- package/dist/{services → types/payos-react/src/services}/linkTokenService.d.ts +0 -1
- package/dist/types/{cardElement.d.ts → payos-react/src/types/cardElement.d.ts} +2 -3
- package/dist/types/{drawer.d.ts → payos-react/src/types/drawer.d.ts} +0 -1
- package/dist/types/{types → payos-react/src/types}/index.d.ts +0 -1
- package/dist/types/{order.d.ts → payos-react/src/types/order.d.ts} +0 -1
- package/dist/types/{types → payos-react/src/types}/payment.d.ts +1 -2
- package/dist/types/{session.d.ts → payos-react/src/types/session.d.ts} +18 -2
- package/dist/types/{utils → payos-react/src/utils}/credentialStatus.d.ts +0 -1
- package/dist/{utils → types/payos-react/src/utils}/deviceFingerprint.d.ts +0 -1
- package/dist/types/payos-react/src/utils/ensureSelectedCardAttached.d.ts +10 -0
- package/dist/types/{utils → payos-react/src/utils}/environment.d.ts +0 -1
- package/dist/{utils → types/payos-react/src/utils}/formatting.d.ts +0 -1
- package/dist/types/{utils → payos-react/src/utils}/linkPopup.d.ts +0 -1
- package/dist/types/payos-react/src/utils/organizationName.d.ts +8 -0
- package/dist/types/{utils → payos-react/src/utils}/selectCard.d.ts +0 -1
- package/dist/types/{utils → payos-react/src/utils}/text.d.ts +0 -1
- package/dist/{utils → types/payos-react/src/utils}/validation.d.ts +0 -1
- package/package.json +38 -13
- package/dist/components/identity/IdentityBar.d.ts +0 -8
- package/dist/components/identity/IdentityBar.d.ts.map +0 -1
- package/dist/components/order/OrderSummaryAccordion.d.ts +0 -9
- package/dist/components/order/OrderSummaryAccordion.d.ts.map +0 -1
- package/dist/components/order/ShipmentCard.d.ts +0 -8
- package/dist/components/order/ShipmentCard.d.ts.map +0 -1
- package/dist/components/payos/ActiveCardWidget.d.ts.map +0 -1
- package/dist/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
- package/dist/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
- package/dist/components/payos/IdentityVerificationFlow.d.ts +0 -26
- package/dist/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
- package/dist/components/payos/LinkPaymentFlow.d.ts.map +0 -1
- package/dist/components/payos/LinkSessionContent.d.ts.map +0 -1
- package/dist/components/payos/PayOSFooter.d.ts +0 -25
- package/dist/components/payos/PayOSFooter.d.ts.map +0 -1
- package/dist/components/payos/PayWithLinkButton.d.ts +0 -74
- package/dist/components/payos/PayWithLinkButton.d.ts.map +0 -1
- package/dist/components/payos/PaymentMethodRow.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheet.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetContent.d.ts +0 -80
- package/dist/components/payos/PaymentSheetContent.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetPaymentFlow.d.ts +0 -43
- package/dist/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetShell.d.ts.map +0 -1
- package/dist/components/payos/PaymentSheetStatusViews.d.ts +0 -28
- package/dist/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
- package/dist/components/payos/PriceTag.d.ts +0 -64
- package/dist/components/payos/PriceTag.d.ts.map +0 -1
- package/dist/components/payos/ReceiptPanel.d.ts +0 -67
- package/dist/components/payos/ReceiptPanel.d.ts.map +0 -1
- package/dist/components/payos/ViewHeader.d.ts +0 -9
- package/dist/components/payos/ViewHeader.d.ts.map +0 -1
- package/dist/components/payos/drawer.d.ts +0 -107
- package/dist/components/payos/drawer.d.ts.map +0 -1
- package/dist/components/payos/order-summary.d.ts.map +0 -1
- package/dist/components/payos/otp-input.d.ts.map +0 -1
- package/dist/components/payos/phone-input.d.ts +0 -30
- package/dist/components/payos/phone-input.d.ts.map +0 -1
- package/dist/components/payos/themeMode.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetDebug.d.ts +0 -22
- package/dist/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetDisplayData.d.ts +0 -29
- package/dist/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetLifecycle.d.ts +0 -39
- package/dist/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
- package/dist/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
- package/dist/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
- package/dist/components/payos/views/CardAddView.d.ts +0 -101
- package/dist/components/payos/views/CardAddView.d.ts.map +0 -1
- package/dist/components/payos/views/CheckoutView.d.ts +0 -95
- package/dist/components/payos/views/CheckoutView.d.ts.map +0 -1
- package/dist/components/payos/views/IdentityView.d.ts +0 -51
- package/dist/components/payos/views/IdentityView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkBrand.d.ts.map +0 -1
- package/dist/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkConnectView.d.ts +0 -18
- package/dist/components/payos/views/LinkConnectView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkDeniedView.d.ts +0 -13
- package/dist/components/payos/views/LinkDeniedView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkLoadingView.d.ts.map +0 -1
- package/dist/components/payos/views/LinkSuccessView.d.ts +0 -11
- package/dist/components/payos/views/LinkSuccessView.d.ts.map +0 -1
- package/dist/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
- package/dist/components/payos/views/MethodListView.d.ts.map +0 -1
- package/dist/components/payos/views/OTPView.d.ts +0 -69
- package/dist/components/payos/views/OTPView.d.ts.map +0 -1
- package/dist/components/payos/views/SuccessView.d.ts +0 -49
- package/dist/components/payos/views/SuccessView.d.ts.map +0 -1
- package/dist/components/payos/views/VisaIframeView.d.ts.map +0 -1
- package/dist/components/payos/views/VisaMethodView.d.ts +0 -23
- package/dist/components/payos/views/VisaMethodView.d.ts.map +0 -1
- package/dist/components/payos/views/VisaOtpView.d.ts.map +0 -1
- package/dist/components/payos/views/WelcomeBackView.d.ts.map +0 -1
- package/dist/components/ui/CardBrandIcon.d.ts +0 -10
- package/dist/components/ui/CardBrandIcon.d.ts.map +0 -1
- package/dist/components/ui/ConfirmDialog.d.ts +0 -25
- package/dist/components/ui/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/ui/DigitalCard.d.ts +0 -13
- package/dist/components/ui/DigitalCard.d.ts.map +0 -1
- package/dist/components/ui/InfoTooltip.d.ts +0 -8
- package/dist/components/ui/InfoTooltip.d.ts.map +0 -1
- package/dist/components/ui/PinInput.d.ts +0 -12
- package/dist/components/ui/PinInput.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts +0 -14
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -15
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -6
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts +0 -6
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -8
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useBiometricType.d.ts.map +0 -1
- package/dist/hooks/useBodyScrollLock.d.ts +0 -32
- package/dist/hooks/useBodyScrollLock.d.ts.map +0 -1
- package/dist/hooks/useCardElement.d.ts +0 -135
- package/dist/hooks/useCardElement.d.ts.map +0 -1
- package/dist/hooks/useCheckoutFlow.d.ts +0 -29
- package/dist/hooks/useCheckoutFlow.d.ts.map +0 -1
- package/dist/hooks/useDrawerState.d.ts +0 -4
- package/dist/hooks/useDrawerState.d.ts.map +0 -1
- package/dist/hooks/useLinkAuth.d.ts +0 -24
- package/dist/hooks/useLinkAuth.d.ts.map +0 -1
- package/dist/hooks/useLinkDeviceAuthPoll.d.ts +0 -29
- package/dist/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
- package/dist/hooks/useLinkMethods.d.ts +0 -28
- package/dist/hooks/useLinkMethods.d.ts.map +0 -1
- package/dist/hooks/useLinkSession.d.ts.map +0 -1
- package/dist/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
- package/dist/hooks/usePasskeySDK.d.ts +0 -103
- package/dist/hooks/usePasskeySDK.d.ts.map +0 -1
- package/dist/hooks/useSession.d.ts.map +0 -1
- package/dist/hooks/useVisualViewport.d.ts +0 -15
- package/dist/hooks/useVisualViewport.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/theme.d.ts +0 -53
- package/dist/lib/theme.d.ts.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/mocks/index.d.ts +0 -3
- package/dist/mocks/index.d.ts.map +0 -1
- package/dist/mocks/mockCheckoutFlow.d.ts +0 -25
- package/dist/mocks/mockCheckoutFlow.d.ts.map +0 -1
- package/dist/mocks/mockData.d.ts +0 -6
- package/dist/mocks/mockData.d.ts.map +0 -1
- package/dist/mocks/mockSessionData.d.ts +0 -38
- package/dist/mocks/mockSessionData.d.ts.map +0 -1
- package/dist/services/apiService.d.ts.map +0 -1
- package/dist/services/linkTokenService.d.ts.map +0 -1
- package/dist/services/mockSessionService.d.ts +0 -65
- package/dist/services/mockSessionService.d.ts.map +0 -1
- package/dist/types/cardElement.d.ts.map +0 -1
- package/dist/types/components/identity/IdentityBar.d.ts +0 -8
- package/dist/types/components/identity/IdentityBar.d.ts.map +0 -1
- package/dist/types/components/order/OrderSummaryAccordion.d.ts +0 -9
- package/dist/types/components/order/OrderSummaryAccordion.d.ts.map +0 -1
- package/dist/types/components/order/ShipmentCard.d.ts +0 -8
- package/dist/types/components/order/ShipmentCard.d.ts.map +0 -1
- package/dist/types/components/payos/ActiveCardWidget.d.ts +0 -60
- package/dist/types/components/payos/ActiveCardWidget.d.ts.map +0 -1
- package/dist/types/components/payos/AgentRegistrationFlow.d.ts +0 -24
- package/dist/types/components/payos/AgentRegistrationFlow.d.ts.map +0 -1
- package/dist/types/components/payos/ConnectStripeLinkButton.d.ts +0 -41
- package/dist/types/components/payos/ConnectStripeLinkButton.d.ts.map +0 -1
- package/dist/types/components/payos/IdentityVerificationFlow.d.ts.map +0 -1
- package/dist/types/components/payos/LinkPaymentFlow.d.ts +0 -11
- package/dist/types/components/payos/LinkPaymentFlow.d.ts.map +0 -1
- package/dist/types/components/payos/LinkSessionContent.d.ts +0 -19
- package/dist/types/components/payos/LinkSessionContent.d.ts.map +0 -1
- package/dist/types/components/payos/PayOSFooter.d.ts.map +0 -1
- package/dist/types/components/payos/PayWithLinkButton.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentMethodRow.d.ts +0 -53
- package/dist/types/components/payos/PaymentMethodRow.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheet.d.ts +0 -121
- package/dist/types/components/payos/PaymentSheet.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetContent.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetPaymentFlow.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetShell.d.ts +0 -25
- package/dist/types/components/payos/PaymentSheetShell.d.ts.map +0 -1
- package/dist/types/components/payos/PaymentSheetStatusViews.d.ts.map +0 -1
- package/dist/types/components/payos/PriceTag.d.ts.map +0 -1
- package/dist/types/components/payos/ReceiptPanel.d.ts.map +0 -1
- package/dist/types/components/payos/ViewHeader.d.ts.map +0 -1
- package/dist/types/components/payos/drawer.d.ts.map +0 -1
- package/dist/types/components/payos/order-summary.d.ts +0 -44
- package/dist/types/components/payos/order-summary.d.ts.map +0 -1
- package/dist/types/components/payos/otp-input.d.ts +0 -45
- package/dist/types/components/payos/otp-input.d.ts.map +0 -1
- package/dist/types/components/payos/phone-input.d.ts.map +0 -1
- package/dist/types/components/payos/themeMode.d.ts +0 -6
- package/dist/types/components/payos/themeMode.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetDebug.d.ts +0 -22
- package/dist/types/components/payos/usePaymentSheetDebug.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetDisplayData.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetLifecycle.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts +0 -18
- package/dist/types/components/payos/usePaymentSheetSkipToAuth.d.ts.map +0 -1
- package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts +0 -14
- package/dist/types/components/payos/usePaymentSheetSkipToLink.d.ts.map +0 -1
- package/dist/types/components/payos/views/AgentRegistrationView.d.ts +0 -61
- package/dist/types/components/payos/views/AgentRegistrationView.d.ts.map +0 -1
- package/dist/types/components/payos/views/CardAddView.d.ts.map +0 -1
- package/dist/types/components/payos/views/CheckoutView.d.ts.map +0 -1
- package/dist/types/components/payos/views/IdentityView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkBrand.d.ts +0 -13
- package/dist/types/components/payos/views/LinkBrand.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkCheckoutView.d.ts +0 -31
- package/dist/types/components/payos/views/LinkCheckoutView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkConnectView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkDeniedView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkLoadingView.d.ts +0 -11
- package/dist/types/components/payos/views/LinkLoadingView.d.ts.map +0 -1
- package/dist/types/components/payos/views/LinkSuccessView.d.ts.map +0 -1
- package/dist/types/components/payos/views/ManageThirdPartyView.d.ts +0 -19
- package/dist/types/components/payos/views/ManageThirdPartyView.d.ts.map +0 -1
- package/dist/types/components/payos/views/MethodListView.d.ts +0 -116
- package/dist/types/components/payos/views/MethodListView.d.ts.map +0 -1
- package/dist/types/components/payos/views/OTPView.d.ts.map +0 -1
- package/dist/types/components/payos/views/SuccessView.d.ts.map +0 -1
- package/dist/types/components/payos/views/VisaIframeView.d.ts +0 -16
- package/dist/types/components/payos/views/VisaIframeView.d.ts.map +0 -1
- package/dist/types/components/payos/views/VisaMethodView.d.ts.map +0 -1
- package/dist/types/components/payos/views/VisaOtpView.d.ts +0 -45
- package/dist/types/components/payos/views/VisaOtpView.d.ts.map +0 -1
- package/dist/types/components/payos/views/WelcomeBackView.d.ts +0 -34
- package/dist/types/components/payos/views/WelcomeBackView.d.ts.map +0 -1
- package/dist/types/components/ui/CardBrandIcon.d.ts.map +0 -1
- package/dist/types/components/ui/ConfirmDialog.d.ts.map +0 -1
- package/dist/types/components/ui/DigitalCard.d.ts.map +0 -1
- package/dist/types/components/ui/InfoTooltip.d.ts +0 -8
- package/dist/types/components/ui/InfoTooltip.d.ts.map +0 -1
- package/dist/types/components/ui/PinInput.d.ts +0 -12
- package/dist/types/components/ui/PinInput.d.ts.map +0 -1
- package/dist/types/components/ui/button.d.ts.map +0 -1
- package/dist/types/components/ui/card.d.ts.map +0 -1
- package/dist/types/components/ui/input.d.ts.map +0 -1
- package/dist/types/components/ui/label.d.ts.map +0 -1
- package/dist/types/components/ui/separator.d.ts.map +0 -1
- package/dist/types/drawer.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts +0 -8
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/useBiometricType.d.ts +0 -21
- package/dist/types/hooks/useBiometricType.d.ts.map +0 -1
- package/dist/types/hooks/useBodyScrollLock.d.ts.map +0 -1
- package/dist/types/hooks/useCardElement.d.ts.map +0 -1
- package/dist/types/hooks/useCheckoutFlow.d.ts +0 -29
- package/dist/types/hooks/useCheckoutFlow.d.ts.map +0 -1
- package/dist/types/hooks/useDrawerState.d.ts +0 -4
- package/dist/types/hooks/useDrawerState.d.ts.map +0 -1
- package/dist/types/hooks/useLinkAuth.d.ts.map +0 -1
- package/dist/types/hooks/useLinkDeviceAuthPoll.d.ts.map +0 -1
- package/dist/types/hooks/useLinkMethods.d.ts.map +0 -1
- package/dist/types/hooks/useLinkSession.d.ts +0 -81
- package/dist/types/hooks/useLinkSession.d.ts.map +0 -1
- package/dist/types/hooks/useLinkSpendStatusPoll.d.ts +0 -28
- package/dist/types/hooks/useLinkSpendStatusPoll.d.ts.map +0 -1
- package/dist/types/hooks/usePasskeySDK.d.ts.map +0 -1
- package/dist/types/hooks/useSession.d.ts +0 -87
- package/dist/types/hooks/useSession.d.ts.map +0 -1
- package/dist/types/hooks/useVisualViewport.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/lib/theme.d.ts +0 -53
- package/dist/types/lib/theme.d.ts.map +0 -1
- package/dist/types/lib/utils.d.ts +0 -3
- package/dist/types/lib/utils.d.ts.map +0 -1
- package/dist/types/mocks/index.d.ts +0 -3
- package/dist/types/mocks/index.d.ts.map +0 -1
- package/dist/types/mocks/mockCheckoutFlow.d.ts +0 -25
- package/dist/types/mocks/mockCheckoutFlow.d.ts.map +0 -1
- package/dist/types/mocks/mockData.d.ts +0 -6
- package/dist/types/mocks/mockData.d.ts.map +0 -1
- package/dist/types/mocks/mockSessionData.d.ts +0 -38
- package/dist/types/mocks/mockSessionData.d.ts.map +0 -1
- package/dist/types/order.d.ts.map +0 -1
- package/dist/types/payment.d.ts +0 -55
- package/dist/types/payment.d.ts.map +0 -1
- package/dist/types/services/apiService.d.ts +0 -406
- package/dist/types/services/apiService.d.ts.map +0 -1
- package/dist/types/services/linkTokenService.d.ts +0 -7
- package/dist/types/services/linkTokenService.d.ts.map +0 -1
- package/dist/types/services/mockSessionService.d.ts +0 -65
- package/dist/types/services/mockSessionService.d.ts.map +0 -1
- package/dist/types/session.d.ts.map +0 -1
- package/dist/types/types/cardElement.d.ts +0 -157
- package/dist/types/types/cardElement.d.ts.map +0 -1
- package/dist/types/types/drawer.d.ts +0 -33
- package/dist/types/types/drawer.d.ts.map +0 -1
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/order.d.ts +0 -25
- package/dist/types/types/order.d.ts.map +0 -1
- package/dist/types/types/payment.d.ts.map +0 -1
- package/dist/types/types/session.d.ts +0 -165
- package/dist/types/types/session.d.ts.map +0 -1
- package/dist/types/utils/credentialStatus.d.ts.map +0 -1
- package/dist/types/utils/deviceFingerprint.d.ts +0 -27
- package/dist/types/utils/deviceFingerprint.d.ts.map +0 -1
- package/dist/types/utils/environment.d.ts.map +0 -1
- package/dist/types/utils/formatting.d.ts +0 -41
- package/dist/types/utils/formatting.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -4
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/linkFormat.d.ts +0 -17
- package/dist/types/utils/linkFormat.d.ts.map +0 -1
- package/dist/types/utils/linkPopup.d.ts.map +0 -1
- package/dist/types/utils/selectCard.d.ts.map +0 -1
- package/dist/types/utils/text.d.ts.map +0 -1
- package/dist/types/utils/validation.d.ts +0 -90
- package/dist/types/utils/validation.d.ts.map +0 -1
- package/dist/utils/credentialStatus.d.ts +0 -8
- package/dist/utils/credentialStatus.d.ts.map +0 -1
- package/dist/utils/deviceFingerprint.d.ts.map +0 -1
- package/dist/utils/environment.d.ts +0 -22
- package/dist/utils/environment.d.ts.map +0 -1
- package/dist/utils/formatting.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/linkFormat.d.ts +0 -17
- package/dist/utils/linkFormat.d.ts.map +0 -1
- package/dist/utils/linkPopup.d.ts +0 -19
- package/dist/utils/linkPopup.d.ts.map +0 -1
- package/dist/utils/selectCard.d.ts +0 -18
- package/dist/utils/selectCard.d.ts.map +0 -1
- package/dist/utils/text.d.ts +0 -12
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/validation.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayOSFooter.d.ts","sourceRoot":"","sources":["../../../src/components/payos/PayOSFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,yFA4BvB,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PayWithLinkButton — drop-in "Pay with Link" CTA for merchant pages that
|
|
3
|
-
* embed PayOS CardElement directly (instead of using PaymentSheet).
|
|
4
|
-
*
|
|
5
|
-
* Renders a button + an internal modal that runs the connect → method-select
|
|
6
|
-
* → spend-approve flow. Once Link approves, merchants can generate/retrieve
|
|
7
|
-
* credentials for the payment intent; once PayOS consumes the approved spend,
|
|
8
|
-
* the final success callback fires.
|
|
9
|
-
* Vanilla-JS consumers can either:
|
|
10
|
-
* - Mount this component into a host node themselves, or
|
|
11
|
-
* - Reach into apiService directly and manage the flow imperatively.
|
|
12
|
-
*/
|
|
13
|
-
import { type PayOSThemeMode } from './themeMode';
|
|
14
|
-
export interface PayWithLinkButtonProps {
|
|
15
|
-
/** API base URL, same one used for CardElement / PaymentSheet. */
|
|
16
|
-
apiBaseUrl: string;
|
|
17
|
-
/** Merchant link token (Bearer). */
|
|
18
|
-
sessionSecret: string;
|
|
19
|
-
/** Wallet user identifier (after OTP / passkey). */
|
|
20
|
-
walletUserId: string;
|
|
21
|
-
/** Payment intent the spend will be tied to. */
|
|
22
|
-
paymentIntent: {
|
|
23
|
-
id: string;
|
|
24
|
-
/** intent_payments.id for the single merchant transaction to approve. */
|
|
25
|
-
paymentId: string;
|
|
26
|
-
amount: number;
|
|
27
|
-
currency?: string;
|
|
28
|
-
};
|
|
29
|
-
/** Originating org for analytics (optional). */
|
|
30
|
-
organizationId?: string;
|
|
31
|
-
/**
|
|
32
|
-
* PayOS saved-card ID for a Stripe Link card. Pass this when your app
|
|
33
|
-
* already listed wallet cards with include=stripe_link and the user picked
|
|
34
|
-
* one in your own UI. The button will skip its Link card picker and approve
|
|
35
|
-
* this card directly.
|
|
36
|
-
*/
|
|
37
|
-
cardId?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Called when Link spend approval succeeds. Generate/retrieve PayOS
|
|
40
|
-
* credentials for paymentIntent.id from here. The button keeps polling until
|
|
41
|
-
* the approved spend is consumed, then fires onSuccess.
|
|
42
|
-
*/
|
|
43
|
-
onApproved?: (result: {
|
|
44
|
-
spendRowId: string;
|
|
45
|
-
paymentIntentId: string;
|
|
46
|
-
paymentId: string;
|
|
47
|
-
}) => Promise<void> | void;
|
|
48
|
-
/** Called when the spend is approved AND consumed (credential generated). */
|
|
49
|
-
onSuccess: (result: {
|
|
50
|
-
spendRowId: string;
|
|
51
|
-
}) => void;
|
|
52
|
-
/** Called when the user denies / expires / errors. */
|
|
53
|
-
onDenied?: (reason: string) => void;
|
|
54
|
-
/** Optional className for the trigger button. */
|
|
55
|
-
className?: string;
|
|
56
|
-
/** Optional label override. Default: "Pay with". */
|
|
57
|
-
label?: string;
|
|
58
|
-
/** Theme preset for the standalone modal. Defaults to host page theme. */
|
|
59
|
-
theme?: PayOSThemeMode;
|
|
60
|
-
/**
|
|
61
|
-
* When true, the spend request runs as a test transaction (no money moves).
|
|
62
|
-
* Use in dev/test environments only. Defaults to false.
|
|
63
|
-
*/
|
|
64
|
-
testMode?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Description shown to the user in Stripe Link's approval popup.
|
|
67
|
-
* Stripe requires min 100 characters. If shorter or omitted, backend
|
|
68
|
-
* generates a default.
|
|
69
|
-
*/
|
|
70
|
-
linkSpendContext?: string;
|
|
71
|
-
}
|
|
72
|
-
export declare function PayWithLinkButton(props: PayWithLinkButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
-
export default PayWithLinkButton;
|
|
74
|
-
//# sourceMappingURL=PayWithLinkButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayWithLinkButton.d.ts","sourceRoot":"","sources":["../../../src/components/payos/PayWithLinkButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAQH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,sBAAsB;IACrC,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,aAAa,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,yEAAyE;QACzE,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,eAAe,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC;KACnB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3B,6EAA6E;IAC7E,SAAS,EAAE,CAAC,MAAM,EAAE;QAAE,UAA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OAAO,CAAC;IAChC;;;;OAIG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAE5C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAE5C;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAExC;;;OAGG;IACH,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAE1C;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;CAEnE;AAED,MAAM,WAAW,6BAA6B;IAC5C,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,CAAC,EAAE,OAAO,GAAG,6BAA6B,CAAC;CACtD;AA+BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2rBpD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
|
|
3
|
-
import type { UsePasskeySDKReturn } from '../../hooks/usePasskeySDK';
|
|
4
|
-
import type { RegistrationSubPhase, SessionPhase } from '../../hooks/useSession';
|
|
5
|
-
import type { PaymentView } from '../../types/payment';
|
|
6
|
-
import type { BillingAddress, CardData } from '../../types';
|
|
7
|
-
import type { CheckoutSession, Payment } from '../../types/session';
|
|
8
|
-
import type { CardElementBinWarningEvent, CardElementBinWarningRule } from '../../types/cardElement';
|
|
9
|
-
import type { CountryCode } from './phone-input';
|
|
10
|
-
interface PaymentSheetContentProps {
|
|
11
|
-
phase: SessionPhase;
|
|
12
|
-
session: CheckoutSession | null;
|
|
13
|
-
linkSession: UseLinkSessionReturn;
|
|
14
|
-
linkCheckoutPayment: Payment | null;
|
|
15
|
-
approvalDeadline: number | null;
|
|
16
|
-
errorMessage?: string;
|
|
17
|
-
displayError?: string;
|
|
18
|
-
onClose: () => void;
|
|
19
|
-
onVerifyAgain: () => void;
|
|
20
|
-
skipToAuth: boolean;
|
|
21
|
-
isSetupMode: boolean;
|
|
22
|
-
isAgentMode: boolean;
|
|
23
|
-
skipCredentialGeneration: boolean;
|
|
24
|
-
loading: boolean;
|
|
25
|
-
phoneNumber: string;
|
|
26
|
-
setPhoneNumber: React.Dispatch<React.SetStateAction<string>>;
|
|
27
|
-
selectedCountry: CountryCode;
|
|
28
|
-
setSelectedCountry: React.Dispatch<React.SetStateAction<CountryCode>>;
|
|
29
|
-
otp: string;
|
|
30
|
-
setOTP: React.Dispatch<React.SetStateAction<string>>;
|
|
31
|
-
isResending: boolean;
|
|
32
|
-
resendCooldown: number;
|
|
33
|
-
retryCount: number;
|
|
34
|
-
clearLocalError: () => void;
|
|
35
|
-
clearSessionError: () => void;
|
|
36
|
-
onPhoneSubmit: () => void;
|
|
37
|
-
onOTPSubmit: (code?: string) => void;
|
|
38
|
-
onOTPResend: () => void;
|
|
39
|
-
registrationSubPhase: RegistrationSubPhase;
|
|
40
|
-
passkey: UsePasskeySDKReturn;
|
|
41
|
-
debug: boolean;
|
|
42
|
-
localError: string | null;
|
|
43
|
-
visaOtp: string;
|
|
44
|
-
setVisaOtp: React.Dispatch<React.SetStateAction<string>>;
|
|
45
|
-
setLocalError: React.Dispatch<React.SetStateAction<string | null>>;
|
|
46
|
-
setRegistrationSubPhase: (subPhase: RegistrationSubPhase) => void;
|
|
47
|
-
onCreatePasskey: () => void;
|
|
48
|
-
onSkipRegistration: () => void;
|
|
49
|
-
onVisaMethodSelect: (methodId: string) => void;
|
|
50
|
-
onVisaOtpVerify: () => void;
|
|
51
|
-
onVisaIframeCancel: () => void;
|
|
52
|
-
onBackToCheckout: () => void;
|
|
53
|
-
hasSelectedCard: boolean;
|
|
54
|
-
hasSavedCards: boolean;
|
|
55
|
-
paymentView: PaymentView;
|
|
56
|
-
cvc: string;
|
|
57
|
-
setCvc: (cvc: string) => void;
|
|
58
|
-
passkeyClosed: boolean;
|
|
59
|
-
isLinkCheckoutAvailable: boolean;
|
|
60
|
-
showShippingAsBilling: boolean;
|
|
61
|
-
cardElementUrl?: string;
|
|
62
|
-
cardElementApiUrl?: string;
|
|
63
|
-
environment: 'sandbox' | 'production';
|
|
64
|
-
theme?: 'dark' | 'black' | 'light' | 'auto';
|
|
65
|
-
cardElementStyles?: Record<string, any>;
|
|
66
|
-
binsWarning?: CardElementBinWarningRule[];
|
|
67
|
-
onBinWarning?: (event: CardElementBinWarningEvent | null) => void;
|
|
68
|
-
setDefaultCard: (cardId: string) => Promise<boolean>;
|
|
69
|
-
showAddCard: () => void;
|
|
70
|
-
deletePaymentCard: (cardId: string) => Promise<boolean>;
|
|
71
|
-
completeSetup: () => Promise<unknown>;
|
|
72
|
-
setPaymentView: (view: PaymentView) => void;
|
|
73
|
-
handleCardAdd: (cardData: CardData, billingAddress: BillingAddress) => void;
|
|
74
|
-
handleCardSelect: (cardId: string) => void;
|
|
75
|
-
handlePaymentSubmit: () => void;
|
|
76
|
-
showMethodList: () => void;
|
|
77
|
-
}
|
|
78
|
-
export declare function PaymentSheetContent({ phase, session, linkSession, linkCheckoutPayment, approvalDeadline, errorMessage, displayError, onClose, onVerifyAgain, skipToAuth, isSetupMode, isAgentMode, skipCredentialGeneration, loading, phoneNumber, setPhoneNumber, selectedCountry, setSelectedCountry, otp, setOTP, isResending, resendCooldown, retryCount, clearLocalError, clearSessionError, onPhoneSubmit, onOTPSubmit, onOTPResend, registrationSubPhase, passkey, debug, localError, visaOtp, setVisaOtp, setLocalError, setRegistrationSubPhase, onCreatePasskey, onSkipRegistration, onVisaMethodSelect, onVisaOtpVerify, onVisaIframeCancel, onBackToCheckout, hasSelectedCard, hasSavedCards, paymentView, cvc, setCvc, passkeyClosed, isLinkCheckoutAvailable, showShippingAsBilling, cardElementUrl, cardElementApiUrl, environment, theme, cardElementStyles, binsWarning, onBinWarning, setDefaultCard, showAddCard, deletePaymentCard, completeSetup, setPaymentView, handleCardAdd, handleCardSelect, handlePaymentSubmit, showMethodList, }: PaymentSheetContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
79
|
-
export {};
|
|
80
|
-
//# sourceMappingURL=PaymentSheetContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSheetContent.d.ts","sourceRoot":"","sources":["../../../src/components/payos/PaymentSheetContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,UAAU,wBAAwB;IAChC,KAAK,E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iB,EACjB,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,GACf,EAAE,wBAAwB,kDA0K1B"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { UseLinkSessionReturn } from '../../hooks/useLinkSession';
|
|
2
|
-
import type { PaymentView } from '../../types/payment';
|
|
3
|
-
import type { BillingAddress, CardData } from '../../types';
|
|
4
|
-
import type { CheckoutSession } from '../../types/session';
|
|
5
|
-
import type { CardElementBinWarningEvent, CardElementBinWarningRule } from '../../types/cardElement';
|
|
6
|
-
interface PaymentSheetPaymentFlowProps {
|
|
7
|
-
session: CheckoutSession;
|
|
8
|
-
isSetupMode: boolean;
|
|
9
|
-
isAgentMode: boolean;
|
|
10
|
-
hasSelectedCard: boolean;
|
|
11
|
-
hasSavedCards: boolean;
|
|
12
|
-
paymentView: PaymentView;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
passkeyLoading: boolean;
|
|
15
|
-
skipToAuth: boolean;
|
|
16
|
-
passkeyClosed: boolean;
|
|
17
|
-
cvc: string;
|
|
18
|
-
setCvc: (cvc: string) => void;
|
|
19
|
-
displayError?: string;
|
|
20
|
-
linkSession: UseLinkSessionReturn;
|
|
21
|
-
isLinkCheckoutAvailable: boolean;
|
|
22
|
-
showShippingAsBilling: boolean;
|
|
23
|
-
cardElementUrl?: string;
|
|
24
|
-
cardElementApiUrl?: string;
|
|
25
|
-
environment: 'sandbox' | 'production';
|
|
26
|
-
theme?: 'dark' | 'black' | 'light' | 'auto';
|
|
27
|
-
cardElementStyles?: Record<string, any>;
|
|
28
|
-
binsWarning?: CardElementBinWarningRule[];
|
|
29
|
-
onBinWarning?: (event: CardElementBinWarningEvent | null) => void;
|
|
30
|
-
clearError: () => void;
|
|
31
|
-
setDefaultCard: (cardId: string) => Promise<boolean>;
|
|
32
|
-
showAddCard: () => void;
|
|
33
|
-
deletePaymentCard: (cardId: string) => Promise<boolean>;
|
|
34
|
-
completeSetup: () => Promise<unknown>;
|
|
35
|
-
setPaymentView: (view: PaymentView) => void;
|
|
36
|
-
handleCardAdd: (cardData: CardData, billingAddress: BillingAddress) => void;
|
|
37
|
-
handleCardSelect: (cardId: string) => void;
|
|
38
|
-
handlePaymentSubmit: () => void;
|
|
39
|
-
showMethodList: () => void;
|
|
40
|
-
}
|
|
41
|
-
export declare function PaymentSheetPaymentFlow({ session, isSetupMode, isAgentMode, hasSelectedCard, hasSavedCards, paymentView, loading, passkeyLoading, skipToAuth, passkeyClosed, cvc, setCvc, displayError, linkSession, isLinkCheckoutAvailable, showShippingAsBilling, cardElementUrl, cardElementApiUrl, environment, theme, cardElementStyles, binsWarning, onBinWarning, clearError, setDefaultCard, showAddCard, deletePaymentCard, completeSetup, setPaymentView, handleCardAdd, handleCardSelect, handlePaymentSubmit, showMethodList, }: PaymentSheetPaymentFlowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
42
|
-
export {};
|
|
43
|
-
//# sourceMappingURL=PaymentSheetPaymentFlow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSheetPaymentFlow.d.ts","sourceRoot":"","sources":["../../../src/components/payos/PaymentSheetPaymentFlow.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,UAAU,4BAA4B;IACpC,OAAO,EAAE,eAAe,CAAC;I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C,aAAa,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,KAAK,IAAI,CAAC;IAC5E,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAQD,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,OAAO,EACP,cAAc,EACd,UAAU,EACV,aAAa,EACb,GAAG,EACH,MAAM,EACN,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,GACf,EAAE,4BAA4B,kDA+I9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSheetShell.d.ts","sourceRoot":"","sources":["../../../src/components/payos/PaymentSheetShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5E,UAAU,sBAAsB;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,aAAa,EACb,OAAO,EACP,QAAQ,GACT,EAAE,sBAAsB,2CAmIxB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { CheckoutSession, SavedCard } from '../../types/session';
|
|
2
|
-
export declare function PaymentSheetLoadingView({ skipToAuth }: {
|
|
3
|
-
skipToAuth: boolean;
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function PaymentSheetErrorView({ errorMessage, onClose, }: {
|
|
6
|
-
errorMessage?: string;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare function PaymentSheetExpiredView({ onVerifyAgain, onClose, }: {
|
|
10
|
-
onVerifyAgain: () => void;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare function SkipToAuthCheckoutStatusView({ selectedCard, passkeyClosed, }: {
|
|
14
|
-
selectedCard: SavedCard;
|
|
15
|
-
passkeyClosed: boolean;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function PaymentSheetProcessingView({ skipToAuth, isSetupMode, isAgentMode, skipCredentialGeneration, }: {
|
|
18
|
-
skipToAuth: boolean;
|
|
19
|
-
isSetupMode: boolean;
|
|
20
|
-
isAgentMode: boolean;
|
|
21
|
-
skipCredentialGeneration: boolean;
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare function PaymentSheetSuccessView({ session, isSetupMode, isAgentMode, }: {
|
|
24
|
-
session: CheckoutSession;
|
|
25
|
-
isSetupMode: boolean;
|
|
26
|
-
isAgentMode: boolean;
|
|
27
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
//# sourceMappingURL=PaymentSheetStatusViews.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSheetStatusViews.d.ts","sourceRoot":"","sources":["../../../src/components/payos/PaymentSheetStatusViews.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAgBtE,wBAAgB,uBAAuB,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,2CAW9E;AAED,wBAAgB,qBAAqB,CAAC,EACpC,YAAY,EACZ,OAAO,GACR,EAAE;IACD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CAcA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,aAAa,EACb,OAAO,GACR,EAAE;IACD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,2CAsBA;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,YAAY,EACZ,aAAa,GACd,EAAE;IACD,YAAY,EAAE,SAAS,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB,2CAkBA;AAED,wBAAgB,0BAA0B,CAAC,EACzC,UAAU,EACV,WAAW,EACX,WAAW,EACX,wBAAwB,GACzB,EAAE;IACD,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;CACnC,2CAkCA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,WAAW,EACX,WAAW,GACZ,EAAE;IACD,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACtB,2CA0DA"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* PriceTag - Pill-style price display component
|
|
4
|
-
*
|
|
5
|
-
* A subtle badge that makes the price unambiguous in headers.
|
|
6
|
-
* Follows the "Pill" style recommendation with label + value pattern.
|
|
7
|
-
*
|
|
8
|
-
* Features:
|
|
9
|
-
* - Gray background with subtle border
|
|
10
|
-
* - Label ("Total") + Value ("$185.50") layout
|
|
11
|
-
* - Compact padding for tight spaces
|
|
12
|
-
* - Right-aligned for header placement
|
|
13
|
-
* - Optional interactive mode with click handler
|
|
14
|
-
* - Optional ShoppingCart icon and ChevronDown indicator
|
|
15
|
-
* - Dark mode support
|
|
16
|
-
*
|
|
17
|
-
* Usage:
|
|
18
|
-
* ```tsx
|
|
19
|
-
* // Static display
|
|
20
|
-
* <PriceTag amount="$185.50" />
|
|
21
|
-
*
|
|
22
|
-
* // Interactive toggle
|
|
23
|
-
* <PriceTag
|
|
24
|
-
* amount="$185.50"
|
|
25
|
-
* onClick={() => setExpanded(!expanded)}
|
|
26
|
-
* isExpanded={expanded}
|
|
27
|
-
* showChevron={true}
|
|
28
|
-
* showIcon={true}
|
|
29
|
-
* />
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
interface PriceTagProps {
|
|
33
|
-
/**
|
|
34
|
-
* Formatted price amount (e.g., "$185.50")
|
|
35
|
-
*/
|
|
36
|
-
amount: string;
|
|
37
|
-
/**
|
|
38
|
-
* Optional label text (defaults to "Total")
|
|
39
|
-
*/
|
|
40
|
-
label?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Optional click handler (makes component interactive)
|
|
43
|
-
*/
|
|
44
|
-
onClick?: () => void;
|
|
45
|
-
/**
|
|
46
|
-
* Whether the associated panel is expanded (controls chevron rotation)
|
|
47
|
-
*/
|
|
48
|
-
isExpanded?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Show ChevronDown icon (only when onClick is provided)
|
|
51
|
-
*/
|
|
52
|
-
showChevron?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Show ShoppingCart icon on the left
|
|
55
|
-
*/
|
|
56
|
-
showIcon?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Additional CSS classes
|
|
59
|
-
*/
|
|
60
|
-
className?: string;
|
|
61
|
-
}
|
|
62
|
-
export declare const PriceTag: React.FC<PriceTagProps>;
|
|
63
|
-
export {};
|
|
64
|
-
//# sourceMappingURL=PriceTag.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PriceTag.d.ts","sourceRoot":"","sources":["../../../src/components/payos/PriceTag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,UAAU,aAAa;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAmE5C,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/**
|
|
3
|
-
* ReceiptPanel - Custom receipt-style dropdown for Smart Header
|
|
4
|
-
*
|
|
5
|
-
* **Design: Recessed Gray Tray**
|
|
6
|
-
* - NO shadow (looks buggy when expanded)
|
|
7
|
-
* - Gray background (bg-gray-50) creates "recessed" appearance
|
|
8
|
-
* - Simple border-bottom for clean separation
|
|
9
|
-
* - Slides down smoothly, pushing white content below
|
|
10
|
-
*
|
|
11
|
-
* Features:
|
|
12
|
-
* - Line items with labels and values
|
|
13
|
-
* - Subtotal, shipping, tax breakdown
|
|
14
|
-
* - Agent fee support (conditional)
|
|
15
|
-
* - Total summary with bold emphasis
|
|
16
|
-
* - Clean dividers between sections
|
|
17
|
-
* - Dark mode support
|
|
18
|
-
*
|
|
19
|
-
* Usage:
|
|
20
|
-
* ```tsx
|
|
21
|
-
* <ReceiptPanel
|
|
22
|
-
* items={orderItems}
|
|
23
|
-
* subtotal="$130.97"
|
|
24
|
-
* shipping="$12.00"
|
|
25
|
-
* tax="$42.53"
|
|
26
|
-
* total="$185.50"
|
|
27
|
-
* />
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export interface OrderItem {
|
|
31
|
-
label: string;
|
|
32
|
-
value: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
}
|
|
35
|
-
interface ReceiptPanelProps {
|
|
36
|
-
/**
|
|
37
|
-
* Optional line items (products/services)
|
|
38
|
-
*/
|
|
39
|
-
items?: OrderItem[];
|
|
40
|
-
/**
|
|
41
|
-
* Subtotal amount (before shipping/tax)
|
|
42
|
-
*/
|
|
43
|
-
subtotal: string;
|
|
44
|
-
/**
|
|
45
|
-
* Optional shipping cost
|
|
46
|
-
*/
|
|
47
|
-
shipping?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Optional tax amount
|
|
50
|
-
*/
|
|
51
|
-
tax?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Optional agent fee (for agent mode)
|
|
54
|
-
*/
|
|
55
|
-
agentFee?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Total amount
|
|
58
|
-
*/
|
|
59
|
-
total: string;
|
|
60
|
-
/**
|
|
61
|
-
* Whether this is an agent purchase
|
|
62
|
-
*/
|
|
63
|
-
isAgentMode?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export declare const ReceiptPanel: React.FC<ReceiptPanelProps>;
|
|
66
|
-
export {};
|
|
67
|
-
//# sourceMappingURL=ReceiptPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReceiptPanel.d.ts","sourceRoot":"","sources":["../../../src/components/payos/ReceiptPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2GpD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewHeader.d.ts","sourceRoot":"","sources":["../../../src/components/payos/ViewHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwBhD,CAAC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type OrderItem } from "./ReceiptPanel";
|
|
3
|
-
export interface DrawerProps {
|
|
4
|
-
/**
|
|
5
|
-
* Whether the drawer is open
|
|
6
|
-
*/
|
|
7
|
-
open?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Callback when the drawer should close
|
|
10
|
-
*/
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
/**
|
|
13
|
-
* Drawer title (merchant name in merchant-first pattern)
|
|
14
|
-
*/
|
|
15
|
-
title?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Optional subtitle or "Powered by PayOS" badge
|
|
18
|
-
* @deprecated Use `amount` prop with PriceTag component instead
|
|
19
|
-
*/
|
|
20
|
-
subtitle?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Total amount to display in PriceTag (e.g., "$185.50")
|
|
23
|
-
*/
|
|
24
|
-
amount?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Additional CSS classes
|
|
27
|
-
*/
|
|
28
|
-
className?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Optional line items for receipt panel
|
|
31
|
-
*/
|
|
32
|
-
orderItems?: OrderItem[];
|
|
33
|
-
/**
|
|
34
|
-
* Subtotal amount (before shipping/tax)
|
|
35
|
-
*/
|
|
36
|
-
subtotal?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Optional shipping cost
|
|
39
|
-
*/
|
|
40
|
-
shipping?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Optional tax amount
|
|
43
|
-
*/
|
|
44
|
-
tax?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Optional agent fee (for agent mode)
|
|
47
|
-
*/
|
|
48
|
-
orderAgentFee?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Mode for checkout (affects receipt panel styling)
|
|
51
|
-
*/
|
|
52
|
-
mode?: 'standard' | 'agent';
|
|
53
|
-
/**
|
|
54
|
-
* Prefilled user data for "Welcome Back" flow
|
|
55
|
-
*/
|
|
56
|
-
prefill?: {
|
|
57
|
-
phone?: string;
|
|
58
|
-
email?: string;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Callback when phone is submitted (guest flow)
|
|
62
|
-
*/
|
|
63
|
-
onPhoneSubmit?: (phone: string) => void;
|
|
64
|
-
/**
|
|
65
|
-
* Callback when user continues (known user flow)
|
|
66
|
-
*/
|
|
67
|
-
onContinue?: () => void;
|
|
68
|
-
/**
|
|
69
|
-
* Seconds remaining until session expires (null = not in warning range)
|
|
70
|
-
* When provided, renders an amber countdown badge in the header
|
|
71
|
-
*/
|
|
72
|
-
secondsRemaining?: number | null;
|
|
73
|
-
/**
|
|
74
|
-
* Disable the bottom content mask/fade (e.g. when inner view has its own footer)
|
|
75
|
-
*/
|
|
76
|
-
disableContentMask?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Custom children (for non-smart flows) - backward compatible
|
|
79
|
-
*/
|
|
80
|
-
children?: React.ReactNode;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* PayOSDrawer - Responsive checkout drawer with merchant-first branding
|
|
84
|
-
*
|
|
85
|
-
* Features:
|
|
86
|
-
* - Responsive: Bottom sheet (mobile) / Right sidebar (desktop)
|
|
87
|
-
* - Gray canvas background (bg-gray-50 dark:bg-slate-900 black:bg-black) per Card Stack Architecture
|
|
88
|
-
* - Merchant-first header with close button
|
|
89
|
-
* - Drag handle for visual affordance (mobile only)
|
|
90
|
-
* - Smooth animations (slide-up on mobile, slide-in-right on desktop)
|
|
91
|
-
* - Dark mode support
|
|
92
|
-
* - Overlay backdrop
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```tsx
|
|
96
|
-
* <PayOSDrawer
|
|
97
|
-
* open={isOpen}
|
|
98
|
-
* onClose={() => setIsOpen(false)}
|
|
99
|
-
* title="Acme Store"
|
|
100
|
-
* subtitle={<span className="text-xs text-gray-500">Powered by PayOS</span>}
|
|
101
|
-
* >
|
|
102
|
-
* <Card>Payment content here</Card>
|
|
103
|
-
* </PayOSDrawer>
|
|
104
|
-
* ```
|
|
105
|
-
*/
|
|
106
|
-
export declare const PayOSDrawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
-
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/payos/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK9D,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAG5B;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,oFAuRvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order-summary.d.ts","sourceRoot":"","sources":["../../../src/components/payos/order-summary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;;;;;;GAQG;AAEH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,iBAAiB;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,0FAoFxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"otp-input.d.ts","sourceRoot":"","sources":["../../../src/components/payos/otp-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;;;;;GAUG;AAEH,UAAU,aAAa;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,sFAoKpB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { COUNTRIES } from "../../utils/validation";
|
|
3
|
-
import type { CountryCode } from "../../utils/validation";
|
|
4
|
-
export type { CountryCode } from "../../utils/validation";
|
|
5
|
-
/**
|
|
6
|
-
* Format phone number as user types using placeholder patterns.
|
|
7
|
-
* Applies the separator positions (spaces, hyphens, parens) from the
|
|
8
|
-
* country's placeholder string to the digits the user has typed so far.
|
|
9
|
-
*/
|
|
10
|
-
export declare function formatPhoneForDisplay(value: string, countryCode?: string): string;
|
|
11
|
-
/**
|
|
12
|
-
* Engineered Phone Input - "Apple-Level" component
|
|
13
|
-
*
|
|
14
|
-
* Features:
|
|
15
|
-
* - 56px height (h-14) for prominence
|
|
16
|
-
* - Country selector with gray background
|
|
17
|
-
* - Large text (18px) for confidence
|
|
18
|
-
* - Lock icon as trust signal
|
|
19
|
-
* - Entire container gets focus ring
|
|
20
|
-
* - Auto-formats phone numbers as (555) 123-4567
|
|
21
|
-
*/
|
|
22
|
-
interface PhoneInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
23
|
-
value?: string;
|
|
24
|
-
onChange?: (value: string) => void;
|
|
25
|
-
countryCode?: CountryCode;
|
|
26
|
-
onCountryChange?: (code: CountryCode) => void;
|
|
27
|
-
}
|
|
28
|
-
export declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
-
export { COUNTRIES };
|
|
30
|
-
//# sourceMappingURL=phone-input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phone-input.d.ts","sourceRoot":"","sources":["../../../src/components/payos/phone-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,SAAS,EAA0C,MAAM,wBAAwB,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAU1D;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,MAAa,GAAG,MAAM,CA8BvF;AAED;;;;;;;;;;GAUG;AAEH,UAAU,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC7F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,UAAU,0FA4KtB,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themeMode.d.ts","sourceRoot":"","sources":["../../../src/components/payos/themeMode.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAErE,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,EAAE,cAAc,GACrB,sBAAsB,GAAG,IAAI,CAQ/B;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,MAAM,CAI9D;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,cAAc,GAAG,SAAS,EACjC,MAAM,EAAE,OAAO,QAsDhB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import type { RegistrationSubPhase, SessionPhase } from '../../hooks/useSession';
|
|
3
|
-
import type { PaymentView } from '../../types/payment';
|
|
4
|
-
import type { CheckoutSession } from '../../types/session';
|
|
5
|
-
interface UsePaymentSheetDebugArgs {
|
|
6
|
-
debug: boolean;
|
|
7
|
-
phase: SessionPhase;
|
|
8
|
-
paymentView: PaymentView;
|
|
9
|
-
session: CheckoutSession | null;
|
|
10
|
-
sessionSecret: string;
|
|
11
|
-
setPhase: (phase: SessionPhase) => void;
|
|
12
|
-
setPaymentView: (view: PaymentView) => void;
|
|
13
|
-
setSession: Dispatch<SetStateAction<CheckoutSession | null>>;
|
|
14
|
-
setRegistrationSubPhase: (subPhase: RegistrationSubPhase) => void;
|
|
15
|
-
showAddCard: () => void;
|
|
16
|
-
showMethodList: () => void;
|
|
17
|
-
returnToCheckout: () => void;
|
|
18
|
-
goBackToIdentity: () => void;
|
|
19
|
-
}
|
|
20
|
-
export declare function usePaymentSheetDebug({ debug, phase, paymentView, session, sessionSecret, setPhase, setPaymentView, setSession, setRegistrationSubPhase, showAddCard, showMethodList, returnToCheckout, goBackToIdentity, }: UsePaymentSheetDebugArgs): void;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=usePaymentSheetDebug.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePaymentSheetDebug.d.ts","sourceRoot":"","sources":["../../../src/components/payos/usePaymentSheetDebug.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,UAAU,wBAAwB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7D,uBAAuB,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAClE,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,aAAa,EACb,QAAQ,EACR,cAAc,EACd,UAAU,EACV,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,gBAAgB,GACjB,EAAE,wBAAwB,QAsF1B"}
|