#Scott-connect-wallets
1 messages · Page 1 of 1 (latest)
Hey! Yes I have
Can you share some details? An error?
This is the console after trying to pay with google pay
Can you paste that Payment Intent ID please?
Sure
pi_3KLnBhPmNVKzaezx0McxXbrb
The Connect Account the PI was made for is: acct_1KKVLvPmNVKzaezx
Taking a look
How are you initialising Stripe.js? Are you passing the stripeAccount parameter there too?
The 404 error suggests the Payment Intent doesn't exist on the account the API keys belong to
Which implies to me you're using the platform publishable key with Stripe.js, but not passing the connected account (acct_1KKVLvPmNVKzaezx) when initialising: https://stripe.com/docs/js/initializing#init_stripe_js-options-stripeAccount
On the backend, I am doing this bit of code to set the stripe account to acct_1KKVLvPmNVKzaezx
Should I be doing something on the frontend too?
Yep! See the link above
Can you share the part in your front-end code where your include/initialise Stripe.js?
OMG IT WORKED
You can see how it was before compared to now!
You have no idea how much this was messing with my head, I rewrote my code 6 times 🤣
Yay! FWIW, this is referenced here: https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
Useful doc if you're new to Connect
I am indeed, I have learnt a lot over the past 3 weeks to build my company! I will save this link for the future