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}
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.