We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f0d50b commit fc1e06eCopy full SHA for fc1e06e
sample-apps/payment-customizations/extensions/payment-customization-js/src/index.js
@@ -27,6 +27,9 @@ export default /**
27
const configuration = JSON.parse(
28
input?.paymentCustomization?.metafield?.value ?? "{}"
29
);
30
+ if (!configuration.paymentMethodName || !configuration.cartTotal) {
31
+ return NO_CHANGES;
32
+ }
33
34
const cartTotal = parseFloat(input.cart.cost.totalAmount.amount ?? "0.0");
35
if (cartTotal < configuration.cartTotal) {
0 commit comments