iaphub / react-native-iaphub

The easiest way to implement IAP (In-app purchase) in your React Native app.
https://www.iaphub.com/
MIT License
320 stars 21 forks source link

Receipt Failure #32

Closed sflanary97 closed 3 years ago

sflanary97 commented 3 years ago

Is anyone else constantly getting receipt failure errors? I'm in sandbox mode testing on a real iOS device for a subscription purchase. The actual in-app purchase flow works(click buy, input sandbox password, confirm, get alert box from apple that purchase was successful, etc) but after that every single time I get the error "FOUND: Error: Receipt validation on IAPHUB failed, receipt processing will be retried". Any suggestions on how to fix this? My function is exactly the same as the example buy function on the repo: try { var transaction = await Iaphub.buy("PRODUCTSKU", { // Optional property to override the default proration mode on Android (https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode) androidProrationMode: 1, // Optional callback triggered before the receipt is processed onReceiptProcess: (receipt) => { console.log('Purchase success, processing receipt...'); } });

/*

nikolay-slavov commented 3 years ago

Same here. Did you find solution?

jeffersribeiro commented 2 years ago

@sflanary97 did you find any solution?