The pits encountered in those years when accessing Google in-app purchases

1. Add your account to the test account.
2. When writing the program, make sure that the entered product SKU and BasketEncode64Key are correct.
3. In the configuration file of the program, declare the permissions

<using-permission andorid:name="com.android.vending.BILLING"/>

4. After the purchase process is over, it must be called in the onActivityResutl() method in the corresponding Activity

iabHelper.handlerActivityResutl(int requestCode,int resultCode,Intent data)

This is part of the purchase process and is used to end the purchase process normally. If this is not the case, the purchase process cannot end normally.

Guess you like

Origin blog.csdn.net/skateboard1/article/details/45621843