Closed (fixed)
Project:
Commerce Stripe
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2016 at 16:35 UTC
Updated:
5 Jan 2017 at 20:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
aaronbaumanIn this patch:
- continue to catch all exceptions, but distinguish between
Stripe\Error\Basebefore calling Stripe-specific methods.- For non-Stripe exceptions, use
Exception::getCodefor remote_id andException::getTraceAsStringfor transaction payload.FYI the use case here is that I need to implement some business logic during
hook_commerce_payment_order_paid_in_full, which sometimes throws an exception and should prevent checkout.Comment #4
torgospizzaThis is a reasonable and welcome change. (In fact I just saw this error happen to one of our customers.)
Thanks! Committed to dev.