offsite_payments
offsite_payments copied to clipboard
Log form output to improve debugging
When debugging issues it would be helpful if we had a log of what form/inputs were generated.
Possible approaches:
- Add an option to
#payment_service_for
, ie:payment_service_for(..., log: true)
and callRails.logger
- Update
#payment_service_for
to bubble up an event that can be handled by the host app. ie:ActiveSupport::Notifications.instrument("#{service}.form", html)