-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
[Bug]: Customize Stripe Integration guide failing (paymentElement) #451
Comments
I am doing some improvements to Stripe currently, and I will look into this as well in the next few days. |
Any update on this? I am still struggling with being able to complete certain orders as I am getting the same errors above. This seems to be exclusively happening with payments using cashapp or link. It does not happen on every cashapp/link order as some go through successfully. Out of 1008 txs, 19 had this complete order error. Additionally - for payments using link/cashapp no Statement Descriptor nor Card ID is being submitted with the payment where every other payment contains both the Statement Descriptor (DT MOTORSPORTS) and Card ID (pm_uniqueID). |
No updates yet, we'll let you know once we've started working on it. |
Package.json file
Node.js version
v22.12.0
Operating system name and version
Ubuntu 22.04.5
Browser name
Brave, Safari
What happended?
Followed the guide below, and that implementation does not work correctly. No order is created when
place order
button is pressed, but the payment is successfully captured and multiplerequest to capture PaymentIntent
are called.https://docs.medusajs.com/resources/nextjs-starter/guides/customize-stripe
I solved this by adding the following to the .then statement in the file below
src/modules/checkout/components/payment-button/index.tsx
Expected behavior
correct paymentElement implementation that successfully creates order after payment is captured and only one
request to capture a PaymentIntent
is called.medusa-config.ts
Actual behavior
With my posted fix above it does process the payment and create the order, however the payment capture is still called twice after the payment has already been captured. see full activity below
Another weird part that is different from my previous implementation of paymentElement, is applepay payment confirmation is triggered when the
Continue to review
button is pressed. No payment is captured until thePlace order
button is pressed, but can be misleading from the customer experience.Additionally when using cashapp on desktop, it opens the authorize payment in a new window and if payment is authorized it successfully redirects to the order confirmation page, but the original checkout page throws the error below.
Link to reproduction repo
https://dev.derftuned.com
The text was updated successfully, but these errors were encountered: