@umituz/react-native-subscription 2.17.1 → 2.17.3
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-subscription",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.3",
|
|
4
4
|
"description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -67,8 +67,9 @@ export function useCompletePendingPurchase({
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
// Clear pending BEFORE purchase to prevent double processing
|
|
70
|
+
// Clear pending and close paywall BEFORE purchase to prevent double processing
|
|
71
71
|
clearPendingPurchase();
|
|
72
|
+
closePaywall();
|
|
72
73
|
|
|
73
74
|
try {
|
|
74
75
|
const result = await purchasePackage(pkg);
|
|
@@ -76,7 +77,6 @@ export function useCompletePendingPurchase({
|
|
|
76
77
|
if (result.success) {
|
|
77
78
|
if (__DEV__) console.log("[CompletePendingPurchase] Purchase SUCCESS");
|
|
78
79
|
onPurchaseSuccess?.();
|
|
79
|
-
closePaywall();
|
|
80
80
|
return true;
|
|
81
81
|
} else {
|
|
82
82
|
if (__DEV__) console.log("[CompletePendingPurchase] Purchase FAILED");
|