#deondk-error
1 messages · Page 1 of 1 (latest)
I would look at any logs your code emits. Look at the browser console. Look at your Stripe API logs (https://dashboard.stripe.com/test/logs). Add print statements to the code you wrote
how did you get that link exactly?
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)
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'
});
your variable is probably null!
also what is "MerchantKey" ? you never need their key, you need their Account ID acct_xxx, that's all
yes that is their accountid
we use a lot of different paymentgateways so started calling it that long ago
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
ok
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