DEV Community

Zachary Powell
Zachary Powell

Posted on

What Can I Do If the Redelivery Button Next to the Failed Order Does Not Work?

Below is an issue that was recently reported on, the developer in question wrote the below about what happened when they attempted to use the redelivery button on the failed orders report.

Our project integrated In-App Purchases. When I viewed the AppGallery Connect report, I found that there is a failed order data, and a redelivery button next to it. I thought the problem would be resolved after I clicked on the button.
However, nothing happened after I clicked on the button. Our server did not call back the payment result to trigger the redelivery.

Solution

In this case, you can submit a ticket to contact with our Huawei technical support.

In our own game's QQ group, I asked the SDK technical support about this case, and got a quick reply:

  1. The redelivery button works when the integrated IAP SDK version is 2.X and the payment callback address has been configured for the game. Clicking on the button will trigger the payment callback on the game server. The game server then redelivers the product. Tips: The IAP SDK 2.X will be removed from the market. If you are still using the old version, update the SDK as soon as possible.
  2. If the version of the IAP SDK is 3.X or later (our integrated version is 5.0), the redelivery button does not work, and you'll need to trigger the redelivery mechanism in the following scenarios:

    When the app launches.
    When the result code -1 (OrderStatusCode.ORDER_STATE_FAILED) is returned for a purchase request.
    When the result code 60051 (OrderStatusCode.ORDER_PRODUCT_OWNED) is returned for a purchase request.

The client then calls the obtainOwnedPurchases API to query the failed order, and sends the data to the server, which will redeliver the product.

References:

For details about the redelivery mechanism for IAP SDK 3.X or later, please refer to Redelivery Process for Consumables.

Top comments (0)