#davidl-paymentintent

1 messages · Page 1 of 1 (latest)

foggy eagle
#

do you have the request ID of the failing request?

limber turtle
#

req_13XPMtRgYVUcxq

foggy eagle
#

👀

#

and tbc, the secret you're providing here looks like pi_***_secret_***?

limber turtle
#

Thats correct

#

It's the one being created and returned to the front end

foggy eagle
#

the secret is definitely invalid

#

unfortunately, I can't see the value passed - it's redacted in all logs

limber turtle
#

It works when I'm not doing a direct charge

foggy eagle
#

ah

limber turtle
#

aka when I'm not adding stripe_id

foggy eagle
#

yeah, that'll do it - it's looking for the payment intent on the wrong stripe account

limber turtle
#

but our platform supports both direct and indirect payments

#

oh boy

foggy eagle
#

you need to pass the stripe_account parameter to the stripe.js call as well

limber turtle
#

What needs to change? Publishable id?

#

i am

foggy eagle
#

could you link your code here?

#

I'm not seeing the stripe_account param populated on the request

limber turtle
#

<stripe-element-payment
v-if="stripeAccount"
ref="paymentRef"
:pk="pk"
:elements-options="elementsOptions"
:confirm-params="confirmParams"
:stripe-account="stripeAccount"
/>

#

Probably not helpful

#

Using vue

#

What's interesting is I see it in the vue prop but dont see it in the request

foggy eagle
#

could you link the full code, incl the script component? if it's too long to put in discord, you can create a gist & link it here. https://gist.github.com/discover

Gist

GitHub Gist: instantly share code, notes, and snippets.

limber turtle
foggy eagle
#

hmm, though the doc you linked before seems to indicate this is supported on new versions

#

tbc, vue-stripe is a 3rd party lib & I'm not familiar with it

limber turtle
#

latest comment was dec 21 saying someone couldnt get it working

#

yeah I understand

#

Can you link to tut on doing this with stripes js?

foggy eagle
limber turtle
#

Whats the diff between checkout session and payment intent?

foggy eagle
#

checkout is a stripe-hosted page that does a standalone payment flow

#

stripe elements allows you to embed payments / card elements on a page you otherwise control

limber turtle
#

ohhh yeah we want to control that aspect. I just figured instead of using vue, I'd use your js to implement on my end

foggy eagle
#

elements is more complicated but gives you more control over the payment page