• Hello! We have been using this plugin successfully for some time, and we started to use woocommerce preorders aswell. This however doesnt work with paypal for some reason. The same client purchased non-preorder items minutes before, and there wasnt an issue. reference transactions are enabled, as described in your documentation.

    {

    "additional_properties": {},

    "body": {

    "name": "UNPROCESSABLE_ENTITY",

    "details": [

    {

    "issue": "PAYER_CANNOT_PAY",

    "description": "Payer cannot pay for this transaction. Please contact the payer to find other ways to pay for this transaction."

    }

    ],

    "message": "The requested action could not be performed, semantically incorrect, or failed business validation.",

    "debug_id": "a699bfb930281",

    "links": [

    {

    "href": "https://developer.paypal.com/api/rest/reference/orders/v2/errors/#PAYER_CANNOT_PAY",

    "rel": "information_link",

    "method": "GET"

    }

    ]

    },

    "duration_time": "xxxxxx",

    "header": {

    "APPLICATION_ID": "APP-5E943524K7903043A",

    "Access-Control-Expose-Headers": "xxxxxx",

    "BORDER-IP": "xxxxxx",

    "CALLER_ACCT_NUM": "YCMU8CWBA3C3G",

    "Date": "Sun, 19 Jan 2025 20:02:51 GMT",

    "Keep-Alive": "xxxxxx",

    "PROCESSING-IP": "xxxxxx",

    "PayPal-Gateway-Metadata": "xxxxxx",

    "SERVER_INFO": "xxxxxx",

    "Server-Timing": "xxxxxx",

    "paypal-debug-id": "a699bfb930281"

    },

    "status": 422

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

    (@mrclayton)

    Hi @cr44zy

    Have you tried to perform a test purchase of a pre-order item to see if your payment method is successful? According to the PayPal docs, the description for that error is:

    PAYER_CANNOT_PAY – Combination of payer and payee settings mean that this buyer cannot pay this seller.

    https://developer.paypal.com/api/rest/reference/orders/v2/errors/#PAYER_CANNOT_PAY

    The log file information you provided isn’t in a format that our plugin produces. Are you certain you are using our PayPal plugin and not confusing it with another PayPal plugin?

    What was the name of the log file where you pulled that log entry?

    Kind Regards

    Thread Starter cr44zy

    (@cr44zy)

    Hey and thanks for the quick reply. I am sorry, i posted the paypal rest response. The log pulled from wc_pcpp is below. I tried it in sandbox and its unssuccessful aswell.

    2025-01-19T18:59:55+00:00 Info Billing agreement token BA-9KJ30121YB2248921 created via PaymentPlugins\WooCommerce\PPCP\Rest\Routes\BillingAgreementToken::handle_post_request.
    2025-01-19T19:01:11+00:00 Info Capturing payment for PayPal order 9XN42438U0301572X via PaymentPlugins\WooCommerce\PPCP\PaymentHandler::process_payment. Order ID: 2262
    2025-01-19T19:01:11+00:00 Fehler API error: Array
    (
    [url] => https://api-m.paypal.com/v2/checkout/orders/9XN42438U0301572X/capture
    [method] => POST
    [http_status] => 422
    [request] => Array
    (
    )

    [error] => Array
    (
    [name] => UNPROCESSABLE_ENTITY
    [details] => Array
    (
    [0] => Array
    (
    [issue] => PAYER_CANNOT_PAY
    [description] => Payer cannot pay for this transaction. Please contact the payer to find other ways to pay for this transaction.
    )

    )

    [message] => The requested action could not be performed, semantically incorrect, or failed business validation.
    [debug_id] => 2a3c44d1d3aea
    [links] => Array
    (
    [0] => Array
    (
    [href] => https://developer.paypal.com/api/rest/reference/orders/v2/errors/#PAYER_CANNOT_PAY
    [rel] => information_link
    [method] => GET
    )

    )

    )

    )
    • This reply was modified 3 months, 2 weeks ago by cr44zy.
    Thread Starter cr44zy

    (@cr44zy)

    Hello @mrclayton , I am not sure whether I had to tag you so that my new message is seen, thats why try it again. I apologize if you already saw it

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @cr44zy

    Thank you for the reminder on this. Looking at the logs, the data structure is correct and the error is being caused as a result of PayPal’s API. I recommend you send a request to PayPal support and provide them with the debug ID.

    Debug ID: 2a3c44d1d3aea

    PayPal support can use that debug ID to lookup the logs and provide you with additional details on why that request is being rejected.

    Is that error only happening for that one customer or all customers that try to use pre-order? Because the billing agreement token was created, this isn’t because of a permission issue on your account. It’s possible this particular customer has a restriction on their account as it pertains to billing agreements.

    Kind Regards

    Thread Starter cr44zy

    (@cr44zy)

    Hi @mrclayton I feel like the error is happening for all customers. I am not 100% sure, but since i tried it in the sandbox environment and the same thing happened there, it seems that that conclusion is correct. I will contact paypals support, and come back with what they say.

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