Closed jacobrharris closed 5 years ago
I am getting this error also, but only when I am trying to use a Connect account and using the stripe_account option on the connectionsTokens.create method. Are you using a Connect account?
@twelvearrays We are using Connect, but we've always been using Connect. We used to be able to charge cards left and right.
Thanks for reporting this! We've got a fix going out soon (should be fixed if you try again in ~an hour) – sorry for the inconvenience!
This seems to be fixed. Thanks!
Hi, facing same issue. Can you please tell me how to add "stripeAccount" header from client side.
With the Node SDK this is how I added the header token when creating the connection token.
const token = await stripe.terminal.connectionTokens.create({ stripe_account: stripeAccount })
This is was on an express endpoint that the app called to get the token.
Also another example of when I created a payment intent:
const paymentIntent = await stripe.paymentIntents.create( { amount: amount, currency: 'usd', payment_method_types: [paymentMethodType], capture_method: 'manual' }, { stripe_account: stripeAcctId } )
Thanks for helping out @twelvearrays!
@suvarnaratna Hopefully your question is answered about client side usage of the header. We also have a set of docs on server side usage which may be of assistance in your integration [0].
[0] https://stripe.com/docs/connect/authentication#stripe-account-header
I've worked through the rc1 release doc, but now I'm getting this error when running
-[SCPTerminal processPayment:completion:]
:Direct creation of PaymentMethods for type 'card_present' is disallowed
The error object looks like this:
I'm using the Stripe Point of Sale test card fwiw.