Checkout page language issue

marcopassarelli
Contributor
Contributor

I am trying to integrate with the PayPal Rest API and I have a problem when trying to create the checkout urls. I have tried with various locales but it doesn't always work. Accepted values are "it-IT", "en-GB", "da-DK", "ja-JP", but for example I cannot use "ru-RU" and "el-GR". Could someone help me?

Here  an example of the request to https://api-m.sandbox.paypal.com/v2/checkout/orders

{
    "intent": "CAPTURE",
    "purchase_units": [
        {
            "custom_id": "TRANSACTION_ID",
            "amount": {
                "currency_code": "EUR",
                "value": "1.00"
            }
        }
    ],
    "payment_source": {
        "paypal": {
            "experience_context": {
                "shipping_preference": "NO_SHIPPING",
                "payment_method_preference": "IMMEDIATE_PAYMENT_REQUIRED",
                "brand_name": "MY_BRAND",
                "locale": "el-GR",
                "landing_page": "GUEST_CHECKOUT",
                "cancel_url": "http://localhost:4200/cancel.html?brandName=MY_BRAND",
                "return_url": "http://localhost:4200/success.html?brandName=MY_BRAND"
            }
        }
    }
}
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.