[英]Why is TokenCallback in stripe not working?
I'm trying to implement TokenCallback and CardUtils in my app and i get the error "cannot resolve symbol TokenCallback".我正在尝试在我的应用程序中实现 TokenCallback 和 CardUtils,但出现错误“无法解析符号 TokenCallback”。 Can someone tell me what i'm doing wrong.有人可以告诉我我做错了什么。
I already have implementation 'com.stripe:stripe-android:14.0.0' in my app's build.gradle我已经在我的应用程序的 build.gradle 中实现了 'com.stripe:stripe-android:14.0.0'
That TokenCallback was deprecated and removed.该 TokenCallback 已被弃用并删除。 It was replaced with ApiResultCallback<Token>
as shown here: https://github.com/stripe/stripe-android/blob/36a5e8fcbd3aefe1be7598143d68890ed1c101c5/MIGRATING.md#migrating-from-versions--1100它被替换为ApiResultCallback<Token>
,如下所示: https : //github.com/stripe/stripe-android/blob/36a5e8fcbd3aefe1be7598143d68890ed1c101c5/MIGRATING.md#migrating-from-versions--1100
For reference, this is the section of the example that uses that callback: https://github.com/stripe/stripe-android/blob/f6bbb10c1c5048818ae65fb0a968c2538a4a060f/example/src/main/java/com/stripe/example/activity/CreateCardTokenActivity.kt#L136作为参考,这是使用该回调的示例部分: https : //github.com/stripe/stripe-android/blob/f6bbb10c1c5048818ae65fb0a968c2538a4a060f/example/src/main/java/com/stripe/example/activity/CreateCardTokenActivity .kt#L136
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.