@pelcro/react-pelcro-js 3.23.0-beta.15 → 3.23.0-beta.17

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
@@ -17711,6 +17711,7 @@ class CybersourceGateway {
17711
17711
  isExistingSource,
17712
17712
  fingerprint_session_id
17713
17713
  } = options;
17714
+ console.log("Options 1", options);
17714
17715
  const params = isExistingSource ? {
17715
17716
  source_id: token
17716
17717
  } : {
@@ -17724,7 +17725,7 @@ class CybersourceGateway {
17724
17725
  campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
17725
17726
  coupon_code: couponCode,
17726
17727
  address_id: product.address_required ? addressId : null,
17727
- fingerprint_session_id,
17728
+ fingerprint_session_id: fingerprint_session_id,
17728
17729
  ...params
17729
17730
  }, (err, res) => {
17730
17731
  callback(err, res);
@@ -17743,6 +17744,7 @@ class CybersourceGateway {
17743
17744
  addressId,
17744
17745
  isExistingSource
17745
17746
  } = options;
17747
+ console.log("Options 2", options);
17746
17748
  const params = isExistingSource ? {
17747
17749
  source_id: token
17748
17750
  } : {
@@ -17775,6 +17777,7 @@ class CybersourceGateway {
17775
17777
  addressId,
17776
17778
  isExistingSource
17777
17779
  } = options;
17780
+ console.log("Options 3", options);
17778
17781
  const params = isExistingSource ? {
17779
17782
  source_id: token
17780
17783
  } : {
@@ -17811,6 +17814,7 @@ class CybersourceGateway {
17811
17814
  addressId,
17812
17815
  isExistingSource
17813
17816
  } = options;
17817
+ console.log("Options 4", options);
17814
17818
  const params = isExistingSource ? {
17815
17819
  source_id: token
17816
17820
  } : {
@@ -17839,6 +17843,7 @@ class CybersourceGateway {
17839
17843
  addressId,
17840
17844
  isExistingSource
17841
17845
  } = options;
17846
+ console.log("Options 5", options);
17842
17847
  const params = isExistingSource ? {
17843
17848
  source_id: token
17844
17849
  } : {
@@ -17865,6 +17870,7 @@ class CybersourceGateway {
17865
17870
  token,
17866
17871
  invoiceId
17867
17872
  } = options;
17873
+ console.log("Options 6", options);
17868
17874
  const params = options.isExistingSource ? {
17869
17875
  source_id: token,
17870
17876
  invoice_id: invoiceId
@@ -18036,6 +18042,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18036
18042
  };
18037
18043
  const submitUsingCybersource = (state, dispatch) => {
18038
18044
  var _cybersourceInstanceR;
18045
+ console.log("State", state);
18039
18046
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
18040
18047
  if (isUsingExistingPaymentMethod) {
18041
18048
  // no need to create a new source using cybersrce
@@ -19998,7 +20005,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
19998
20005
  case UPDATE_CYBERSOURCE_SESSION_ID:
19999
20006
  return lib_7({
20000
20007
  ...state,
20001
- cybersourceSessionId: action.payload
20008
+ cyberSourceSessionId: action.payload
20002
20009
  });
20003
20010
  default:
20004
20011
  return state;
package/dist/index.esm.js CHANGED
@@ -17681,6 +17681,7 @@ class CybersourceGateway {
17681
17681
  isExistingSource,
17682
17682
  fingerprint_session_id
17683
17683
  } = options;
17684
+ console.log("Options 1", options);
17684
17685
  const params = isExistingSource ? {
17685
17686
  source_id: token
17686
17687
  } : {
@@ -17694,7 +17695,7 @@ class CybersourceGateway {
17694
17695
  campaign_key: window.Pelcro.helpers.getURLParameter("campaign_key"),
17695
17696
  coupon_code: couponCode,
17696
17697
  address_id: product.address_required ? addressId : null,
17697
- fingerprint_session_id,
17698
+ fingerprint_session_id: fingerprint_session_id,
17698
17699
  ...params
17699
17700
  }, (err, res) => {
17700
17701
  callback(err, res);
@@ -17713,6 +17714,7 @@ class CybersourceGateway {
17713
17714
  addressId,
17714
17715
  isExistingSource
17715
17716
  } = options;
17717
+ console.log("Options 2", options);
17716
17718
  const params = isExistingSource ? {
17717
17719
  source_id: token
17718
17720
  } : {
@@ -17745,6 +17747,7 @@ class CybersourceGateway {
17745
17747
  addressId,
17746
17748
  isExistingSource
17747
17749
  } = options;
17750
+ console.log("Options 3", options);
17748
17751
  const params = isExistingSource ? {
17749
17752
  source_id: token
17750
17753
  } : {
@@ -17781,6 +17784,7 @@ class CybersourceGateway {
17781
17784
  addressId,
17782
17785
  isExistingSource
17783
17786
  } = options;
17787
+ console.log("Options 4", options);
17784
17788
  const params = isExistingSource ? {
17785
17789
  source_id: token
17786
17790
  } : {
@@ -17809,6 +17813,7 @@ class CybersourceGateway {
17809
17813
  addressId,
17810
17814
  isExistingSource
17811
17815
  } = options;
17816
+ console.log("Options 5", options);
17812
17817
  const params = isExistingSource ? {
17813
17818
  source_id: token
17814
17819
  } : {
@@ -17835,6 +17840,7 @@ class CybersourceGateway {
17835
17840
  token,
17836
17841
  invoiceId
17837
17842
  } = options;
17843
+ console.log("Options 6", options);
17838
17844
  const params = options.isExistingSource ? {
17839
17845
  source_id: token,
17840
17846
  invoice_id: invoiceId
@@ -18006,6 +18012,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18006
18012
  };
18007
18013
  const submitUsingCybersource = (state, dispatch) => {
18008
18014
  var _cybersourceInstanceR;
18015
+ console.log("State", state);
18009
18016
  const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
18010
18017
  if (isUsingExistingPaymentMethod) {
18011
18018
  // no need to create a new source using cybersrce
@@ -19968,7 +19975,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
19968
19975
  case UPDATE_CYBERSOURCE_SESSION_ID:
19969
19976
  return lib_7({
19970
19977
  ...state,
19971
- cybersourceSessionId: action.payload
19978
+ cyberSourceSessionId: action.payload
19972
19979
  });
19973
19980
  default:
19974
19981
  return state;
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.23.0-beta.15",
4
+ "version": "3.23.0-beta.17",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",