@pelcro/react-pelcro-js 3.20.1-beta.2 → 3.20.1-beta.3

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/index.cjs.js CHANGED
@@ -16710,9 +16710,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16710
16710
  const renewSubscription = !isGift && subscriptionIdToRenew;
16711
16711
  const giftSubscriprition = isGift && !subscriptionIdToRenew;
16712
16712
  const renewGift = isRenewingGift;
16713
- const {
16714
- couponCode
16715
- } = state;
16713
+ const couponCode = state.couponCode || window.Pelcro.coupon.getFromUrl() || "";
16716
16714
  if (renewGift) {
16717
16715
  return payment.execute({
16718
16716
  type: PAYMENT_TYPES.RENEW_GIFTED_SUBSCRIPTION,
package/dist/index.esm.js CHANGED
@@ -16680,9 +16680,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
16680
16680
  const renewSubscription = !isGift && subscriptionIdToRenew;
16681
16681
  const giftSubscriprition = isGift && !subscriptionIdToRenew;
16682
16682
  const renewGift = isRenewingGift;
16683
- const {
16684
- couponCode
16685
- } = state;
16683
+ const couponCode = state.couponCode || window.Pelcro.coupon.getFromUrl() || "";
16686
16684
  if (renewGift) {
16687
16685
  return payment.execute({
16688
16686
  type: PAYMENT_TYPES.RENEW_GIFTED_SUBSCRIPTION,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.20.1-beta.2",
4
+ "version": "3.20.1-beta.3",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",