@pelcro/react-pelcro-js 3.26.0-beta.20 → 3.26.0-beta.22

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
@@ -21257,7 +21257,7 @@ const ApplePayButton = _ref => {
21257
21257
  if (pelcroApplyPayButton) {
21258
21258
  pelcroApplyPayButton.style.display = "block";
21259
21259
  }
21260
- console.log("canMakePayments", canMakePayments);
21260
+ console.log("ApplePay canMakePayments: ", canMakePayments);
21261
21261
  }
21262
21262
  });
21263
21263
  } else {
@@ -21299,7 +21299,7 @@ const ApplePayButton = _ref => {
21299
21299
  amount: updatedPrice / 100
21300
21300
  }
21301
21301
  };
21302
- console.log(ApplePayPaymentRequest);
21302
+
21303
21303
  // Create ApplePaySession
21304
21304
  // @todo - Clarify supported version parameter
21305
21305
  // @odo - Apple Pay demo uses version 6 (https://applepaydemo.apple.com/)
@@ -21312,7 +21312,6 @@ const ApplePayButton = _ref => {
21312
21312
  const {
21313
21313
  validationURL
21314
21314
  } = event;
21315
- console.log("then merchantSession step", event);
21316
21315
  // Call your own server to request a new merchant session.
21317
21316
  window.Pelcro.payment.startSession({
21318
21317
  auth_token: window.Pelcro.user.read().auth_token,
@@ -21321,7 +21320,6 @@ const ApplePayButton = _ref => {
21321
21320
  }, (err, res) => {
21322
21321
  if (err) {
21323
21322
  // Handle any errors during merchant validation
21324
- console.error("Merchant validation SDK error: ", err);
21325
21323
  session.abort();
21326
21324
  return dispatch({
21327
21325
  type: SHOW_ALERT,
@@ -21332,13 +21330,11 @@ const ApplePayButton = _ref => {
21332
21330
  });
21333
21331
  }
21334
21332
  // Complete merchant validation with the merchant session object
21335
- console.log("Merchant validation SDK response: ", res);
21336
21333
  const merchantSession = res;
21337
21334
  session.completeMerchantValidation(merchantSession);
21338
21335
  });
21339
21336
  };
21340
21337
  session.onpaymentmethodselected = event => {
21341
- console.log("payment method selected step", event);
21342
21338
  // Define ApplePayPaymentMethodUpdate based on the selected payment method.
21343
21339
  // No updates or errors are needed, pass an empty object.
21344
21340
  const newTotal = {
@@ -21356,7 +21352,6 @@ const ApplePayButton = _ref => {
21356
21352
 
21357
21353
  // TODO: Check if onshippingmethodselected it should be implemented
21358
21354
  // session.onshippingmethodselected = (event) => {
21359
- // console.log("on shipping method selected step", event);
21360
21355
  // // Define ApplePayShippingMethodUpdate based on the selected shipping method.
21361
21356
  // // No updates or errors are needed, pass an empty object.
21362
21357
  // const newTotal = {
@@ -21378,14 +21373,12 @@ const ApplePayButton = _ref => {
21378
21373
 
21379
21374
  // TODO: Check if onshippingcontactselected it should be implemented
21380
21375
  // session.onshippingcontactselected = (event) => {
21381
- // console.log("on shipping contact selected step", event);
21382
21376
  // // Define ApplePayShippingContactUpdate based on the selected shipping contact.
21383
21377
  // const update = {};
21384
21378
  // session.completeShippingContactSelection(update);
21385
21379
  // };
21386
21380
 
21387
21381
  session.onpaymentauthorized = event => {
21388
- console.log("on payment authorized step", event);
21389
21382
  // Define ApplePayPaymentAuthorizationResult
21390
21383
  const result = {
21391
21384
  status: ApplePaySession.STATUS_SUCCESS // eslint-disable-line no-undef
@@ -21414,7 +21407,6 @@ const ApplePayButton = _ref => {
21414
21407
  transactionId: transactionId
21415
21408
  }
21416
21409
  };
21417
- console.log(applePayToken);
21418
21410
  const orderId = `pelcro-${new Date().getTime()}`;
21419
21411
  const eProtectRequest = {
21420
21412
  paypageId: payPageId,
@@ -21430,7 +21422,6 @@ const ApplePayButton = _ref => {
21430
21422
  const {
21431
21423
  expDate
21432
21424
  } = vantivResponse;
21433
- console.log("Response:", vantivResponse);
21434
21425
  const expMonth = expDate.substring(0, 2);
21435
21426
  const expYear = expDate.substring(2);
21436
21427
  const vantivPaymentRequest = {
@@ -21469,7 +21460,6 @@ const ApplePayButton = _ref => {
21469
21460
 
21470
21461
  // TODO: Check if oncouponcodechanged it should be implemented
21471
21462
  // session.oncouponcodechanged = (event) => {
21472
- // console.log("on coupon code changed step", event);
21473
21463
  // // Define ApplePayCouponCodeUpdate
21474
21464
  // const newTotal = calculateNewTotal(event.couponCode);
21475
21465
  // const newLineItems = calculateNewLineItems(event.couponCode);
@@ -21488,7 +21478,6 @@ const ApplePayButton = _ref => {
21488
21478
 
21489
21479
  session.oncancel = event => {
21490
21480
  // Payment cancelled by WebKit
21491
- console.log("on cancel step", event);
21492
21481
  dispatch({
21493
21482
  type: LOADING,
21494
21483
  payload: false
@@ -26805,7 +26794,9 @@ const CartRemoveItemButton = _ref => {
26805
26794
  "data-key": itemId,
26806
26795
  icon: /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
26807
26796
  "aria-hidden": "true",
26808
- focusable: "false"
26797
+ focusable: "false",
26798
+ height: "20",
26799
+ width: "20"
26809
26800
  }),
26810
26801
  className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2",
26811
26802
  onClick: () => {
package/dist/index.esm.js CHANGED
@@ -21227,7 +21227,7 @@ const ApplePayButton = _ref => {
21227
21227
  if (pelcroApplyPayButton) {
21228
21228
  pelcroApplyPayButton.style.display = "block";
21229
21229
  }
21230
- console.log("canMakePayments", canMakePayments);
21230
+ console.log("ApplePay canMakePayments: ", canMakePayments);
21231
21231
  }
21232
21232
  });
21233
21233
  } else {
@@ -21269,7 +21269,7 @@ const ApplePayButton = _ref => {
21269
21269
  amount: updatedPrice / 100
21270
21270
  }
21271
21271
  };
21272
- console.log(ApplePayPaymentRequest);
21272
+
21273
21273
  // Create ApplePaySession
21274
21274
  // @todo - Clarify supported version parameter
21275
21275
  // @odo - Apple Pay demo uses version 6 (https://applepaydemo.apple.com/)
@@ -21282,7 +21282,6 @@ const ApplePayButton = _ref => {
21282
21282
  const {
21283
21283
  validationURL
21284
21284
  } = event;
21285
- console.log("then merchantSession step", event);
21286
21285
  // Call your own server to request a new merchant session.
21287
21286
  window.Pelcro.payment.startSession({
21288
21287
  auth_token: window.Pelcro.user.read().auth_token,
@@ -21291,7 +21290,6 @@ const ApplePayButton = _ref => {
21291
21290
  }, (err, res) => {
21292
21291
  if (err) {
21293
21292
  // Handle any errors during merchant validation
21294
- console.error("Merchant validation SDK error: ", err);
21295
21293
  session.abort();
21296
21294
  return dispatch({
21297
21295
  type: SHOW_ALERT,
@@ -21302,13 +21300,11 @@ const ApplePayButton = _ref => {
21302
21300
  });
21303
21301
  }
21304
21302
  // Complete merchant validation with the merchant session object
21305
- console.log("Merchant validation SDK response: ", res);
21306
21303
  const merchantSession = res;
21307
21304
  session.completeMerchantValidation(merchantSession);
21308
21305
  });
21309
21306
  };
21310
21307
  session.onpaymentmethodselected = event => {
21311
- console.log("payment method selected step", event);
21312
21308
  // Define ApplePayPaymentMethodUpdate based on the selected payment method.
21313
21309
  // No updates or errors are needed, pass an empty object.
21314
21310
  const newTotal = {
@@ -21326,7 +21322,6 @@ const ApplePayButton = _ref => {
21326
21322
 
21327
21323
  // TODO: Check if onshippingmethodselected it should be implemented
21328
21324
  // session.onshippingmethodselected = (event) => {
21329
- // console.log("on shipping method selected step", event);
21330
21325
  // // Define ApplePayShippingMethodUpdate based on the selected shipping method.
21331
21326
  // // No updates or errors are needed, pass an empty object.
21332
21327
  // const newTotal = {
@@ -21348,14 +21343,12 @@ const ApplePayButton = _ref => {
21348
21343
 
21349
21344
  // TODO: Check if onshippingcontactselected it should be implemented
21350
21345
  // session.onshippingcontactselected = (event) => {
21351
- // console.log("on shipping contact selected step", event);
21352
21346
  // // Define ApplePayShippingContactUpdate based on the selected shipping contact.
21353
21347
  // const update = {};
21354
21348
  // session.completeShippingContactSelection(update);
21355
21349
  // };
21356
21350
 
21357
21351
  session.onpaymentauthorized = event => {
21358
- console.log("on payment authorized step", event);
21359
21352
  // Define ApplePayPaymentAuthorizationResult
21360
21353
  const result = {
21361
21354
  status: ApplePaySession.STATUS_SUCCESS // eslint-disable-line no-undef
@@ -21384,7 +21377,6 @@ const ApplePayButton = _ref => {
21384
21377
  transactionId: transactionId
21385
21378
  }
21386
21379
  };
21387
- console.log(applePayToken);
21388
21380
  const orderId = `pelcro-${new Date().getTime()}`;
21389
21381
  const eProtectRequest = {
21390
21382
  paypageId: payPageId,
@@ -21400,7 +21392,6 @@ const ApplePayButton = _ref => {
21400
21392
  const {
21401
21393
  expDate
21402
21394
  } = vantivResponse;
21403
- console.log("Response:", vantivResponse);
21404
21395
  const expMonth = expDate.substring(0, 2);
21405
21396
  const expYear = expDate.substring(2);
21406
21397
  const vantivPaymentRequest = {
@@ -21439,7 +21430,6 @@ const ApplePayButton = _ref => {
21439
21430
 
21440
21431
  // TODO: Check if oncouponcodechanged it should be implemented
21441
21432
  // session.oncouponcodechanged = (event) => {
21442
- // console.log("on coupon code changed step", event);
21443
21433
  // // Define ApplePayCouponCodeUpdate
21444
21434
  // const newTotal = calculateNewTotal(event.couponCode);
21445
21435
  // const newLineItems = calculateNewLineItems(event.couponCode);
@@ -21458,7 +21448,6 @@ const ApplePayButton = _ref => {
21458
21448
 
21459
21449
  session.oncancel = event => {
21460
21450
  // Payment cancelled by WebKit
21461
- console.log("on cancel step", event);
21462
21451
  dispatch({
21463
21452
  type: LOADING,
21464
21453
  payload: false
@@ -26775,7 +26764,9 @@ const CartRemoveItemButton = _ref => {
26775
26764
  "data-key": itemId,
26776
26765
  icon: /*#__PURE__*/React__default.createElement(SvgXIcon, {
26777
26766
  "aria-hidden": "true",
26778
- focusable: "false"
26767
+ focusable: "false",
26768
+ height: "20",
26769
+ width: "20"
26779
26770
  }),
26780
26771
  className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2",
26781
26772
  onClick: () => {
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.26.0-beta.20",
4
+ "version": "3.26.0-beta.22",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",