-
-
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: Returning "capture" status from authorizePayment does not create order transactions. #9887
Comments
Thanks for the ticket, we'll have a look into it and let you know what the next steps are. |
Thanks @sradevski. Let me know if you would like more information or even a live demo. This bug is blocking development for me and is affecting downstream operations like fulfillment and refunds. |
hey @lukegreaves5, a PR that we merged today should fix your issue. |
Excellent. Thank you so much! |
Bug report
Describe the bug
As a developer who has implemented a custom payment provider, I want to auto capture the payment. This is supported according to the docs by setting the status to "captured" instead of authorized.
when returning the status "captured" in the authorizePayment method, the capturePayment method is called immediately as expected, but the order transactions are not being created in the database, resulting in the order summary amounts being incorrect. For example, the paid_total amount on the order is still the full order amount. See screenshots below.
System information
Medusa V2
Node.js version: v20.11.1
Database: Supabase
Operating system: MacOS Sonoma 14.4.1
Steps to reproduce the behavior
Expected behavior
Order summary amounts should represent the captured amount and the order transactions should be created in the database
Screenshots
The text was updated successfully, but these errors were encountered: