Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add stripeAccount to STPPaymentConfiguration #875

Merged
merged 1 commit into from Jan 8, 2018
Merged

Conversation

bg-stripe
Copy link
Contributor

r? @danj-stripe

Currently, there's no way to use PaymentContext/AddCardVC on behalf of a connected account.

IOS-597

create a source on a connected account, set this property to the ID of the
account for which this request is being made.

@see https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That docs page says this authentication option works with the platform secret key (I'm nearly positive you can also use the platform publishable key too: DOCS-529).

Does the publishable key work? Should we update the docs?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the publishable key does work—this is what Stripe.js does when you set the stripeAccount property: https://stripe.com/docs/stripe-js/reference#stripe-function

This is somewhat covered, since tokenization can & should be done with a publishable key. It's also discussed in the sources documentation: https://stripe.com/docs/sources/connect#creating-direct-charges

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @fred-stripe ! :)

@stripe-ci stripe-ci assigned bg-stripe and unassigned danj-stripe Dec 21, 2017
@bg-stripe bg-stripe merged commit cc072bc into master Jan 8, 2018
@bg-stripe bg-stripe deleted the bg-stripe-account branch January 8, 2018 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants