<SKPaymentQueue: 0x280602000>: Payment completed with error: Error Domain=ASDServerErrorDomain Code=2040 "目前無法購買此項目" UserInfo={NSLocalizedDescription=目前無法購買此項目}

When I test the sandbox payment, Apple often prompts me the following error:

<SKPaymentQueue: 0x280602000>: Payment completed with error: Error Domain=ASDServerErrorDomain Code=2040 "目前無法購買此項目" UserInfo={NSLocalizedDescription=目前無法購買此項目}

device infomation:

iPhone X, iOS 14.4; Xcode 14.2

What is causing the problem and how can it be fixed? ask for reply

The problem has been solved, because the region set by the sandbox account is different from the region set by the product.

In the sandbox environment, when using the TF account, some products also error: {Error Domain=ASDServerErrorDomain Code=2040 "现在不能购买此项目" UserInfo={NSLocalizedFailureReason=现在不能购买此项目}}. There is no problem with the account region and product region settings

has anyone encountered it?

&lt;SKPaymentQueue: 0x280602000&gt;: Payment completed with error: Error Domain=ASDServerErrorDomain Code=2040 "目前無法購買此項目" UserInfo={NSLocalizedDescription=目前無法購買此項目}
 
 
Q