#SkyFromMe

1 messages ยท Page 1 of 1 (latest)

quasi nebulaBOT
solar hornet
#

Hi ๐Ÿ‘‹ Do you have a question?

steep lantern
#

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

solar hornet
#

What do you mean "iOS lightweight SDK". Are you referring to the Stripe iOS SDK?

steep lantern
#

The Apple Pay SDK

#

We are using app clips, so we are space limited

solar hornet
#

That's the Stripe iOS SDK

#

Okay so

steep lantern
#

Part of, correct?

solar hornet
#

This is just for the client-side accepting of payments

#

What determines if the charge is a Connect Direct charge occurs on the server

steep lantern
#

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

solar hornet
#

And you'll need to initialize Stripe on the client-side with the Connect Account's public key

steep lantern
#

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?

solar hornet
#

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

steep lantern
#

Could you help me find that? I am not seeing it in the portal at all

solar hornet
#

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

steep lantern
#

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

solar hornet
#

Okay so you can pass a stripeAccount parameter when initializing the Stripe SDK in iOS?

steep lantern
#

No, that is the exact problem

#

Or at least I don't see how to do it