#chavic

1 messages ยท Page 1 of 1 (latest)

tropic masonBOT
tight notch
#

The request above to capture the Payment Intent is made using the API keys of acct_18XduILnnDgcFFpD.

However that PI exists on a different account: acct_1JJwZICuOQwQZaHD

#

Looks like you're using Connect to create direct charges?

#

I think all you're missing is the Stripe-Account header on your capture API call

dull pewter
#

Alright, I'll add that and get back to you.
Thanks

pallid flint
#

@dull pewter did that work? ๐Ÿ™‚

dull pewter
#

not exactly, I'm trying to get the full error
But i got this:

Unexpected "acct_1JJwZICuOQwQZaHD
#

not sure if the quotes got into the header string

pallid flint
#

hmm seems like the account ID isn't getting set correctly.

#

Unfortunately, my rust skills aren't great ๐Ÿ˜…

Can you share the code adding the account header in a request?

#

How are you passing it in when creating a PaymentIntent?

dull pewter
#

Seems I hit the character limit, that file has the code and detials

Right now, I'm testing to see if a quote got into the final string

pallid flint
#

Hmm okay. As far as I can tell, your code creating a PaymentIntent is setting the Stripe-Account header correctly.
Are you following the same syntax in capture PaymentIntent code?

dull pewter
#

this is possibly a GraphQL error, based on the fact that my client receives this error and none of the println functions in the capture stripe function show up in the server console (the rust part).

I'll check that right now

pallid flint
#

๐Ÿ‘

dull pewter
#

It worked, turns out there was a missing : right before "${stripeId}"

stripePaymentCapture(stripeId: "${stripeId}", paymentIntentId: "${paymentIntentId}")

Adding that fixed the code

#

Thanks

pallid flint
#

Ah nice! Glad you figured it out