Closed 22106331 closed 2 years ago
Hi @22106331, thank you for reporting this issue. Can you please let us know which version of the Alipay SDK you are using? Also, are you able to update your code to reproduce? It seems like the callback
parameter is missing.
I tested our example app with the following code and could not reproduce the issue:
lifecycleScope.launch {
runCatching {
stripe.confirmAlipayPayment(
ConfirmPaymentIntentParams.createAlipay(clientSecret),
{ data -> PayTask(this@PaymentAuthActivity).payV2(data, true) },
callback = object : ApiResultCallback<PaymentIntentResult> {
override fun onSuccess(result: PaymentIntentResult) {
println("Success")
}
override fun onError(e: Exception) {
println("Error: $e")
}
}
)
}
}
I am using implementation(name:"alipaySdk-15.7.4-20200228192259", ext:"aar")
Also, are you running in test mode? Alipay does not support test mode payments.
Hi @22106331, thank you for reporting this issue. Can you please let us know which version of the Alipay SDK you are using? Also, are you able to update your code to reproduce? It seems like the
callback
parameter is missing.I tested our example app with the following code and could not reproduce the issue:
lifecycleScope.launch { runCatching { stripe.confirmAlipayPayment( ConfirmPaymentIntentParams.createAlipay(clientSecret), { data -> PayTask(this@PaymentAuthActivity).payV2(data, true) }, callback = object : ApiResultCallback<PaymentIntentResult> { override fun onSuccess(result: PaymentIntentResult) { println("Success") } override fun onError(e: Exception) { println("Error: $e") } } ) } }
I am using
implementation(name:"alipaySdk-15.7.4-20200228192259", ext:"aar")
Also, are you running in test mode? Alipay does not support test mode payments.
I am using implementation files('libs/alipaysdk-15.8.06.211122170115.aar') I am running in release mode.
I am using implementation files('libs/alipaysdk-15.8.06.211122170115.aar') I am running in release mode.
Hi @22106331, I mean that your Stripe dashboard account should be running in live mode:
I am using implementation files('libs/alipaysdk-15.8.06.211122170115.aar') I am running in release mode.
Hi @22106331, I mean that your Stripe dashboard account should be running in live mode:
Thanks, my problem is solved.
Summary
Pay anr with Alipay.
Code to reproduce
Android version
android11
Impacted devices
Installation method
gradle
Dependency Versions
implementation 'com.stripe:stripe-android:19.3.0' implementation 'com.stripe:stripe-wechatpay:19.3.0'
For kotlin: ./gradlew :dependencies | grep kotlin
For stripe-android: ./gradlew :dependencies | grep com.android.tools.build
For Android Gradle Plugin: ./gradlew :dependencies | grep com.stripe:stripe-android
For Gradle version: ./gradlew -v -->
kotlin: stripe-android: Android Gradle Plugin: Gradle:
SDK classes
Video
Other information