#SkyFromMe
1 messages · Page 1 of 1 (latest)
Hey there, the docs for this are here:
https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
STPAPIClient.shared().stripeAccount = "{{CONNECTED_STRIPE_ACCOUNT_ID}}"
(in addition to using your platform publishable key)
Note that for versions < v19 theres another configuration to set
What version are you using, and what exactly isn't working like you expect?
Okay, that might be what were missing, let me try it really quick
v22.8.2 I think
We seem to be having problems with that, it is saying shared is not a function. We just included ApplePay I believe for the App Cip
*clip
Are you able to perform operations as your own platform account (ie without the connected account)? Or are there issues even outside of the connected accounts set up?
We are moving to Standard Connected accounts under a parent account
We need it to hit directly to the Standard Account. We are using StripeApplePay the app clip and Stripe on the full and it doesn't seem to recognize STPAPIClient.shared()
We just tried with our iOS engineer, he tried with just STPAPIClient.share.stripeAccount. It looks like it is setting, but the payment fails
That doesn't match the documented configuration, (share vs shared()) so I'm not sure what that is doing
In what way does the payment fail? Can you share an example?
Request ID, or payment intent id etc
Is this issue only in the App Clip or in your full app too?
Okay, sorry, we got a couple of accounts mixed up. shared. works shared(). does not
Maybe they modified it in the latest version?
Ah that's possible - but that doesn't seem like something that would change.
But things are working for you now?
We got the full app working, checking the app clip
We are having some technical difficulties outside of Stripe at the moment though
Think we are good now, thank you for the help
Oh no - hope that gets better for you soon