Executed the following steps for running the sample application, but the application is failing with payment error.
- Downloaded the sample application from android SDK
- Added Google Play public key to the sample application code.
- Changed the package name of the sample application.
- Built the sample application in release mode and sign it.
- Created a product list for the sample application.
- Published the items of product list (sword_001 and potion_001) for the draft version of sample application.
- Test account registered under the Google Play publisher account.
- Verified that device is running a supported version of the Google Play application.
- Installed the same signed application onto the device.
10.My test account is the primary account on my device.
11.Ran the application and purchased the sword.
When I try to do a purchase getting the following error while the order is being authorized (‘authorize payment’ is displayed), this usually happens about 30 seconds after the order has been placed (i.e. ‘accept & buy’ has been tapped).
“Your payment could not be processed. sign in to your google wallet account to request support”
Does anyone experiencing the same error ?
Thanks in advance.
Problem got fixed when I changed the API version number inside makeRequestBundle() method of BillingService.Java:
request.putInt(Consts.BILLING_REQUEST_API_VERSION, 1);
to
request.putInt(Consts.BILLING_REQUEST_API_VERSION, 2);