mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +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
|
plan: plan_type
|
||||||
)
|
)
|
||||||
|
|
||||||
site.update(
|
site.stripe_customer_id = customer.id
|
||||||
stripe_customer_id: customer.id,
|
site.stripe_subscription_id = customer.subscriptions.first.id
|
||||||
stripe_subscription_id: customer.subscriptions.first.id,
|
site.plan_ended = false
|
||||||
plan_ended: false,
|
site.plan_type = plan_type
|
||||||
plan_type: plan_type
|
site.save_changes validate: false
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue