react-native-iap 12.3.0 → 12.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -514,10 +514,7 @@ class RNIapModule(
514
514
  }
515
515
  val flowParams = builder.build()
516
516
  val billingResultCode = billingClient.launchBillingFlow(activity, flowParams).responseCode
517
- if (billingResultCode == BillingClient.BillingResponseCode.OK) {
518
- promise.safeResolve(true)
519
- return@ensureConnection
520
- } else {
517
+ if (billingResultCode != BillingClient.BillingResponseCode.OK) {
521
518
  val errorData = PlayUtils.getBillingResponseData(billingResultCode)
522
519
  promise.safeReject(errorData.code, errorData.message)
523
520
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "description": "React Native In App Purchase Module.",
5
5
  "repository": "https://github.com/dooboolab/react-native-iap",
6
6
  "author": "dooboolab <support@dooboolab.com> (https://github.com/dooboolab)",