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.
@@ -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: '3209500ca012b2282245f13237aa6cdf993eb757', 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 }));
1017
- return (i18n_service.state.isInitialized && (index$1.h(index$1.h.Fragment, null, this.showRefreshModal && index$1.h("rebill-modal-overlay", { key: 'ae0102c361eb7f4fa45fb224331aab6602daf912' }), this.displayConfig.processingPayment && (index$1.h("rebill-processing-payment", { key: 'f4b6bd83cafd56cfd7e28f8af945972415e767d3', style: { display: this.isCardSubmitting ? 'block' : 'none' } })), this.displayConfig.successPage &&
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 && (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: () => {
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 &&