How do I test the IAP SDK in China?

My app is integrating IAP 6.1.1 for in-app subscriptions. However, the startPayment interface could not succeed, prompting: Server error (currency: CNY)

Prerequisites:

  1. I have applied for a Samsung account in the United States.
  2. The beta version of my app has been deployed.
  3. I logged into my Samsung account on my device.
  4. My account has been added to the license test list.
  5. My device is connected to wifi and VPN.

When I pull up the payment page, I keep being prompted: Server error (currency: CNY), error code: -1002.
Error Code: UP1002/app_package_name
[Mode: Beta]

What can I do to get rid of this bug, or in other words, how can I test the IAP SDK in China?

Thank.

Hello hongyun1223654
Welcome to Samsung Developer Community.

VPN can’t be used. For testing IAP in China, real payment needs other country’s usim.
Test payments(no charge) is available by OPERATION_MODE_TEST or closed beta with license tester.

Thank you,
Jakia

Hi Jakia:

As you said, the operation mode I currently set in the code is OPERATION_MODE_TEST, and the account I logged on the device is the license test account, but I still can’t pay normally. the error message is: Server error occurred. (currency: CNY).

I don’t know how this error occurred, what should I do?

Thank.

image

1 Like

I have the same question, have you solved it?

Hi hongyun1223654,
Could you please reproduce your issue and get the dumpstate log of your device? Please share the log by creating a support request from Developer Support channel.

We will investigate your issue and try to assist you accordingly.

Thank you,
Jakia

I have the same question, have you solved it?