enupal / stripe

Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS
https://enupal.com/craft-plugins/stripe-payments/
Other
33 stars 19 forks source link

Advanced checkout link shows different form than the stripe form from direct payment link #396

Closed knufri closed 4 months ago

knufri commented 4 months ago

Description

Hello, I'm using the twig checkout tag to redirect the user to the stripe checkout page like shown in the docs:

{# The price id could be a One-Time or Recurring price #}
{% set items = [
    {
        "price": "price_1PBtYFIJ1OKCMad6Ej3xwUxS",
        "quantity": 1
    }
]
%}

{% set checkoutSession = craft.enupalStripe.checkout(items) %}

It works so far but the stripe checkout page looks different than the checkout page which I access over the stripe payment link.

Enupal:

Bildschirmfoto 2024-05-10 um 18 02 29

Stripe payment link:

Bildschirmfoto 2024-05-10 um 18 03 59

The custom fields are missing and the payment method link must not be active. Can you explain me how I can get the same checkout page? I not found it in the docs or I don't get it.

Thanks in advance!

Steps to reproduce

  1. Use twig checkout tag and load stripe checkout page
  2. Use direct payment link from stripe and load checkout page

Additional info

Solved with the beforeCreateSession event like mentioned here: https://github.com/enupal/stripe/issues/335#issuecomment-1380839997