cafebazaar / Poolakey

Android In-App Billing SDK for Cafe Bazaar App Store
Apache License 2.0
71 stars 22 forks source link

Failing purchased #20

Closed mrzslr closed 4 years ago

mrzslr commented 4 years ago

Describe the bug Hi, recently I tried to implement my IAB using Poolakey library but I think something's wrong here. After a successful purchase in payment onActivtyResult method, right in the purchaseFailed callback I faced with an odd error message in localizedMessage: purchase was hijacked and it's not a valid purchase

Expected behavior I thought that after a successful purchase I should back to purchaseSucceed callback but I didn't. though all thing are sounds good.

Versions

PHELAT commented 4 years ago

Hi, There has to be an issue with your RSA public key, make sure that you have provided that correctly through PaymentConfiguration class. This error happens because of invalidity of the received data or inability to verify the data which in this case, it's probably something wrong with your RSA public key.

mrzslr commented 4 years ago

Thanks for your quick response. you were right, there were a mistake in providing RSA key.