#SkyFromMe
1 messages ยท Page 1 of 1 (latest)
Hi ๐ Do you have a question?
Yes, how do I make direct charge work with a Standard Account on the iOS lightweight SDK
?
I have poured through the docs, and looked at the library. Not seeing anything to assign a stripe account
What do you mean "iOS lightweight SDK". Are you referring to the Stripe iOS SDK?
Part of, correct?
This is just for the client-side accepting of payments
What determines if the charge is a Connect Direct charge occurs on the server
Correct, we have a node/web solution that is working
We follow the normal flow of they call to authorize the payment and bring down the secret from server. On mobile web they set the Stripe object with the account and then it works.
So node sets the acount, web sets the account ๐
If node sets the account and the App Clip doesn't it fails
Okay so if you want to create the charge as a Direct Charge on the Standard Account you will need to use the Account header in Node when creating the charge.
https://stripe.com/docs/connect/direct-charges
And you'll need to initialize Stripe on the client-side with the Connect Account's public key
I don't have a problem with the server, and the documentation you sent me is what I am doing. I am saying the App Clip with the stripped down SDK doesn't seem to have the option to set the Connect Account. Are you suggesting there is a different public key than the parent account?
The way you set the Connect Account in the client-side is to initialize the Stripe SDK using the Connect Account's public key
And it is different than the Platform's public key
Could you help me find that? I am not seeing it in the portal at all
Okay in the code snippet here, it shows how you are setting the .defaultPublishableKey. This is the value you would set using the Connect Account's publishable key
If I go to developer on the portal, i show one secret and one publishable key. If I select Connect and hit developer, it takes me to the parent account and shows the same keys i described.
Not sure how to find the Standard Connect publishable key
Okay so you can pass a stripeAccount parameter when initializing the Stripe SDK in iOS?