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
|
@@ -960,6 +960,11 @@ const RebillCheckout = class {
|
|
|
960
960
|
get isQrCodeVisible() {
|
|
961
961
|
return !!this.checkoutResponse?.result?.data?.qrCode;
|
|
962
962
|
}
|
|
963
|
+
get isBankTransferVisible() {
|
|
964
|
+
return (!!this.checkoutResponse?.result?.data?.account &&
|
|
965
|
+
!!this.checkoutResponse?.result?.data?.bankName &&
|
|
966
|
+
!!this.checkoutResponse?.result?.data?.reference);
|
|
967
|
+
}
|
|
963
968
|
isPaymentApproved = () => {
|
|
964
969
|
if (state.data.paymentStatus === PaymentMessageE.APPROVED) {
|
|
965
970
|
return true;
|
|
@@ -1011,8 +1016,8 @@ const RebillCheckout = class {
|
|
|
1011
1016
|
label: country.country,
|
|
1012
1017
|
value: country.isoCountryCode,
|
|
1013
1018
|
}));
|
|
1014
|
-
const renderRebillSummary = (props = {}) => (h("rebill-summary", { key: '
|
|
1015
|
-
return (state.isInitialized && (h(h.Fragment, null, this.showRefreshModal && h("rebill-modal-overlay", { key: '
|
|
1019
|
+
const renderRebillSummary = (props = {}) => (h("rebill-summary", { key: '889ee4307f38fbed3dd973d68d4e71979519b971', totalAmount: state.data.pricing.total, currency: state.data.pricing.currency, itemTitle: state._session?.getTitle(), itemDescription: state._session?.getDescription(), itemAmount: state.data.pricing.subtotal, subtotal: state.data.pricing.subtotal, allowCoupon: state._session?.getAllowCoupon(this.displayConfig), currentBreakpoint: this.breakpoint, planFrequency: state._session?.getPlanFrequency(), planFrequencyCount: state._session?.getPlanFrequencyCount(), discountType: state.data.discount.discountType, discountedPercentage: state.data.discount.discountedPercentage, discountDuration: state.data.discount.discountDuration, discountAmount: state.data.discount.discountAmount, ...props }));
|
|
1020
|
+
return (state.isInitialized && (h(h.Fragment, null, this.showRefreshModal && h("rebill-modal-overlay", { key: 'ab3333710743b424ad676702aba95f4c2ea83f92' }), this.displayConfig.processingPayment && (h("rebill-processing-payment", { key: '30e84979156a983056fe59ed1d684dafc0adc1d9', style: { display: this.isCardSubmitting ? 'block' : 'none' } })), this.displayConfig.successPage &&
|
|
1016
1021
|
this.isPaymentApproved() &&
|
|
1017
1022
|
state.isInitialized ? (h("success-page", { typePaymentMethod: state.data.paymentMethodSelected, paymentMethodName: PaymentMethodMapper.mapToAPMPaymentMethod(state.data.paymentMethodSelected ||
|
|
1018
1023
|
state.data.payment?.paymentMethodType, state.data?.pricing?.country), country: state.data?.pricing?.country, bank: state.data.payment?.paymentMethodMetadata?.bank ||
|
|
@@ -1103,7 +1108,9 @@ const RebillCheckout = class {
|
|
|
1103
1108
|
: 'none',
|
|
1104
1109
|
} }, renderRebillSummary({
|
|
1105
1110
|
displayedComponents: ['priceDetails'],
|
|
1106
|
-
}))), this.displayConfig.submitButton &&
|
|
1111
|
+
}))), this.displayConfig.submitButton &&
|
|
1112
|
+
!(isAPMCheckoutVisible &&
|
|
1113
|
+
(this.isQrCodeVisible || this.isBankTransferVisible)) && (h("div", { class: "payment-button-container" }, h("payment-button", { paymentMethod: this.currentPaymentMethod, isLoading: this.isSubmitting, trialPeriodDays: state.data?.itemInformation?.trial?.trialPeriodDays, onSubmit: () => {
|
|
1107
1114
|
submit();
|
|
1108
1115
|
}, redirectUrl: !!this.checkoutResponse?.result?.data?.url, timeToRedirect: this.timeToRedirectAPM, isDisabled: state.data.fetchingInstallments, country: state.data?.pricing?.country }), h("rebill-alert", { type: "secure", variant: "variant-secure", icon: "lock-outline", message: I18nService.translate('otp.secureMessage') })))), this.displayConfig.sandboxMode &&
|
|
1109
1116
|
state.isSandbox &&
|