Skip to content

Commit

Permalink
Fix payment page
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Feb 11, 2024
1 parent a2f1594 commit 5b5f523
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/checkout/payment.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h2 class="text-gray-900 font-bold text-2xl mb-4">
{{ /if }}

{{ sc:gateways }}
<div class="pb-4 mb-4" x-show="gateway === '{{ formatted_class }}'">
<div class="pb-4 mb-4" x-show="gateway === '{{ handle }}'">
{{ partial src="checkout/gateways/{ handle }" }}
</div>
{{ /sc:gateways }}
Expand All @@ -61,16 +61,16 @@ <h2 class="text-gray-900 font-bold text-2xl mb-4">
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() {
Expand Down

0 comments on commit 5b5f523

Please sign in to comment.