@pelcro/react-pelcro-js 3.26.0-beta.35 → 3.26.0-beta.36
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 +3 -2
- package/dist/index.esm.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -28812,9 +28812,10 @@ const PaymentMethodDeleteContainer = _ref => {
|
|
|
28812
28812
|
const {
|
|
28813
28813
|
selectedPaymentMethodId: paymentMethodId
|
|
28814
28814
|
} = state;
|
|
28815
|
-
window.Pelcro.paymentMethods.
|
|
28815
|
+
window.Pelcro.paymentMethods.update({
|
|
28816
28816
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
28817
|
-
payment_method_id: paymentMethodId
|
|
28817
|
+
payment_method_id: paymentMethodId,
|
|
28818
|
+
is_default: true
|
|
28818
28819
|
}, (err, res) => {
|
|
28819
28820
|
if (err) {
|
|
28820
28821
|
onFailure(err);
|
package/dist/index.esm.js
CHANGED
|
@@ -28782,9 +28782,10 @@ const PaymentMethodDeleteContainer = _ref => {
|
|
|
28782
28782
|
const {
|
|
28783
28783
|
selectedPaymentMethodId: paymentMethodId
|
|
28784
28784
|
} = state;
|
|
28785
|
-
window.Pelcro.paymentMethods.
|
|
28785
|
+
window.Pelcro.paymentMethods.update({
|
|
28786
28786
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
28787
|
-
payment_method_id: paymentMethodId
|
|
28787
|
+
payment_method_id: paymentMethodId,
|
|
28788
|
+
is_default: true
|
|
28788
28789
|
}, (err, res) => {
|
|
28789
28790
|
if (err) {
|
|
28790
28791
|
onFailure(err);
|