Class: CatarseStripe::Processors::Stripe
- Inherits:
-
Object
- Object
- CatarseStripe::Processors::Stripe
- Defined in:
- lib/catarse_stripe/processors/stripe.rb
Instance Method Summary collapse
Instance Method Details
#process!(backer, data) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/catarse_stripe/processors/stripe.rb', line 5 def process!(backer, data) status = data["checkout_status"] || "pending" notification = backer.payment_notifications.new({ extra_data: data }) notification.save! backer.confirm! if success_payment?(status) rescue Exception => e ::Airbrake.notify({ :error_class => "Stripe Processor Error", :error_message => "Stripe Processor Error: #{e.inspect}", :parameters => data}) rescue nil end |