#jonthings

1 messages · Page 1 of 1 (latest)

twin cometBOT
vernal surge
#

Hi, what's the problem?

south token
#

I keep getting Invalid Token Id,
and im not sure what im doing wrong

vernal surge
#

What are you trying to do?
Could you please share a Request ID req_xxx or PaymentIntent ID pi_xxx?

south token
#

req_aHh6x8dKtH8EVV

#

im passing token id from stripe elements and then paymentMethods.create and pass the payload like so

const paymentMethod = await alphaStripe.paymentMethods.create(
            {
                type: 'card',
                card: {
                    token: token
                }
            }
        );
vernal surge
#

Thanks for sharing, let me check

#

I see, it seems like the token was created by a different account.

#

Please double check the secret key and publishable key and make sure they're from the same account.

south token
#

i double checked and they are from the same account :/
sk and the pk are from the same stripe account

vernal surge
#

I can't confirm that, unfortunately. That's why it is failing.
Maybe the key is overwritten somewhere.

south token
#

ok tysm i will check