From 4a3e70d5ca0ee20e4239451556c272b34833902c Mon Sep 17 00:00:00 2001 From: Anthony Gordon Date: Wed, 27 Oct 2021 02:03:37 +0100 Subject: [PATCH 1/2] Update stripe_pay.dart --- LabelStoreMax/lib/app/providers/stripe_pay.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LabelStoreMax/lib/app/providers/stripe_pay.dart b/LabelStoreMax/lib/app/providers/stripe_pay.dart index fde00f9..1304551 100644 --- a/LabelStoreMax/lib/app/providers/stripe_pay.dart +++ b/LabelStoreMax/lib/app/providers/stripe_pay.dart @@ -34,7 +34,7 @@ stripePay(context, : getEnv('STRIPE_LIVE_MODE', defaultValue: false); // CONFIGURE STRIPE - Stripe.stripeAccountId = getEnv('STRIPE_ACCOUNT'); + Stripe.stripeAccountId = getEnv('STRIPE_ACCOUNT') == null ? wooSignalApp.stripeAccount : ''; Stripe.publishableKey = liveMode ? "pk_live_IyS4Vt86L49jITSfaUShumzi" : "pk_test_0jMmpBntJ6UkizPkfiB8ZJxH"; // Don't change this value try { From 1c2d9d419669e5088ba03b600f55d12429006370 Mon Sep 17 00:00:00 2001 From: Anthony Gordon Date: Wed, 27 Oct 2021 02:04:02 +0100 Subject: [PATCH 2/2] Update .env --- LabelStoreMax/.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LabelStoreMax/.env b/LabelStoreMax/.env index dc68393..bc378b0 100644 --- a/LabelStoreMax/.env +++ b/LabelStoreMax/.env @@ -20,7 +20,7 @@ APP_KEY="your app key" # ** -STRIPE_ACCOUNT="Stripe account key from WooSignal" +STRIPE_ACCOUNT=null # Stripe account key from WooSignal https://woosignal.com/dashboard STRIPE_COUNTRY_CODE="GB" @@ -41,4 +41,4 @@ PAYPAL_LOCALE="en-GB" # ** PRODUCT_PLACEHOLDER_IMAGE="https://woosignal.com/images/woocommerce-placeholder.png" -# Sets the default placeholder image for products with no image \ No newline at end of file +# Sets the default placeholder image for products with no image