Stripe Cashier integration
Hello guys,
I've been working on a Laravel app with Cashier via Stripe integration. Everything works fine but I have a quick question. For a non-profit organization, we are selling subscriptions to our members. But prior to subscribing, our members must pay a yearly membership (50€/yr).
So I made an onboarding tunnel where new comers must fill their details (step 1), then pay the membership (step 2) and finally subscribe to one of the offers (step 3).
On step 3, I offer the members to subscribe using either the card they've set on step 2 or with a new card.
In order to do so, on step 2, I do a $user->createSetupIntent() server side and a stripe.confirmCardSetup on front side. Once the form is posted, I do a $user->updateDefaultPaymentMethod($request->setup_method); and then a $user->invoicePrice($payment['price']->uid, $payment['quantity'] ?? 0);
That works just fine. BUT I wonder if this is the proper way to go. What makes me think that is when members must confirm with 3DS on step 2, the amount in the Stripe 3DS overlay is not the price that will be charged to them (even if of course, members can see the proper price on the view, I am NOT trying to cheat them). The price in the overlay is 0 or 1€. I guess this is a preauthorization. Once the form submitted, the correct amount is charged to them, the card is saved and can be reused for subscription. But many members have talked to me about this, finding it weird to see a 1€ charge while it should be 50€
Any feedback is appreciated.
Thanks !!
Please or to participate in this conversation.