草庐IT

didCreatePaymentResult

全部标签

ios - 通过 Stripe for iOS 充电

我在通过Stripe向用户收费时遇到问题。我在以下委托(delegate)方法中收到的paymentResult对象funcpaymentContext(_paymentContext:STPPaymentContext,didCreatePaymentResultpaymentResult:STPPaymentResult,completion:@escapingSTPErrorBlock){}是一个STPCard对象,但根据文档完成对我的后端的收费我需要一个STTPoken。我试过使用STPAPIClient.shared().createToken(withCard:card){