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.
@@ -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: '3209500ca012b2282245f13237aa6cdf993eb757', 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 }));
1015
- return (state.isInitialized && (h(h.Fragment, null, this.showRefreshModal && h("rebill-modal-overlay", { key: 'ae0102c361eb7f4fa45fb224331aab6602daf912' }), this.displayConfig.processingPayment && (h("rebill-processing-payment", { key: 'f4b6bd83cafd56cfd7e28f8af945972415e767d3', style: { display: this.isCardSubmitting ? 'block' : 'none' } })), this.displayConfig.successPage &&
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 && (h("div", { class: "payment-button-container" }, h("payment-button", { paymentMethod: this.currentPaymentMethod, isLoading: this.isSubmitting, trialPeriodDays: state.data?.itemInformation?.trial?.trialPeriodDays, onSubmit: () => {
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 &&