#saucisse_dev

1 messages · Page 1 of 1 (latest)

patent epochBOT
#

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

slow kayak
#

Just subscription

#

Why do you think you need payment intent?

#

Those are for 1 time payments

vale iris
#

For 3D Secure

slow kayak
#

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

vale iris
#

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 ?

slow kayak
#

You're manually handling 3ds?

#

You use the subscription's underlying payment intent to collect payment details

#

And 3ds is handled automatically

vale iris
#

Because for custom treatment I'm doing it in PHP server side

slow kayak
#

So how do you collect payment method details?

vale iris
#

Yep

#

I collect with Stripe JS, and give the token to my form

#

Then I do everything servce side

#

server side*

slow kayak
#

But why

vale iris
#

Because all my app is coded like that and I have a lot of logic to perform server side

slow kayak
#

But there's no other reason?

#

That's not how we recommend you integrate subscriptions

vale iris
#

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 🙂

slow kayak
#

exactly, yeah

vale iris
#

I have approximatively the same logic, except I'm doing the redirection if needed directly in PHP

#

Thanks for you help