I want to reproduce the pending status when charging in-app.

Asked 1 years ago, Updated 1 years ago, 98 views

Nice to meet you.
Let me ask you a question about Android in-app billing.

We are currently developing Android at Eclipse (Java).
I'm thinking about how to deal with the situation when the payment is put on hold at the time of billing.

Question

We have received an inquiry from a customer that the purchase status on Google side is "hold" and cannot be completed when charging in-app.

Details of the case where the order will be placed on hold↓
https://support.google.com/payments/answer/6220327?hl=ja

Currently, error handling is implemented separately from user cancellation and failure.
There was no action to take if it went into a pending state, and I didn't know how to reproduce the pending state.

Therefore, I would like to know if there are any countermeasures or ways to reproduce the pending status.
Thank you for your cooperation.

Current source code

Responding to a GooglePlay server that does not succeeding

OnIabPurchaseFinishedListener=newOnIabPurchaseFinishedListener(){
        public void onIabPurchaseFinished(IabResult result, Purchase info) {
            if(result.isFailure()){

                switch(result.getResponse()){
           // User Cancellation
                caseIabHelper.BILLING_RESPONSE_RESULT_USER_CANCELED:
                caseIabHelper.IABHELPER_USER_CANCELLED:
                    Log.d("ApiInAppBilling", "[ERROR] User Cancellations");
                    CustomDialog customDialog = new CustomDialog (BuyPoint.this,
                            getString(R.string.point_buy_cancel), getString(R.string.ok), "";
                    customDialog.setCancelable(false);
                    customDialog.show();
                    break;
                default:
                // time of failure
                    Log.d("ApiInAppBilling", "[ERROR] Result Failed";

                    new AlertDialog.Builder (BuyPoint.this)
                    .setTitle("Error")
                    .setMessage(getString(R.string.point_buy_error))
                    .setPositiveButton(R.string.ok, null)
                    .setCancelable(false).show();
                    break;
                }

                return;
            }

 // Below are normal actions

Supplementary Information

Language Java Development Environment ·Eclipse 4.2
Build Target 19 (Android 4.4.2)

java android json eclipse in-app-billing

2022-09-29 21:25

1 Answers

As you may be watching, Linked says that if the following status is placed on hold, check the following:

 - Card number does not contain spaces or dashes
 - The card has not expired and you have entered the correct expiration date.
 - Correct Card Confirmation Code (CVC) entered
 - The billing address matches the billing address of the credit or debit card.

If the expired card or card number is incorrect, I think I can reproduce it.
Give me a hint!


2022-09-29 21:25

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.