#kelenrojas

1 messages · Page 1 of 1 (latest)

valid tokenBOT
radiant pendant
#

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

alpine crystal
#

Thanks

#

Can you help me?

radiant pendant
#

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

alpine crystal
#

Ok let me try to explain

valid tokenBOT
alpine crystal
#

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?

radiant pendant
#

You want STPAPIClient.shared.stripeAccount = 'acct_123'

alpine crystal
#

Perfect I'm going to try it that way

#

thanks