简体   繁体   English

Stripe iOS集成获取付款交易ID

[英]Stripe iOS integration get payment transaction id

I have integrated Stripe with iOS and the payments are working with the test cards, however, I cannot find a way to get payment transaction id so that I can store the transaction id on my server for future reference. 我已经将Stripe与iOS集成在一起,并且付款可以与测试卡一起使用,但是,我找不到找到付款交易ID的方法,因此无法将交易ID存储在服务器上以备将来参考。

I looked into STPPaymentResult and STPPaymentContext but couldn't find anything. 我调查了STPPaymentResultSTPPaymentContext但找不到任何东西。

So is there a way I can get the transaction id after the payment has been charged using Stripe in iOS application? 那么在iOS应用程序中使用Stripe支付了付款后,有没有办法获取交易ID?

I found that STPPaymentResult returned during didCreatePaymentResult does contain transaction id. 我发现在STPPaymentResult期间返回的didCreatePaymentResult确实包含事务ID。 You can get it by paymentResult.source.stripeID 您可以通过paymentResult.source.stripeID来获取它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM