• Resolved Rafa? Gicgier

    (@gicolek)


    Hey guys,

    I am having some troubles setting up your plugin on my client’s site. I’ve already did the following:

    1. Connected to PayPal (both Sandbox and Production), to no avail.
    2. Checked for conflicts with other Payment Gateways, to no avail.
    3. I’ve checked the debug logs and enabled all debugging options as well, as I searched the forums here.

    So, the problem is that, the PayPal button is hidden on our checkout page, when I reveal it manually and try to force the payment, I get the following error:

    ( [name] => INVALID_REQUEST [message] => Request is not well-formed, syntactically incorrect, or violates schema. [debug_id] => 37658fc62d4a2 [details] => Array ( [0] => Array ( [field] => /intent [value] => [location] => body [issue] => INVALID_PARAMETER_VALUE [description] => The value of a field is invalid. ) )

    Our WooCommerce version is: 8.8.3, we’re also running: Woo Subscriptions: 6.2.0, WooCommerce Memberships: 1.26.4, WooCommerce Stripe Gateway: 8.3.1 and WooCommerce Legacy REST API: 1.0.1.

    Have you any suggestions on how could I debug / fix that? Any help will be highly appreciated. We’re not having any problems with Stripe / GPay whatsoever.

    Sincerely,
    Rafal Gicgier

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @gicolek

    1. When you say to no avail, do you mean you couldn’t connect the plugin to the PayPal business account?

    when I reveal it manually and try to force the payment, I get the following error:

    Is that the error message coming from the wc-ppcp log file? Can you share the full log entry from the wc-ppcp log file?

    I tried to review your checkout page but it looks like you have disabled PayPal at the moment.

    Kind Regards

    Thread Starter Rafa? Gicgier

    (@gicolek)

    Hey,

    Thank you for the quick answer. The thing is that, it is enabled, however for some odd reason, it is hidden. So I manually reveal it, through the inspector.

    024-06-12T05:18:54+00:00 Error API error: Array ( [url] => https://paypalconnect.paymentplugins.com/v1/status [method] => POST [http_status] => 404 [request] => Array ( [trackingId] => WMoQxTUl4qI8W5IXdgwxjm2WXi0MzzXj [environment] => sandbox ) [error] => Array ( [name] => RESOURCE_NOT_FOUND_ERROR [debug_id] => 613242890f2ca ) ) 2024-06-12T05:30:22+00:00 Error API error: Array ( [url] => https://api-m.paypal.com/v2/checkout/orders [method] => POST [http_status] => 400 [request] => Array ( [intent] => [payer] => Array ( [name] => Array ( [given_name] => Rafal [surname] => Gicgier ) [address] => Array ( [address_line_1] => ads [address_line_2] => [admin_area_1] => ACT [admin_area_2] => dasdas [postal_code] => 32432 [country_code] => AU ) [email_address] => [email protected] ) [purchase_units] => Array ( [0] => Array ( [amount] => Array ( [value] => 8.80 [currency_code] => AUD [breakdown] => Array ( [item_total] => Array ( [currency_code] => AUD [value] => 8.00 ) [shipping] => Array ( [currency_code] => AUD [value] => 0 ) [tax_total] => Array ( [value] => 0.80 [currency_code] => AUD ) [discount] => Array ( [value] => 0.00 [currency_code] => AUD ) [handling] => Array ( [currency_code] => AUD [value] => 0.00 ) ) ) [items] => Array ( [0] => Array ( [name] => Future Everything [quantity] => 1 [unit_amount] => Array ( [currency_code] => AUD [value] => 8.00 ) [sku] => 704276 [description] => Product ID: 704276 ) ) ) ) [application_context] => Array ( [shipping_preference] => NO_SHIPPING [return_url] => https://mysticmedusa.com/wc-api/ppcp_checkout_return/?_checkoutnonce=212e81e33c [cancel_url] => https://mysticmedusa.com/checkout/ [brand_name] => Mystic Medusa ) ) [error] => Array ( [name] => INVALID_REQUEST [message] => Request is not well-formed, syntactically incorrect, or violates schema. [debug_id] => 37658fc62d4a2 [details] => Array ( [0] => Array ( [field] => /intent [value] => [location] => body [issue] => INVALID_PARAMETER_VALUE [description] => The value of a field is invalid. ) ) [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_VALUE [rel] => information_link [encType] => application/json ) ) ) ) 2024-06-12T05:30:22+00:00 Error Error creating PayPal order. Msg: Request is not well-formed, syntactically incorrect, or violates schema. Params: Array ( [intent] => [payer] => Array ( [name] => Array ( [given_name] => Rafal [surname] => Gicgier ) [address] => Array ( [address_line_1] => ads [address_line_2] => [admin_area_1] => ACT [admin_area_2] => dasdas [postal_code] => 32432 [country_code] => AU ) [email_address] => [email protected] ) [purchase_units] => Array ( [0] => Array ( [amount] => Array ( [value] => 8.80 [currency_code] => AUD [breakdown] => Array ( [item_total] => Array ( [currency_code] => AUD [value] => 8.00 ) [shipping] => Array ( [currency_code] => AUD [value] => 0 ) [tax_total] => Array ( [value] => 0.80 [currency_code] => AUD ) [discount] => Array ( [value] => 0.00 [currency_code] => AUD ) [handling] => Array ( [currency_code] => AUD [value] => 0.00 ) ) ) [items] => Array ( [0] => Array ( [name] => Future Everything [quantity] => 1 [unit_amount] => Array ( [currency_code] => AUD [value] => 8.00 ) [sku] => 704276 [description] => Product ID: 704276 ) ) ) ) [application_context] => Array ( [shipping_preference] => NO_SHIPPING [return_url] => https://mysticmedusa.com/wc-api/ppcp_checkout_return/?_checkoutnonce=212e81e33c [cancel_url] => https://mysticmedusa.com/checkout/ [brand_name] => Mystic Medusa ) )

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @gicolek

    On the API Settings page did you click the Connect button and actually connect the plugin? That’s the first step in connecting the plugin to your PayPal account. You can also manually connect.

    If the payment method is filtered from the checkout page then you probably have some plugin that’s filtering it. The most common reason is a currency switcher plugin which you need to register the PayPal payment method with.

    Kind Regards

    Thread Starter Rafa? Gicgier

    (@gicolek)

    Hey,

    Thank you again!

    Yes, I did connect. Yes, we are using Aelia Currency Switcher for WooCommerce. Any tips on how integrate the two? I am not sure I understand the answer.

    Sincerely,
    Rafal

    Plugin Author Payment Plugins

    (@mrclayton)

    You need to go into the Aelia currency plugin settings and register the PayPal plugin with the currencies you have configured.

    The Aelia plugin filters payment methods that it doesn’t have configured for a given currency. So you need to tell Aelia what currencies you want to show PayPal.

    The Aelia documentation shows how to do this.

    Thread Starter Rafa? Gicgier

    (@gicolek)

    Hey,

    Thank you a lot for a quick reply! You gave me a great lead right away! I appreciate it a lot ??

    • This reply was modified 5 months, 2 weeks ago by Rafa? Gicgier.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.