#Liuzhibin-ios

1 messages · Page 1 of 1 (latest)

fossil sky
worn peak
#

Hello, I would like to ask, in iOS, can we decide attach card in the stripe payment process?

fossil sky
#

@worn peak I saw you are in touch with a colleague of mine over email in your native language, so it would be a little easier if you just asked your questions there.

worn peak
#

Attach card, is it controlled by App or backend?

fossil sky
#

it's both, it depends exactly how you are using the SDK.

#

you were using STPPaymentOptionsViewController last time we talked, that attaches the card automatically(since it uses an ephemeral key to manage a Customer object) ,for example.

worn peak
#

I use STPPaymentOptionsViewController, how to control the attach card

#

How do I decide whether to attach card after payment?

fossil sky
#

it gets attached automatically (before the payment), that's how STPPaymentOptionsViewController works.

worn peak
#

Using STPPaymentOptionsViewController, I couldn't find how to control Attach Card API

#

On Android, you have direct control attach Card

#

But on iOS, I can't find it

fossil sky
#

I don't think the iOS SDK has anything like that, yep

worn peak
#

How do I control 'Attach Card' on iOS App

fossil sky
#

it gets attached automatically (before the payment), that's how STPPaymentOptionsViewController works.

#

so you'd need to not use STPPaymentOptionsViewController.

#

I saw you are in touch with a colleague of mine over email in your native language, so it would be a little easier if you just asked your questions there.