offsite_payments icon indicating copy to clipboard operation
offsite_payments copied to clipboard

Log form output to improve debugging

Open joshnuss opened this issue 7 years ago • 0 comments

When debugging issues it would be helpful if we had a log of what form/inputs were generated.

Possible approaches:

  1. Add an option to #payment_service_for, ie: payment_service_for(..., log: true) and call Rails.logger
  2. Update #payment_service_for to bubble up an event that can be handled by the host app. ie: ActiveSupport::Notifications.instrument("#{service}.form", html)

joshnuss avatar Aug 14 '17 16:08 joshnuss