#saucisse_dev
1 messages · Page 1 of 1 (latest)
Hello saucisse_dev, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• saucisse_dev, 1 days ago, 20 messages
• saucisse_dev, 1 days ago, 21 messages
• saucisse_dev, 1 days ago, 18 messages
Just subscription
Why do you think you need payment intent?
Those are for 1 time payments
For 3D Secure
You can handle 3ds on subscriptions as well
A subscription is nothing but an abstraction. It's build on top of invoices and payment intents
Every subscription payment IS a payment intent
When I get my JSON response, I have nothing in response object to check if it's require action
And I need to retrieve the invoice, retrieve the payment intent, then update the PI with a return URL.
Is there a method to pass a return url directly when creating a subscription ?
You're manually handling 3ds?
Why not follow this? https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
You use the subscription's underlying payment intent to collect payment details
And 3ds is handled automatically
Because for custom treatment I'm doing it in PHP server side
So how do you collect payment method details?
Yep
I collect with Stripe JS, and give the token to my form
Then I do everything servce side
server side*
But why
Because all my app is coded like that and I have a lot of logic to perform server side
There is no other reason.
All the products are stored in the basket server side, so I have a lot of verification to do when checkout
And customers can put subscriptions and physical products in the same ordrer so I have a lot of checks to do
And different logic if there is only sub, only product, or a mix.
And also a different logic if there is ony a sub with trial period.
So I don't want the Javascript handle the payment before I was able to perform all my checks
Okay so I found my answer in the doc you sent to me :
'expand' => ['latest_invoice.payment_intent'],
So I will be able to retrieve the associated payment intent 🙂
exactly, yeah