Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DimitarV's avatar

How to register new customers with Stripe + Cashier

Hi! I'm updating the billing on one of my apps and I'm trying to integrate the new SCA flow, but I'm a bit confused - when registering these are the steps I've implemented:

  1. Collect email, name, password, etc
  2. Collect payment info -> tokenize it

Then server side:

  1. Create stripe customer and attach a subscription with the token from the card
  2. DB records, login, redirect

I understand that updating a card is done with setup intents now, but what about the register process?

How should I do it with the new payments intents/setup intents? I'm confused. Spoke with Stripe support, they told me I'd have to use the payment intent, but it has an "amount" property. And my software is subscription-based with trial periods. Any help, please?

0 likes
5 replies
DimitarV's avatar

Sure, but they imply I already have a user record. Anyways, I think I've managed to solve it by doing the following:

  1. Collect user data
  2. Ajax call to validate it and retrieve Setup Intent's client secret
  3. Build card input with stripe elements
  4. Validate card data
  5. If all good -> register in local DB + create stripe customer and attach subscription.
1 like
jimmitjoo's avatar

Have you managed to make it work with tax on a subscription? Seems to be no way to add tax to subscriptions anymore? But it was possible before the SCA.

Please or to participate in this conversation.