fix the params
This commit is contained in:
@@ -30,7 +30,7 @@ module DiscourseDonations
|
||||
payment = DiscourseDonations::Stripe.new(secret_key, stripe_options)
|
||||
|
||||
if params['amount'].present?
|
||||
charge = payment.subscribe(email, { plan: params[:amount] })
|
||||
charge = payment.subscribe(email, params.merge(plan: params[:amount]))
|
||||
else
|
||||
charge = payment.subscribe(email, params)
|
||||
end
|
||||
|
||||
@@ -8,4 +8,4 @@ en:
|
||||
submit: Make Payment
|
||||
submit_with_create_account: Make Payment and Create Account
|
||||
messages:
|
||||
success: Thank you, your payment has been successful.<br>Please <strong>check your email</strong> to get your log in link.
|
||||
success: Thank you, your payment has been successful.
|
||||
|
||||
Reference in New Issue
Block a user