You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stripe::InvalidRequestError: Some of the parameters you provided (payment_method) cannot be used when modifying a SetupIntent that was created by Checkout. / Ruby example / #stripe )
#3049
Open
YumaInaura opened this issue
Mar 27, 2020
· 0 comments
require'stripe'Stripe.api_key=ENV['STRIPE_SECRET_KEY']checkout_session=Stripe::Checkout::Session.create(payment_method_types: ['card'],mode: 'setup',success_url: 'http://example.com',cancel_url: 'http://example.com')payment_method=Stripe::PaymentMethod.create(type: 'card',card: {number: '4242424242424242',exp_year: 2030,exp_month: 01})# Stripe::InvalidRequestError:# Some of the parameters you provided (payment_method) cannot be used when modifying a SetupIntent that was created by Checkout.# You can try again without those parameters.Stripe::SetupIntent.update(checkout_session.setup_intent,{payment_method: payment_method.id},)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: