mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-02-13 15:04:53 +00:00
fix improper param key
This commit is contained in:
parent
e208ef3dfa
commit
81a42af4d9
@ -10,7 +10,7 @@ module DiscourseDonations
|
||||
def charge(email, opts)
|
||||
customer = ::Stripe::Customer.create(
|
||||
email: email,
|
||||
source: opts[:source]
|
||||
source: opts[:stripeToken]
|
||||
)
|
||||
::Stripe::Charge.create(
|
||||
customer: customer.id,
|
||||
|
@ -15,7 +15,7 @@ module DiscourseDonations
|
||||
end
|
||||
|
||||
it 'creates a customer and charges them an amount' do
|
||||
options = { email: email, source: 'stripe-token', amount: '1234', other: 'redundant param' }
|
||||
options = { email: email, stripeToken: 'stripe-token', amount: '1234', other: 'redundant param' }
|
||||
::Stripe::Customer.expects(:create).with(
|
||||
email: email,
|
||||
source: 'stripe-token'
|
||||
|
Loading…
x
Reference in New Issue
Block a user