Location>code7788 >text

FAQ】HarmonyOS SDK Closed Source Open Capability -IAP Kit (3)

Popularity:992 ℃/2024-10-23 15:03:12

1. Description of the problem:

If you have already purchased a subscription type item and did not call the finishPurchase interface to re-purchase the item, the createPurchase interface returns error 001860001: System internal error, and it is recommended to return error 1001860051 to make it easier for the business to be handled in a uniform manner.

Solution:

The error code about the 1001860001 internal error suggests System internal error. iap_response_result_not_ship_confirm ;.
The official API documentation for the 1001860051 error code is defined as: Failed to purchase a product because the user already owns the product ; because the user already owns the product, the purchase fails ; the user already owns the product, the purchase fails ; the user already owns the product, the purchase fails.
These are two different scenarios, the first one emphasizes unshipped goods and the second one emphasizes repeat purchases; for a single purchase scenario for consumable goods, the processing may be the same, but if the type of the goods is non-consumable goods or auto-renewal subscription goods, then the subscription scenario may be different;
For details, you can refer to the API documentation for a description of the steps to handle the 1001860051 error code:
/consumer/cn/doc/harmonyos-references-V5/iap-error-code-V5#section5254205612317

2. Description of the problem:

Mentioned in /consumer/cn/doc/harmonyos-guides-V5/iap-subscription-functions-V5. Switching subscription with immediate effect: the remaining amount of the user's original subscription will be converted to the number of days of the new subscription, extending the validity of the new subscription. Currently this switching effect is triggered by a scenario where the renewal cycle of the original subscription is the same as the renewal cycle of the subscription that is about to be replaced.
1. Confirm the specific amount represented by the pro rata upgrade. For example, if a user buys a one-year (365-day subscription) and upgrades on a different number of days in each month (upgrading from $25 to $35), Huawei will give the user's subscriber a discounted number of days.
2. How should the number of days converted be sensed (can it be sensed by the current notification receiving expiresTime - the last stored expiresTime)

Solution:

Question 1

A: If it was used on the same day, even if it was 1s, it will be discounted according to one day. Anything less than a day is counted as 1 day.

Question 2

A: Commodity B's end time - Commodity B's start time Subtract the period of the commodity itself, e.g. for a yearly package, subtract 1 year.

3. Description of the problem:

The settlement requires the following information for Huawei IAP's reconciliation settlement data processing, can you provide the following information?
1. Daily billing details
2. Order details for monthly payments
3. Is there any bad debt situation in the current IAP? If there is a bad debt, is Huawei the cost bearer for the bad debt portion?
4、Will Huawei refund the drawback of the drawn order after the user is refunded?

Solution:

1. Daily billing details

We suggest that you can enter the self-service billing page, log in to the Developer Alliance, enter the "Management Center", click "My Account", select "Earnings" and enter the self-service billing page to view the daily billing details. Go to the self-service billing page to view the daily billing details.

You can refer to the self-checkout guide for details:/consumer/cn/doc/start/checkoutguide-0000001053128363

2、Order details of monthly payment

It is recommended that you can enter the self-service settlement page, log in to the Developer Alliance, enter the "Management Center", click "My Account", select "Earnings", and enter the self-service settlement page to view the settlement You can view the bill in the self-settlement page;

Click on "Download Statement" or "Reconciliation Details" to check the current month's settlement data.

You can refer to the self-checkout guide for details:/consumer/cn/doc/start/checkoutguide-0000001053128363

3. Is there any bad debt situation in the current IAP? If there is a bad debt, is Huawei the cost bearer for the bad debt portion?

Bad debts are receivables that are uncollectible or have a very small possibility of recovery. Currently, IAP does not and cannot have bad debts, because when a user buys an in-app product from a developer, the user can only enjoy the relevant rights and benefits after the purchase and payment are successful and the app confirms the shipment of the product; if the user does not make the payment or the payment is unsuccessful, the transaction itself is not completed.

4、Will Huawei refund the drawback of the drawn order after the user is refunded?

After the user is refunded, Huawei will refund the drawback on the drawn order.

4. Description of the problem:

When calling Huawei Pay, there is a pop-up box "Application information verification failed, please contact the merchant", which part of the process is wrong?

Solution:

It is because the clientid is not configured or is misconfigured.

Please follow the link below to check if the corresponding information clientId is correctly configured.

/consumer/cn/doc/harmonyos-guides-V5/payment-config-app-identity-info-V5