Methods
- S
Constants
| IGNORED_CLIENT_IDS | = | ENV.fetch( "IGNORED_STRIPE_CLIENT_IDS", "ca_0gEYaIV6wa82LqDkie5wl74oVVVXurkw" # FIXME: hardcoded sensitive information ).split(",").freeze |
| STRIPE_PROCESSING_DELAY_IN_SECONDS | = | 15.seconds |
Instance Public methods
stripe() Link
Source: show
# File engines/api/app/controllers/api/webhooks_controller.rb, line 15 def stripe case event.type when "customer.subscription.created" handle_customer_subscription_created when "customer.subscription.updated" handle_customer_subscription_updated when "customer.subscription.deleted" handle_customer_subscription_deleted when "customer.subscription.trial_will_end" handle_customer_subscription_trial_will_end when "customer.deleted" handle_customer_deleted when "invoice.payment_failed" handle_invoice_payment_failed when "invoice.voided", "invoice.marked_uncollectible" handle_invoice_void_uncollectable when "invoice.paid" handle_invoice_paid when "invoice.payment_action_required" handle_invoice_payment_action_required when "invoice.upcoming" handle_invoice_upcoming when "payment_intent.canceled" handle_payment_intent_canceled when "payment_intent.succeeded" handle_payment_intent_succeeded when "charge.refunded" handle_charge_refunded when "coupon.created" handle_coupon_created when "coupon.deleted" handle_coupon_deleted when "account.application.deauthorized" handle_account_application_deauthorized end render_stripe_success end