#kelenrojas
1 messages · Page 1 of 1 (latest)
Hello there
Let's use this thread to chat @alpine crystal
You said: We trying to implement iOS payment component
How can I attached the connect account correspondence
@alpine crystal I'm moving your messages into this thread so we can chat here
Can you explain what you mean by "connect account correspondence"?
That isn't really a term we have
So not sure what you are referring to
Ok let me try to explain
hey
I'm using this code in ios
override func viewDidLoad() {
super.viewDidLoad()
StripeAPI.defaultPublishableKey = "pk_test_51NUsRaLfQVXnfxf6Ef5KuEePClCf7vMDjkbGrZsNhQdak6OJIpD1RSnqU6CEXnAByHjNMX6TpP9MyQCeWE5Y9eoU00xLaBW6fx"
view.backgroundColor = .systemBackground
view.addSubview(payButton)
NSLayoutConstraint.activate([
payButton.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: 16),
payButton.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -16),
payButton.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -16)
])
self.fetchPaymentIntent()
}
How can I insert or pass what is the connect account?
https://docs.stripe.com/connect/authentication?create-client=swift#adding-the-connected-account-id-to-a-client-side-application shows you how to authenticate client-side as the Connected Account
You want STPAPIClient.shared.stripeAccount = 'acct_123'