-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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: payment.webhook_received unable to match payment_provider pp_stripe #9494
Comments
@420coupe can you let me know what the provider ID of the payment is? As you say, this should be |
provider id in the db is I have also tried paymentElement vs CardElement and still getting the same results, two capture attempts and error matching coming back to the payment.webhook_received |
also something else i just noticed while digging in the db, status is never updated from to add on this |
@420coupe did you manage to figure out what's causing this? Or a workaround? I have the same problem and the order remains with an outstanding amount, even if the payment shows as captured. |
I did not, figured core team was on it from oliver responding. |
I've targeted the problem, going to try some things and create a PR if successful. |
The issue lies in this line of code (I think). For me, I changed it to this: const providerId = `pp_${eventData.provider}_${eventData.provider.split("_")[0]}`; And it works great. I forcefully changed the |
I think this line might be correct as payment provider's provider_id is defined as
I had similar issues today and I found out that you need to use the webhook AP Iroute |
I can confirm changing the webhook url to |
so even with changing webhook to this, still get this error below when it tries to process.
edit: also there's still two capture attempts i can see in the stripe logs, still want to know what's causing this to try to collect twice on the payment_intent |
Bump to get a resolution for this. |
anyone? |
bump to get a resolution for this |
@420coupe can you maybe open a new ticket with the exact issue you are seeing, and maybe a reproduction? I believe this issue is resolved already, so it's better to move the conversation in a new issue for better visibility. Thanks! |
Bug report
Describe the bug
The endpoint payment.webhook_received is failing to match payment provider with id pp_stripe. Order is still placed and considered successful, payment is captured in stripe however the webhook fails because it doesn't match pp_stripe to any provider.
System information
Medusa version (including plugins):
@medusajs/[email protected]
Node.js version:
v21.7.1
Database:
Supabase (postgres)
Operating system:
Ubuntu 22.04.4
Browser (if relevant):
Steps to reproduce the behavior
packges/modules/payment/src/services/payment-provider
Expected behavior
Submit an order and correctly match to payment provider which i believe should be
pp_stripe_stripe
instead ofpp_stripe
Screenshots
Code snippets
medusa-config.js
The text was updated successfully, but these errors were encountered: