@pelcro/react-pelcro-js 3.2.0-beta.6 → 3.2.0-beta.7

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
@@ -13020,6 +13020,7 @@ class StripeGateway {
13020
13020
  auth_token: window.Pelcro.user.read().auth_token,
13021
13021
  plan_id: plan.id,
13022
13022
  coupon_code: couponCode,
13023
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13023
13024
  address_id: product.address_required ? addressId : null
13024
13025
  }, (err, res) => {
13025
13026
  callback(err, res);
@@ -13046,6 +13047,7 @@ class StripeGateway {
13046
13047
  auth_token: window.Pelcro.user.read().auth_token,
13047
13048
  plan_id: plan.id,
13048
13049
  coupon_code: couponCode,
13050
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13049
13051
  gift_recipient_email: giftRecipient.email,
13050
13052
  gift_recipient_first_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.firstName,
13051
13053
  gift_recipient_last_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.lastName,
@@ -13073,6 +13075,7 @@ class StripeGateway {
13073
13075
  stripe_token: token,
13074
13076
  auth_token: window.Pelcro.user.read().auth_token,
13075
13077
  plan_id: plan.id,
13078
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13076
13079
  coupon_code: couponCode,
13077
13080
  subscription_id: subscriptionIdToRenew,
13078
13081
  address_id: product.address_required ? addressId : null
@@ -13125,6 +13128,7 @@ class StripeGateway {
13125
13128
  window.Pelcro.ecommerce.order.create({
13126
13129
  items,
13127
13130
  coupon_code: couponCode,
13131
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13128
13132
  ...params,
13129
13133
  ...(addressId && {
13130
13134
  address_id: addressId
@@ -13212,6 +13216,7 @@ class PaypalGateway {
13212
13216
  payment_gateway: _classPrivateFieldGet(this, _paymentGateway2),
13213
13217
  auth_token: window.Pelcro.user.read().auth_token,
13214
13218
  plan_id: plan.id,
13219
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13215
13220
  coupon_code: couponCode,
13216
13221
  address_id: product.address_required ? addressId : null
13217
13222
  }, (err, res) => {
@@ -13239,6 +13244,7 @@ class PaypalGateway {
13239
13244
  auth_token: window.Pelcro.user.read().auth_token,
13240
13245
  plan_id: plan.id,
13241
13246
  coupon_code: couponCode,
13247
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13242
13248
  gift_recipient_email: giftRecipient.email,
13243
13249
  gift_recipient_first_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.firstName,
13244
13250
  gift_recipient_last_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.lastName,
@@ -13341,6 +13347,7 @@ class VantivGateway {
13341
13347
  quantity,
13342
13348
  auth_token: window.Pelcro.user.read().auth_token,
13343
13349
  plan_id: plan.id,
13350
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13344
13351
  coupon_code: couponCode,
13345
13352
  address_id: product.address_required ? addressId : null,
13346
13353
  ...params
@@ -13372,6 +13379,7 @@ class VantivGateway {
13372
13379
  auth_token: window.Pelcro.user.read().auth_token,
13373
13380
  plan_id: plan.id,
13374
13381
  coupon_code: couponCode,
13382
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13375
13383
  subscription_id: subscriptionIdToRenew,
13376
13384
  address_id: product.address_required ? addressId : null,
13377
13385
  ...params
@@ -13405,6 +13413,7 @@ class VantivGateway {
13405
13413
  auth_token: window.Pelcro.user.read().auth_token,
13406
13414
  plan_id: plan.id,
13407
13415
  coupon_code: couponCode,
13416
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13408
13417
  gift_recipient_email: giftRecipient.email,
13409
13418
  gift_recipient_first_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.firstName,
13410
13419
  gift_recipient_last_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.lastName,
@@ -13468,6 +13477,7 @@ class VantivGateway {
13468
13477
  window.Pelcro.ecommerce.order.create({
13469
13478
  items,
13470
13479
  coupon_code: couponCode,
13480
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13471
13481
  ...params,
13472
13482
  ...(addressId && {
13473
13483
  address_id: addressId
@@ -13971,6 +13981,7 @@ const PaymentMethodContainerWithoutStripe = ({
13971
13981
  window.Pelcro.order.create({
13972
13982
  auth_token: window.Pelcro.user.read().auth_token,
13973
13983
  plan_id: plan.id,
13984
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13974
13985
  coupon_code: couponCode,
13975
13986
  address_id: selectedAddressId
13976
13987
  }, handleCouponResponse);
@@ -14052,6 +14063,7 @@ const PaymentMethodContainerWithoutStripe = ({
14052
14063
  stripe_token: !stripeSource.isExistingSource ? stripeSource.id : undefined,
14053
14064
  auth_token: window.Pelcro.user.read().auth_token,
14054
14065
  plan_id: plan.id,
14066
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
14055
14067
  quantity: plan.quantity,
14056
14068
  coupon_code: couponCode,
14057
14069
  gift_recipient_email: giftRecipient ? giftRecipient.email : null,
@@ -14123,6 +14135,7 @@ const PaymentMethodContainerWithoutStripe = ({
14123
14135
  stripe_token: !stripeSource.isExistingSource ? stripeSource.id : undefined,
14124
14136
  auth_token: window.Pelcro.user.read().auth_token,
14125
14137
  plan_id: plan.id,
14138
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
14126
14139
  coupon_code: couponCode,
14127
14140
  subscription_id: subscriptionIdToRenew,
14128
14141
  address_id: product.address_required ? selectedAddressId : null
@@ -14475,6 +14488,7 @@ const PaymentMethodContainerWithoutStripe = ({
14475
14488
  window.Pelcro.order.create({
14476
14489
  auth_token: window.Pelcro.user.read().auth_token,
14477
14490
  plan_id: plan.id,
14491
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
14478
14492
  coupon_code: state === null || state === void 0 ? void 0 : state.couponCode,
14479
14493
  address_id: selectedAddressId
14480
14494
  }, (error, res) => {
package/dist/index.esm.js CHANGED
@@ -12990,6 +12990,7 @@ class StripeGateway {
12990
12990
  auth_token: window.Pelcro.user.read().auth_token,
12991
12991
  plan_id: plan.id,
12992
12992
  coupon_code: couponCode,
12993
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
12993
12994
  address_id: product.address_required ? addressId : null
12994
12995
  }, (err, res) => {
12995
12996
  callback(err, res);
@@ -13016,6 +13017,7 @@ class StripeGateway {
13016
13017
  auth_token: window.Pelcro.user.read().auth_token,
13017
13018
  plan_id: plan.id,
13018
13019
  coupon_code: couponCode,
13020
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13019
13021
  gift_recipient_email: giftRecipient.email,
13020
13022
  gift_recipient_first_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.firstName,
13021
13023
  gift_recipient_last_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.lastName,
@@ -13043,6 +13045,7 @@ class StripeGateway {
13043
13045
  stripe_token: token,
13044
13046
  auth_token: window.Pelcro.user.read().auth_token,
13045
13047
  plan_id: plan.id,
13048
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13046
13049
  coupon_code: couponCode,
13047
13050
  subscription_id: subscriptionIdToRenew,
13048
13051
  address_id: product.address_required ? addressId : null
@@ -13095,6 +13098,7 @@ class StripeGateway {
13095
13098
  window.Pelcro.ecommerce.order.create({
13096
13099
  items,
13097
13100
  coupon_code: couponCode,
13101
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13098
13102
  ...params,
13099
13103
  ...(addressId && {
13100
13104
  address_id: addressId
@@ -13182,6 +13186,7 @@ class PaypalGateway {
13182
13186
  payment_gateway: _classPrivateFieldGet(this, _paymentGateway2),
13183
13187
  auth_token: window.Pelcro.user.read().auth_token,
13184
13188
  plan_id: plan.id,
13189
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13185
13190
  coupon_code: couponCode,
13186
13191
  address_id: product.address_required ? addressId : null
13187
13192
  }, (err, res) => {
@@ -13209,6 +13214,7 @@ class PaypalGateway {
13209
13214
  auth_token: window.Pelcro.user.read().auth_token,
13210
13215
  plan_id: plan.id,
13211
13216
  coupon_code: couponCode,
13217
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13212
13218
  gift_recipient_email: giftRecipient.email,
13213
13219
  gift_recipient_first_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.firstName,
13214
13220
  gift_recipient_last_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.lastName,
@@ -13311,6 +13317,7 @@ class VantivGateway {
13311
13317
  quantity,
13312
13318
  auth_token: window.Pelcro.user.read().auth_token,
13313
13319
  plan_id: plan.id,
13320
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13314
13321
  coupon_code: couponCode,
13315
13322
  address_id: product.address_required ? addressId : null,
13316
13323
  ...params
@@ -13342,6 +13349,7 @@ class VantivGateway {
13342
13349
  auth_token: window.Pelcro.user.read().auth_token,
13343
13350
  plan_id: plan.id,
13344
13351
  coupon_code: couponCode,
13352
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13345
13353
  subscription_id: subscriptionIdToRenew,
13346
13354
  address_id: product.address_required ? addressId : null,
13347
13355
  ...params
@@ -13375,6 +13383,7 @@ class VantivGateway {
13375
13383
  auth_token: window.Pelcro.user.read().auth_token,
13376
13384
  plan_id: plan.id,
13377
13385
  coupon_code: couponCode,
13386
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13378
13387
  gift_recipient_email: giftRecipient.email,
13379
13388
  gift_recipient_first_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.firstName,
13380
13389
  gift_recipient_last_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.lastName,
@@ -13438,6 +13447,7 @@ class VantivGateway {
13438
13447
  window.Pelcro.ecommerce.order.create({
13439
13448
  items,
13440
13449
  coupon_code: couponCode,
13450
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13441
13451
  ...params,
13442
13452
  ...(addressId && {
13443
13453
  address_id: addressId
@@ -13941,6 +13951,7 @@ const PaymentMethodContainerWithoutStripe = ({
13941
13951
  window.Pelcro.order.create({
13942
13952
  auth_token: window.Pelcro.user.read().auth_token,
13943
13953
  plan_id: plan.id,
13954
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
13944
13955
  coupon_code: couponCode,
13945
13956
  address_id: selectedAddressId
13946
13957
  }, handleCouponResponse);
@@ -14022,6 +14033,7 @@ const PaymentMethodContainerWithoutStripe = ({
14022
14033
  stripe_token: !stripeSource.isExistingSource ? stripeSource.id : undefined,
14023
14034
  auth_token: window.Pelcro.user.read().auth_token,
14024
14035
  plan_id: plan.id,
14036
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
14025
14037
  quantity: plan.quantity,
14026
14038
  coupon_code: couponCode,
14027
14039
  gift_recipient_email: giftRecipient ? giftRecipient.email : null,
@@ -14093,6 +14105,7 @@ const PaymentMethodContainerWithoutStripe = ({
14093
14105
  stripe_token: !stripeSource.isExistingSource ? stripeSource.id : undefined,
14094
14106
  auth_token: window.Pelcro.user.read().auth_token,
14095
14107
  plan_id: plan.id,
14108
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
14096
14109
  coupon_code: couponCode,
14097
14110
  subscription_id: subscriptionIdToRenew,
14098
14111
  address_id: product.address_required ? selectedAddressId : null
@@ -14445,6 +14458,7 @@ const PaymentMethodContainerWithoutStripe = ({
14445
14458
  window.Pelcro.order.create({
14446
14459
  auth_token: window.Pelcro.user.read().auth_token,
14447
14460
  plan_id: plan.id,
14461
+ campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
14448
14462
  coupon_code: state === null || state === void 0 ? void 0 : state.couponCode,
14449
14463
  address_id: selectedAddressId
14450
14464
  }, (error, res) => {
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.2.0-beta.6",
4
+ "version": "3.2.0-beta.7",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",