I am trying to create a payment link using the Square API and initially encountered the following error when passing the currency as USD:
{
“errors”: [
{
“category”: “INVALID_REQUEST_ERROR”,
“code”: “INVALID_VALUE”,
“detail”: “This business can only process payments in INR but amount was provided in USD.”,
“field”: “order.line_items[0].base_price_money.currency”
}
]
}
After changing the currency from USD to INR, the payment link was successfully created. But I require here to use currency ‘USD’. However, I am now facing a new issue shown in the screenshot.
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
The error message you’re seeing indicates that the business associated with your Square account is set up to process payments in INR (Indian Rupees), but you’re trying to create a payment in USD (United States Dollars).
Square requires that the currency used in a payment request matches the currency of the country where the Square account is based. Therefore, if your Square account is based in India, you must specify the currency as INR when creating a payment.
If you need to process payments in USD, you would need to have a Square account that is based in a country where USD is the official currency, such as the United States.
Currently, there isn’t a way to change the country of the account. When the country is selected on account creation that countries currency is the only currency that can be accepted with the account.