You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Stand up new medusa backend with latest dev code (RC)
create an order
order goes through successfully, however stripe has 2 attempts to capture the same payment_intent and payment.webhook_received fails which is file packges/modules/payment/src/services/payment-provider
See error
Expected behavior
Submit an order and correctly match to payment provider which i believe should be pp_stripe_stripe instead of pp_stripe
@420coupe can you let me know what the provider ID of the payment is? As you say, this should be pp_stripe_stripe since you are using the standard credit card method.
@420coupe can you let me know what the provider ID of the payment is? As you say, this should be pp_stripe_stripe since you are using the standard credit card method.
provider id in the db is pp_stripe_stripe
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 authorized to capture in payment_collections nor payment_sessions
to add on this payment_session.data.status is never updated either, not sure if this is handled by the stripe_webhook return since i've never got it working.
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: