cardTextField using STPPaymentCardTextFieldpublicKey and clientSecretpublicKeyStripe.setDefaultPublishableKey(publicKey)STPPaymentMethodParams using the card informationSTPPaymentIntentParams using clientSecretconfirmPayment method// Submit the payment
let paymentHandler = STPPaymentHandler.shared()
paymentHandler.confirmPayment(withParams: paymentIntentParams, authenticationContext: self) { [weak self] (status, paymentIntent, error) in
// Returns the payment result; proceed with subsequent flow based on the result
}