• Resolved anneng1

    (@anneng1)


    Just to add more context: not only are payment collections failing, but refunds are also failing. This information is for your further reference. Everything worked fine after I switched to WooCommerce PayPal Payments (by PayPal) plugin.

    Error message for failed collections:

    2025-10-10T03:27:11+00:00 Error API error: Array ( [url] => https://api-m.paypal.com/v2/checkout/orders/317457256J937013M [method] => PATCH [http_status] => 422 [request] => Array ( [0] => Array ( [op] => replace [path] => /purchase_units/@reference_id==’default’ [value] => Array ( [amount] => Array ( [value] => 0.10 [currency_code] => USD [breakdown] => Array ( [item_total] => Array ( [currency_code] => USD [value] => 0.10 ) [shipping] => Array ( [currency_code] => USD [value] => 0.00 ) [tax_total] => Array ( [currency_code] => USD [value] => 0.00 ) [discount] => Array ( [currency_code] => USD [value] => 0.00 ) [handling] => Array ( [currency_code] => USD [value] => 0.00 ) ) ) [invoice_id] => VannCamp-43396 [custom_id] => 43396 [items] => Array ( [0] => Array ( [name] => test -4 [quantity] => 1 [sku] => 42312 [description] => Product ID: 42312 [unit_amount] => Array ( [currency_code] => USD [value] => 0.10 ) ) ) [description] => Order 43396 from VannCamp [shipping] => Array ( [name] => Array ( [full_name] => Ying Anwei ) [address] => Array ( [address_line_1] => 10554 Caminito Flores [address_line_2] => [admin_area_1] => CA [admin_area_2] => San Diego [postal_code] => 92126 [country_code] => US ) ) [reference_id] => default ) ) ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [details] => Array ( [0] => Array ( [location] => body [issue] => VALIDATION_ERROR [description] => VALIDATION_ERROR ) ) [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => 7cc92baa3a9f7 [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/api/rest/reference/orders/v2/errors/#VALIDATION_ERROR [rel] => information_link [method] => GET ) ) ) )

    Error message for failed refunds:

    2025-10-10T07:01:13+00:00 Error API error: Array ( [url] => https://api-m.paypal.com/v2/payments/captures/3RE01384WW468304D/refund [method] => POST [http_status] => 422 [request] => Array ( [amount] => Array ( [value] => 10.00 [currency_code] => USD ) [invoice_id] => VannCamp-43406 ) [error] => Array ( [name] => UNPROCESSABLE_ENTITY [message] => The requested action could not be performed, semantically incorrect, or failed business validation. [debug_id] => c2e028dbfca87 [details] => Array ( [0] => Array ( [issue] => REFUND_NOT_ALLOWED [description] => Capture cannot be refunded. ) ) [links] => Array ( [0] => Array ( [href] => https://developer.paypal.com/docs/api/payments/v2/#error-REFUND_NOT_ALLOWED [rel] => information_link ) ) ) )

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.