From 5b5f5230b7a177168e502917044195dee3b41a0c Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Sun, 11 Feb 2024 20:00:18 +0000 Subject: [PATCH] Fix payment page --- resources/views/checkout/payment.antlers.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/checkout/payment.antlers.html b/resources/views/checkout/payment.antlers.html index 9d85658..e81223b 100644 --- a/resources/views/checkout/payment.antlers.html +++ b/resources/views/checkout/payment.antlers.html @@ -35,7 +35,7 @@

{{ /if }} {{ sc:gateways }} -
+
{{ partial src="checkout/gateways/{ handle }" }}
{{ /sc:gateways }} @@ -61,16 +61,16 @@

document.addEventListener('alpine:init', () => { Alpine.data('checkoutForm', () => ({ isSubmitting: false, - gateway: '{{ sc:gateways }}{{ if first }}{{ formatted_class }}{{ /if }}{{ /sc:gateways }}', + gateway: '{{ sc:gateways }}{{ if first }}{{ handle }}{{ /if }}{{ /sc:gateways }}', // There's currently no way to detect if a gateway is on-site or off-site. // For now, we've just hard coded Stripe & the Dummy Gateway as on-site. get isOnSiteGateway() { - return this.gateway.includes('Stripe') || this.gateway.includes('Dummy'); + return this.gateway.includes('stripe') || this.gateway.includes('dummy'); }, get isStripe() { - return this.gateway.includes('Stripe'); + return this.gateway.includes('stripe'); }, submit() {