#chavic
1 messages ยท Page 1 of 1 (latest)
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
Alright, I'll add that and get back to you.
Thanks
@dull pewter did that work? ๐
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
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?
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
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?
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
๐
It worked, turns out there was a missing : right before "${stripeId}"
stripePaymentCapture(stripeId: "${stripeId}", paymentIntentId: "${paymentIntentId}")
Adding that fixed the code
Thanks
Ah nice! Glad you figured it out