Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stripe webhook card decline error blows up instead of not blowing up #260

Open
lilliealbert opened this issue Jan 31, 2017 · 0 comments
Open
Labels
bug Incorrect and unintended behavior high priority Should be worked on as soon as possible

Comments

@lilliealbert
Copy link
Member

We're getting the following error when a webhook with a declined card comes in:

     # `undefined method 'card' for #<Stripe::Charge:0x007fab606884c8>`
     # app/helpers/stripe_event_helper.rb:17

     if event.data.object.customer.present?
        email = User.find_by_stripe_customer_id(event.data.object.customer).email
      else
        email = event.data.object.card.name
      end
      DuesMailer.failed(email).deliver_now
    end

The full stacktrace / details are in Bugsnag — hit up the #du-app channel on Slack if you can help fix this and need access to the exception itself.

@lilliealbert lilliealbert added the bug Incorrect and unintended behavior label Jan 31, 2017
@lilliealbert lilliealbert changed the title Stripe card decline error blows up instead of showing error to user Stripe webhook card decline error blows up instead of showing error to user Jan 31, 2017
@lilliealbert lilliealbert added the high priority Should be worked on as soon as possible label Jan 31, 2017
@lilliealbert lilliealbert changed the title Stripe webhook card decline error blows up instead of showing error to user Stripe webhook card decline error blows up instead of not blowing up Jan 31, 2017
@brittag brittag added this to Arooo Jun 16, 2024
@brittag brittag moved this to Needs more details in Arooo Jun 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Incorrect and unintended behavior high priority Should be worked on as soon as possible
Projects
Status: Needs more details
Development

No branches or pull requests

1 participant