AnchorFreePartner / hydrasdk-demo-android

Hydra VPN SDK demo app for Android
https://developer.anchorfree.com/
60 stars 31 forks source link

getting INVALID_PURCHASE purchase #140

Open singhmeenu opened 3 years ago

singhmeenu commented 3 years ago

Hi @naphaso / @timoshenkoav After adding payment method. I am using below function to pass the purchase json from google. sdk.getBackend().purchase("json from google", new CompletableCallback() { @override public void complete() { //purchase request success }

@override public void error(VpnException e) { //failed to process purchase } }); Passing json is {"orderId":"GPA.3370-5552-7700-38075","packageName":"com.quantum4u.vpn","productId":"com.vpn.onemonth","purchaseTime":1624727413110,"purchaseState":0,"purchaseToken":"hbllfnlmflaidnmiioamnhfb.AO-J1Oz4EUweDMdhVURH83ovJtUG6TcySARQT89RDgcv_cLrRABalmnSwjxt60-EBj2pVVQmgRE2Bb2fN4QNjdFs37ixbzdsTA","autoRenewing":true,"acknowledged":true}

and getting error is below PartnerApiException{code=200message=nullcontent=INVALID_PURCHASE}

Please help me.

Med-Foud commented 2 years ago

@singhmeenu Please Where will I find this json for my account?

Please help me ?