Skip to content

Commit

Permalink
Fix api_record call
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Sep 11, 2024
1 parent 7c1a5bc commit b46ab77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pay/stripe/webhooks/customer_updated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def call(event)
# Couldn't find user, we can skip
return unless pay_customer.present?

stripe_customer = pay_customer.customer
stripe_customer = pay_customer.api_record

# Sync default card
if (payment_method_id = stripe_customer.invoice_settings.default_payment_method)
Expand Down

0 comments on commit b46ab77

Please sign in to comment.