• Resolved ralak

    (@ralak)


    Hi, we use the plguin in order to change currency when the user choose papal but got error

    2024-10-04T10:15:41+00:00 Debug POST https://api-m.sandbox.paypal.com/v1/oauth2/token?grant_type=client_credentials&response_type=client_token&intent=sdk_init&domains%5B%5D=entesarhusain.com
    Response Debug ID: f624013f8f67c
    Response: Array
    (
    [code] => 200
    [message] => OK
    )

    2024-10-04T10:15:58+00:00 Debug POST https://api-m.sandbox.paypal.com/v2/checkout/orders
    Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"KWD","value":"127.53","breakdown":{"item_total":{"currency_code":"KWD","value":"127.53"},"shipping":{"currency_code":"KWD","value":"0.00"},"tax_total":{"currency_code":"KWD","value":"0.00"}}},"description":"","items":[{"name":"\u0627\u0644\u062a\u0635\u0644\u0628 \u0627\u0644\u0645\u062a\u0639\u062f\u062f: \u0645\u0646 \u0627\u0644\u0641\u0647\u0645 \u0625\u0644\u0649 \u0627\u0644\u0642\u0648\u0629","unit_amount":{"currency_code":"KWD","value":"127.53"},"quantity":1,"description":"","sku":"","category":"DIGITAL_GOODS","url":"https:\/\/www.entesarhusain.com\/product\/%d8%a7%d9%85-%d8%a7%d8%b3-%d9%85%d9%86-%d8%a7%d9%84%d9%81%d9%87%d9%85-%d8%a5%d9%84%d9%89-%d8%a7%d9%84%d9%82%d9%88%d8%a9\/","image_url":"https:\/\/www.entesarhusain.com\/wp-content\/uploads\/2024\/06\/course-image.png","cart_item_key":"ac10ec1ace51b2d973cd87973a98d3ab"}],"custom_id":"pcp_customer_t_09df7d0c42a28cb97f1e2c3abd499a"}],"application_context":{"user_action":"PAY_NOW","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"ar","brand_name":"\u062f. \u0627\u0646\u062a\u0635\u0627\u0631 \u062d\u0633\u064a\u0646","return_url":"https:\/\/www.entesarhusain.com\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/www.entesarhusain.com\/checkout\/","payment_method":{"payee_preferred":"UNRESTRICTED"}},"payer":{"email_address":"[email protected]","name":{"given_name":"Amro","surname":"Hassan"},"address":{"country_code":"AE"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"971504402638"}}}}
    Response Debug ID: f87282364709c
    Response: Array
    (
    [code] => 422
    [message] => Unprocessable Entity
    )

    Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"issue":"CURRENCY_NOT_SUPPORTED","links":[],"description":"Currency code is not currently supported. Please refer https://developer.paypal.com/docs/integration/direct/rest/currency-codes/ for list of supported currency codes."}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"f87282364709c","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-CURRENCY_NOT_SUPPORTED","rel":"information_link"}]}
    2024-10-04T10:15:58+00:00 Warning Failed to create order. PayPal API response: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CURRENCY_NOT_SUPPORTED
    2024-10-04T10:15:58+00:00 Error Order creation failed: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CURRENCY_NOT_SUPPORTED
    2024-10-04T10:15:58+00:00 Error Order creation failed: [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CURRENCY_NOT_SUPPORTED

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hello Ralak,

    I hope you are doing well. Thank you for reaching out to us.

    Please ensure that PayPal supports the currency you have chosen (KWD). If it is not supported, you may need to select a different currency for your transactions.

    If you have any further questions or need assistance, feel free to ask.

    Best regards,

    Hello Ralak,

    I hope you are doing well.

    I apologize for the earlier response. There may be a compatibility issue with your PayPal plugin.

    Please navigate to:

    WooCommerce → Settings → Payment Gateway Currency → Compatibility and enable the appropriate choice for your plugin.

    Let me know if this resolves your issue.

    Best regards,

    Thread Starter ralak

    (@ralak)

    Hi, the option

    Always show PayPal : is ?Enable

    Show PayPal gateway for all currencies.

    and as I understand that I can use this plugin in order to convert currency in the checkout page for specific payment gateways like PayPal

    Hello Ralak,

    Yes, you can convert currency on the checkout page for selected payment gateways such as PayPal.

    do you mean that you tried enabling the compatibility settings as I sent you and the problem persists?

    Regards,

    Thread Starter ralak

    (@ralak)

    Yes the problem is still persists

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @ralak,

    Could you please let me know which plugin you are using to add PayPal to your checkout?

    Thread Starter ralak

    (@ralak)

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @ralak,

    Ok, thanks. Just to be sure – is the “WooCommerce PayPal Payments” checkbox in “WooCommerce > Settings > Payment Gateway Currency > Compatibility” enabled?

    Thread Starter ralak

    (@ralak)

    yes it’s enabled

    Thread Starter ralak

    (@ralak)

    this is the option

    Thread Starter ralak

    (@ralak)

    Hi, please see the images added got the error when choosing payPal as the payment gateway and the WooCommerce default currency is KDW which is not supported in PayPal so I used your plugin in order to convert currency for PayPal on the checkout page

    • This reply was modified 1 month, 2 weeks ago by ralak.
    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @ralak,

    I think I was able to reproduce and fix the issue. Could you please update the plugin to the latest v4.0.1 and let me know if that solves the problem?

    Thread Starter ralak

    (@ralak)

    yes it’s working thanks a lot

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @ralak,

    Happy to help ??

    Plugin Author Algoritmika

    (@algoritmika)

    P.S. If you like the plugin, please consider leaving me a rating.

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.