Oops, sorry, I only just realized that this is not the correct place to send the notice from. You are sending a notice after the transaction has been created. Instead, we need to send the notice after the transaction has been *processed*. My bad.

The logic you have is correct but you need to move it here: https://github.com/mozilla/zippy/blob/501eb4df8940de313d70aed61cbd323c992b3329/lib/payments.js#L74

As for the error notice, you can either wait until I land https://github.com/mozilla/zippy/pull/55 or you can comment out your error handling code and file a new bug to land it later.