mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
dont require validation for card update
This commit is contained in:
parent
966e5106e8
commit
73607a5dfc
1 changed files with 5 additions and 6 deletions
|
@ -54,12 +54,11 @@ post '/supporter/update' do
|
|||
plan: plan_type
|
||||
)
|
||||
|
||||
site.update(
|
||||
stripe_customer_id: customer.id,
|
||||
stripe_subscription_id: customer.subscriptions.first.id,
|
||||
plan_ended: false,
|
||||
plan_type: plan_type
|
||||
)
|
||||
site.stripe_customer_id = customer.id
|
||||
site.stripe_subscription_id = customer.subscriptions.first.id
|
||||
site.plan_ended = false
|
||||
site.plan_type = plan_type
|
||||
site.save_changes validate: false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue