rebill-web-components-sdk 1.8.9 → 1.8.10
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/dist/cjs/rebill-checkout.cjs.entry.js +10 -3
- package/dist/cjs/rebill-checkout.entry.cjs.js.map +1 -1
- package/dist/collection/components/checkout/rebill-checkout.js +10 -3
- package/dist/collection/components/checkout/rebill-checkout.js.map +1 -1
- package/dist/components/rebill-checkout.js +10 -3
- package/dist/components/rebill-checkout.js.map +1 -1
- package/dist/esm/rebill-checkout.entry.js +10 -3
- package/dist/esm/rebill-checkout.entry.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-23e28053.entry.js → p-5dac3ade.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-5dac3ade.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/rebill-checkout.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/dist/types/components/checkout/rebill-checkout.d.ts +1 -0
- package/package.json +1 -1
- package/dist/rebill-web-components-sdk/p-23e28053.entry.js.map +0 -1
|
@@ -962,6 +962,11 @@ const RebillCheckout = class {
|
|
|
962
962
|
get isQrCodeVisible() {
|
|
963
963
|
return !!this.checkoutResponse?.result?.data?.qrCode;
|
|
964
964
|
}
|
|
965
|
+
get isBankTransferVisible() {
|
|
966
|
+
return (!!this.checkoutResponse?.result?.data?.account &&
|
|
967
|
+
!!this.checkoutResponse?.result?.data?.bankName &&
|
|
968
|
+
!!this.checkoutResponse?.result?.data?.reference);
|
|
969
|
+
}
|
|
965
970
|
isPaymentApproved = () => {
|
|
966
971
|
if (i18n_service.state.data.paymentStatus === requiredFieldsMappers.PaymentMessageE.APPROVED) {
|
|
967
972
|
return true;
|
|
@@ -1013,8 +1018,8 @@ const RebillCheckout = class {
|
|
|
1013
1018
|
label: country.country,
|
|
1014
1019
|
value: country.isoCountryCode,
|
|
1015
1020
|
}));
|
|
1016
|
-
const renderRebillSummary = (props = {}) => (index$1.h("rebill-summary", { key: '
|
|
1017
|
-
return (i18n_service.state.isInitialized && (index$1.h(index$1.h.Fragment, null, this.showRefreshModal && index$1.h("rebill-modal-overlay", { key: '
|
|
1021
|
+
const renderRebillSummary = (props = {}) => (index$1.h("rebill-summary", { key: '889ee4307f38fbed3dd973d68d4e71979519b971', totalAmount: i18n_service.state.data.pricing.total, currency: i18n_service.state.data.pricing.currency, itemTitle: i18n_service.state._session?.getTitle(), itemDescription: i18n_service.state._session?.getDescription(), itemAmount: i18n_service.state.data.pricing.subtotal, subtotal: i18n_service.state.data.pricing.subtotal, allowCoupon: i18n_service.state._session?.getAllowCoupon(this.displayConfig), currentBreakpoint: this.breakpoint, planFrequency: i18n_service.state._session?.getPlanFrequency(), planFrequencyCount: i18n_service.state._session?.getPlanFrequencyCount(), discountType: i18n_service.state.data.discount.discountType, discountedPercentage: i18n_service.state.data.discount.discountedPercentage, discountDuration: i18n_service.state.data.discount.discountDuration, discountAmount: i18n_service.state.data.discount.discountAmount, ...props }));
|
|
1022
|
+
return (i18n_service.state.isInitialized && (index$1.h(index$1.h.Fragment, null, this.showRefreshModal && index$1.h("rebill-modal-overlay", { key: 'ab3333710743b424ad676702aba95f4c2ea83f92' }), this.displayConfig.processingPayment && (index$1.h("rebill-processing-payment", { key: '30e84979156a983056fe59ed1d684dafc0adc1d9', style: { display: this.isCardSubmitting ? 'block' : 'none' } })), this.displayConfig.successPage &&
|
|
1018
1023
|
this.isPaymentApproved() &&
|
|
1019
1024
|
i18n_service.state.isInitialized ? (index$1.h("success-page", { typePaymentMethod: i18n_service.state.data.paymentMethodSelected, paymentMethodName: googleMaps_service.PaymentMethodMapper.mapToAPMPaymentMethod(i18n_service.state.data.paymentMethodSelected ||
|
|
1020
1025
|
i18n_service.state.data.payment?.paymentMethodType, i18n_service.state.data?.pricing?.country), country: i18n_service.state.data?.pricing?.country, bank: i18n_service.state.data.payment?.paymentMethodMetadata?.bank ||
|
|
@@ -1105,7 +1110,9 @@ const RebillCheckout = class {
|
|
|
1105
1110
|
: 'none',
|
|
1106
1111
|
} }, renderRebillSummary({
|
|
1107
1112
|
displayedComponents: ['priceDetails'],
|
|
1108
|
-
}))), this.displayConfig.submitButton &&
|
|
1113
|
+
}))), this.displayConfig.submitButton &&
|
|
1114
|
+
!(isAPMCheckoutVisible &&
|
|
1115
|
+
(this.isQrCodeVisible || this.isBankTransferVisible)) && (index$1.h("div", { class: "payment-button-container" }, index$1.h("payment-button", { paymentMethod: this.currentPaymentMethod, isLoading: this.isSubmitting, trialPeriodDays: i18n_service.state.data?.itemInformation?.trial?.trialPeriodDays, onSubmit: () => {
|
|
1109
1116
|
submit();
|
|
1110
1117
|
}, redirectUrl: !!this.checkoutResponse?.result?.data?.url, timeToRedirect: this.timeToRedirectAPM, isDisabled: i18n_service.state.data.fetchingInstallments, country: i18n_service.state.data?.pricing?.country }), index$1.h("rebill-alert", { type: "secure", variant: "variant-secure", icon: "lock-outline", message: i18n_service.I18nService.translate('otp.secureMessage') })))), this.displayConfig.sandboxMode &&
|
|
1111
1118
|
i18n_service.state.isSandbox &&
|