#arturs.nikiforovs
1 messages · Page 1 of 1 (latest)
Which flow is that? Payment Sheet?
Payment Sheet is a native mobile UI
You'll have to elaborate on which flow this is then
So, you ask me to show what we use in Stripe SDK as you dont know which Stripe flow it is ?
STPPaymentConfiguration.shared.canDeletePaymentOptions = self.canDeleteCards
paymentContext = STPPaymentContext(customerContext: customerContext)
paymentContext?.delegate = self
paymentContext?.hostViewController = self
paymentContext?.modalPresentationStyle = .fullScreen
if let amount = amount {
self.paymentContext?.paymentAmount = amount
} else {
self.paymentContext?.paymentAmount = topupOption!.value
}
paymentContext?.paymentCurrency = topupOption!.currencyCode!
paymentContext?.paymentCountry = topupOption!.countryCode!
if StripeAPI.deviceSupportsApplePay() || !gAppSetting.isTopupFlowEnabled {
paymentContext?.presentPaymentOptionsViewController()
} else {
paymentContext?.requestPayment()
}
there is a part of code
We use STPPaymentContext
paymentContext?.presentPaymentOptionsViewController()
this line of code show Stripe view natively without any changes