#ema6551
1 messages · Page 1 of 1 (latest)
I had updated my message
You can either use manual capture: https://docs.stripe.com/payments/place-a-hold-on-a-payment-method or you can check your inventory in your flow before you actually complete the payment.
Ah then you want the first option above
Ok, I didn't understand one thing.
In the first solution I am explained how to create the payment intent. But how do I get the checkout page to pop up where payment details are requested?
because if I create the payment internal, an object is returned to me containing these fields in PHP
@shy peak
Would be the same process as described in this doc: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
The only difference is the payment intent creation step (where you need to enable manual capture)
And the final step where you capture the funds (or not) later
Is there a guide with code examples in php?
This guide shows the use of the Payment Element component.
My flow is as follows
- User must purchase a product for 10 euros, enter the site and click buy.
- When you have to provide me with your payment details, you are redirected to the stripe page at the link "www.stripe.com/<something>".
- After the user has entered his payment data, he is redirected to my app through the callback call set during session creation, here I recover the session provided to me by stripe and then...? I can't figure out what I should do next.
Oh you use checkout
Not a custom page
Then follow the checkout tab at the above link: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=checkout