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
I was debugging an issue, where we werent able to capture payment for an order programatically (using await _commerceApi.CaptureOrderPaymentAsync(order)). It kept failing, and after a few hours of browsing source code, and scratching my neck, it turned out we had disabled the ability to capture on the configured payment method.
In this case, it just failed silently.
I would prefer if it would throw an exception saying something like "capture not allowed for payment method".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Which component is this idea for?
Umbraco Commerce (Core)
Describe your idea
I was debugging an issue, where we werent able to capture payment for an order programatically (using
await _commerceApi.CaptureOrderPaymentAsync(order)
). It kept failing, and after a few hours of browsing source code, and scratching my neck, it turned out we had disabled the ability to capture on the configured payment method.In this case, it just failed silently.
I would prefer if it would throw an exception saying something like "capture not allowed for payment method".
Context
No response
Beta Was this translation helpful? Give feedback.
All reactions