Я пытаюсь настроить Stripe Payment Sheet. после полной настройки карты как получить идентификатор карты
STPAPIClient.shared.publishableKey = publishableKey
// MARK: Create a PaymentSheet instance
var configuration = PaymentSheet.Configuration()
configuration.merchantDisplayName = "Example, Inc."
configuration.customer = .init(id: customerId, ephemeralKeySecret: customerEphemeralKeySecret)
configuration.allowsDelayedPaymentMethods = true
self.paymentSheet = PaymentSheet(setupIntentClientSecret: paymentIntent, configuration: configuration)
paymentSheet.present(from: vc) { [weak self] result in
switch result {
case .completed:
case .canceled:
case .failed(let error):
}
}
Подробнее здесь: https://stackoverflow.com/questions/785 ... ment-sheet