Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe Payment Intents workflow #146

Closed
2ec0b4 opened this issue Sep 5, 2019 · 2 comments
Closed

Stripe Payment Intents workflow #146

2ec0b4 opened this issue Sep 5, 2019 · 2 comments

Comments

@2ec0b4
Copy link

2ec0b4 commented Sep 5, 2019

👋

I am updating the payment workflow on a website i am working on. I am following the description made in the block Stripe Payment Intents from the README.md file (or from this comment) and... I'm lost.

First, the page the link "collecting the payment method details" is pointing to has been updated.

Then, on this stripe.com page, they are talking about five steps to create a one-time payment:

  1. Create a PaymentIntent (specifying the amount and the currency) on the server
  2. Pass client_secret to the client, this is an attribute of the PaymentIntent object got from the previous step response
  3. Collect payment method details on the client with Stripe.js
  4. Submit the payment to Stripe from the client with Stripe.js using stripe.handleCardPayment method
  5. Asynchronously fulfill the customer’s order by:
    • Setting up a webhook
    • or Manually using the Stripe Dashboard
    • or Using a partner application
    • or Using a cron job to fetch recent events

I am in the dark with this two different workflows. From the sixth point in the README.md file, how the PaymentIntent confirmation is made? This is not by providing a callback URL (like PayPal for example). I think we have to create a webhook, isn't it?

Thanks to help me clarify the workflow

@domis86
Copy link

domis86 commented Sep 5, 2019

You are looking at the "asynchronous PaymentIntent flow" - which indeed requires webhooks.
Please check the "synchronous" variant of the flow: https://stripe.com/docs/payments/payment-intents/web-manual

@2ec0b4
Copy link
Author

2ec0b4 commented Sep 5, 2019

Thank you @domis86
I missed the keyword "manual" from the README.md file and I was not able to find a link to this page from the stripe.com documentation
I made a pull request to update the README.md file: #147

@2ec0b4 2ec0b4 closed this as completed Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants