• 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

  • You must be logged in to reply to this topic.