#ajaybhalke-error

1 messages · Page 1 of 1 (latest)

neon cape
#

heya @tall pier! I'd suggest logging out the value of the PaymentIntent client_secret that you're passing into stripe.confirmCardPayment

#

and verifying if it's correct

tall pier
#

ok checking

tall pier
#

I cant see log in dashboard after I create
$intent = $stripe->paymentIntents->create([

neon cape
#

can you share the PaymentIntent id? it'll look like pi_123

#

you're creating direct charges i.e. creating the PaymentIntent on the connected account itself. So you won't be able to find the PaymentIntent on your account. You will need to search for the PaymentIntent on the connected account.

tall pier
#

oh got it
will check soon and back to here later
thank you

tall pier
#

just checked that I am creating charge from main account

using below code
const stripe = Stripe('pk_test_xxxxxx', {
stripeAccount: "acct_xxxxx"
});

hot ore
#

that code creates the charge on the connected account(it's a Direct Charge)

#

looking at your error message it probably means the string you passed for the secret actually has " " characters in it. I've seen it before. The " is not part of the error message, it's in the string you passed