Skip to content

Validation of transaction doesn't work ? #110

@StanKocken

Description

@StanKocken

Hi,

In my billing activity I put :

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.billing);
    BillingController.registerObserver(mBillingObserver);
    BillingController.checkBillingSupported(this);
    BillingController.setSignatureValidator(this);
}

@Override
public void onDestroy() {
    super.onDestroy();
    BillingController.setSignatureValidator(null);
    BillingController.unregisterObserver(mBillingObserver);
}

I don't do anything within my "mBillingObserver"

I want to purchase an item (added in my google play account) :

BillingController.requestPurchase(this, purchaseId, false, null);

After my purchased, I can see a toast "Thanks for your purchased for the play store" and I'm called on my method :

@Override
public boolean validate(String signedData, String signature) {
    Log.i(TAG, "validate " + signedData);
    // when a purchased need to be checked, just return false if the server side check return false
    // TODO add the server side check here
    return false; // change it by the server side verification
}

in my logcat I can see
"Billing(16214): Validation failed"

But the purchased wasn't canceled : I received an email from google to thanks me for my purchased.

Note : I don't call any other method of BillingController anywhere

Is it an error from me or from the billing library ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions