#arturs.nikiforovs

1 messages · Page 1 of 1 (latest)

wide kindleBOT
sudden belfry
#

Which flow is that? Payment Sheet?

placid trellis
#

No

#

Payment sheet looks different as you know

#

This is native Stripe

sudden belfry
#

Payment Sheet is a native mobile UI

#

You'll have to elaborate on which flow this is then

placid trellis
#

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

sudden belfry
#

Hmm, I believe that UI should support other non-card methods

#

Can you share the Payment Intent ID or Customer ID from the screenshot?