#deondk-error

1 messages · Page 1 of 1 (latest)

dreamy cave
dreamy cave
#

how did you get that link exactly?

vivid stratus
#

in the console

#

it says my api keys are wrong

#

but Im pretty sure the are correct

dreamy cave
#

yeah you're using Connect

#

so you forgot to use StripeAccount

#

you need to do that, if you're using sripe.js's redirectToCheckout function

#

(but note you don't even need redirectToCheckout, you can just take the session.url on the backend and directly redirect to that now)

vivid stratus
#

I am setting stripe account

#

it is exactly same as my local where it is working perfectly

#

var stripe = Stripe('pk_test_FtRA3u0LL6JIVqdFAek3iW2N', {
stripeAccount: '@Model.SubVendor.MerchantKey'
});

dreamy cave
#

your variable is probably null!

#

also what is "MerchantKey" ? you never need their key, you need their Account ID acct_xxx, that's all

vivid stratus
#

yes that is their accountid

#

we use a lot of different paymentgateways so started calling it that long ago

dreamy cave
#

really I would just get rid of all that code since you don't need it, you can just get the session URL and redirect to it

vivid stratus
#

ok

dreamy cave
#

but anyway if it's not working either your variable for MerchantKey is null, or it's not the same account ID as the one you created the Session with on the backend