Captricity / mocurly

Mocurly is a library that mocks the recurly python client
MIT License
8 stars 6 forks source link

Payment declined / delete subscription #9

Closed niekbaeten closed 8 years ago

niekbaeten commented 8 years ago

When a payment for a new subscription is declined, Recurly does not store the (to-be) subscription but deletes it. Webhooks (failed_payment_notification) might contain a subscription_id that is non-existing.

I'm not sure if I've implemented this in the most optimal way.

yorinasub17 commented 8 years ago

Logic LGTM. Thanks for the contribution! Do you think you can add a unit test to depict this behavior?