I implemented stripe and it uses JS to auto load a payment form with the following options. Card, Apple Pay/Google Pay, Klarna, Afterpay.
This is good and it works great only thing is it loads very slow.. for a couple secs the page will be blank. So what I want to do now is instead manually collect the card info via a form and pass it to stripe. Ive implemented this fine but how do I disable the other stripe element from asking for card details and only showing Apple Pay/Google Pay, Klarna, Afterpay.
I tried changing this 'payment_method_types' => ['card'],
This is my current code to load buttons `
</script>
<script defer>
const stripe_key = '{{ config('app.stripe_key') }}';
const payment_intent_route = '{{ route('checkout.payment.intent') }}';
const _token = '{{ csrf_token() }}';
const place_order_route = '{{ route('checkout.store') }}';
const order_cancel_route = '{{ route('checkout.cancel') }}';
const finish_page = '{{ route('checkout.finished') }}';
const buy_now_mode = '{{ $buy_now_mode ?? 0 }}';
</script>
<script src="{{ asset('js/checkout.js') }}" defer></script>