Title: Error Processing Checkout.
Last modified: January 13, 2022

---

# Error Processing Checkout.

 *  Resolved [amnosandwich](https://wordpress.org/support/users/amnosandwich/)
 * (@amnosandwich)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/)
 * Updated to the newest version- and again one problem after the other.
 * Currently experiencing the message ‘error processing checkout’ for certain customers
   trying to checkout.
 * Please see status log of 2 different attempted payments
 * (1: A customer in the USA)
 *     ```
       2022-01-13T00:10:50+00:00 DEBUG POST https://api.paypal.com/v1/identity/generate-token
       Response Debug ID: f61164d3f3216
       Response: Array
       (
           [code] => 200
           [message] => OK
       )
   
       2022-01-13T00:11:08+00:00 DEBUG POST https://api.paypal.com/v1/billing-agreements/agreement-tokens
       Request Body: {"description":"Checking if reference transactions are enabled","payer":{"payment_method":"PAYPAL"},"plan":{"type":"MERCHANT_INITIATED_BILLING","merchant_preferences":{"return_url":"https:\/\/example.com\/return","cancel_url":"https:\/\/example.com\/cancel","skip_shipping_address":true}}}
       Response Debug ID: 5e9cb6e6575c4
       Response: Array
       (
           [code] => 403
           [message] => Forbidden
       )
   
       Response Body: {"name":"AUTHORIZATION_ERROR","debug_id":"5e9cb6e6575c4","message":"Authorization error","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#AUTHORIZATION_ERROR","details":[{"name":"REFUSED_MARK_REF_TXN_NOT_ENABLED","message":"This merchant account is not permitted to create Merchant Initiated Billing Agreement"}]}
       ```
   
 * (2) A customer in Ireland trying PayPal and card and same 'error processing checkout'
   who tried multiple times:
 *     ```
       2022-01-12T18:14:49+00:00 DEBUG PATCH https://api.paypal.com/v2/checkout/orders/3SJ85064M3274223K
       Request Body: [{"op":"replace","value":{"reference_id":"default","amount":{"currency_code":"GBP","value":"30.50","breakdown":{"item_total":{"currency_code":"GBP","value":"30.00"},"shipping":{"currency_code":"GBP","value":"3.50"},"tax_total":{"currency_code":"GBP","value":"0.00"},"discount":{"currency_code":"GBP","value":"3.00"}}},"description":"","items":[{"name":"Crescent Moon & Star Adjustable Sterling Silver Ring","unit_amount":{"currency_code":"GBP","value":"30.00"},"quantity":1,"description":"The stunning Crescent Moon & Star Sterling Silver ring provides the perfect accentuation of glam to your hands! Its open ad","sku":"349677123","category":"PHYSICAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"CGTBAGTNTQ95S"},"shipping":{"name":{"full_name":"Julie Koppan"},"address":{"country_code":"GB","address_line_1":"233 Greenrigg Road","address_line_2":"","admin_area_1":"","admin_area_2":"Cumbernauld","postal_code":"G67 2QD"}},"custom_id":"221065","invoice_id":"feaddb-221065"},"path":"\/purchase_units\/@reference_id=='default'"}]
       Response Debug ID: 925abb2623103
       Response: Array
       (
           [code] => 422
           [message] => Unprocessable Entity
       )
   
       Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"location":"body","issue":"CANNOT_MIX_CURRENCIES","description":"CANNOT_MIX_CURRENCIES"}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"925abb2623103","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES","rel":"information_link","method":"GET"}]}
   
       2022-01-12T18:14:49+00:00 WARNING [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES
       2022-01-12T18:15:39+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders
       Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"EUR","value":"30.50"},"description":"","payee":{"merchant_id":"CGTBAGTNTQ95S"},"shipping":{"name":{"full_name":"Julie Koppan"},"address":{"country_code":"GB","address_line_1":"233 Greenrigg Road","address_line_2":"","admin_area_1":"","admin_area_2":"Cumbernauld","postal_code":"G67 2QD"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"LOGIN","locale":"en-GB","brand_name":"Phantom Jewels","return_url":"https:\/\/phantomjewels.co.uk\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/phantomjewels.co.uk\/checkout\/"},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}}
       Response Debug ID: e9062f0c61be8
       Response: Array
       (
           [code] => 201
           [message] => Created
       )
   
       2022-01-12T18:15:39+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders
       Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"EUR","value":"30.50"},"description":"","payee":{"merchant_id":"CGTBAGTNTQ95S"},"shipping":{"name":{"full_name":"Julie Koppan"},"address":{"country_code":"GB","address_line_1":"233 Greenrigg Road","address_line_2":"","admin_area_1":"","admin_area_2":"Cumbernauld","postal_code":"G67 2QD"}}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"SET_PROVIDED_ADDRESS","landing_page":"LOGIN","locale":"en-GB","brand_name":"Phantom Jewels","return_url":"https:\/\/phantomjewels.co.uk\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/phantomjewels.co.uk\/checkout\/"},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}}
       Response Debug ID: f8b163dce1548
       Response: Array
       (
           [code] => 201
           [message] => Created
       )
   
       2022-01-12T18:15:46+00:00 DEBUG  https://api.paypal.com/v2/checkout/orders/5MR52596CL5863333
       Response Debug ID: e377c67e48bf7
       Response: Array
       (
           [code] => 200
           [message] => OK
       )
   
       2022-01-12T18:15:46+00:00 INFO 3DS authentication result: Array
       (
           [liability_shift] => POSSIBLE
           [three_d_secure] => Array
               (
                   [enrollment_status] => Y
                   [authentication_status] => Y
               )
   
       )
   
       2022-01-12T18:15:48+00:00 INFO 3DS authentication result: Array
       (
           [liability_shift] => POSSIBLE
           [three_d_secure] => Array
               (
                   [enrollment_status] => Y
                   [authentication_status] => Y
               )
   
       )
   
       2022-01-12T18:15:48+00:00 DEBUG PATCH https://api.paypal.com/v2/checkout/orders/5MR52596CL5863333
       Request Body: [{"op":"replace","value":{"reference_id":"default","amount":{"currency_code":"GBP","value":"30.50","breakdown":{"item_total":{"currency_code":"GBP","value":"30.00"},"shipping":{"currency_code":"GBP","value":"3.50"},"tax_total":{"currency_code":"GBP","value":"0.00"},"discount":{"currency_code":"GBP","value":"3.00"}}},"description":"","items":[{"name":"Crescent Moon & Star Adjustable Sterling Silver Ring","unit_amount":{"currency_code":"GBP","value":"30.00"},"quantity":1,"description":"The stunning Crescent Moon & Star Sterling Silver ring provides the perfect accentuation of glam to your hands! Its open ad","sku":"349677123","category":"PHYSICAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"CGTBAGTNTQ95S"},"shipping":{"name":{"full_name":"Julie Koppan"},"address":{"country_code":"GB","address_line_1":"233 Greenrigg Road","address_line_2":"","admin_area_1":"","admin_area_2":"Cumbernauld","postal_code":"G67 2QD"}},"custom_id":"221065","invoice_id":"feaddb-221065"},"path":"\/purchase_units\/@reference_id=='default'"}]
       Response Debug ID: 3c7c972a16f25
       Response: Array
       (
           [code] => 422
           [message] => Unprocessable Entity
       )
   
       Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"location":"body","issue":"CANNOT_MIX_CURRENCIES","description":"CANNOT_MIX_CURRENCIES"}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"3c7c972a16f25","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES","rel":"information_link","method":"GET"}]}
   
       2022-01-12T18:15:48+00:00 WARNING [UNPROCESSABLE_ENTITY] The requested action could not be performed, semantically incorrect, or failed business validation. https://developer.paypal.com/docs/api/orders/v2/#error-CANNOT_MIX_CURRENCIES
       2022-01-12T18:17:22+00:00 DEBUG POST https://api.paypal.com/v1/identity/generate-token
       Response Debug ID: d5d9e4548fbab
       Response: Array
       (
           [code] => 200
           [message] => OK
       )
       ```
   
 * Can you please help and advise on these type of error processing message and 
   how this can be resolved please?
    -  This topic was modified 4 years, 5 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
    -  This topic was modified 4 years, 5 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: formatting

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

 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15248793)
 * Hi [@amnosandwich](https://wordpress.org/support/users/amnosandwich/),
 * The error `CANNOT_MIX_CURRENCIES` suggests an issue with your currency switcher
   plugin.
    The original order appears to be created in EUR at PayPal and later 
   when patched the plugin sends GBP as a currency instead.
 * Could you please tell us which plugin you are using for the currencies and whether
   or not the problem persists when you disable it?
    Thanks!
 * Kind regards,
    Niklas
 *  Thread Starter [amnosandwich](https://wordpress.org/support/users/amnosandwich/)
 * (@amnosandwich)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15249847)
 * Hello,
 * For that particular order it could only display in GBP at checkout with the way
   the website is set up, and could only be paid in GBP – it is also happening when
   they use PayPal or with a card, we don’t have a plugin and it is was set up by
   a developer via his coding, however I did have a WP Rocket Plugin which was causing
   caching issues with the currency – could this be related?
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15250136)
 * Hi [@amnosandwich](https://wordpress.org/support/users/amnosandwich/),
 * Thanks!
    I gave it another try and can reproduce the behavior on your site. But
   I think the problem is related to your currency switcher seemingly not working
   properly on the checkout page.
 * See, when I add the £34.99 ring to my cart and visit the checkout, the order 
   total would be £34.99 and the payment succeeds.
    But if I change the currency
   on the single product page, the same ring costs $50.00. Adding this product to
   the cart results in a cart total of $50.00 but a checkout total of £50.00! Clicking
   the PayPal button would then cause the `CANNOT_MIX_CURRENCIES` error.
 * So the previously selected currency is replaced with GBP on the checkout page
   in any case it seems. I’m not sure if it is intended to work like this or if 
   this is related to caching. But it must be related to the problem at hand.
    If
   you know a way to adapt the checkout currency to the same currency that was selected
   before, then it should work. If we could investigate the code for the currency
   switching then we should get a better understanding. Thanks!
 * Kind regards,
    Niklas
 *  Thread Starter [amnosandwich](https://wordpress.org/support/users/amnosandwich/)
 * (@amnosandwich)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15265992)
 * Hi Niklas,
 * We seem to have corrected that so that situation does not occcur, so I do appreciate
   you were able to identify that so we could rectify that issue with the currency
   converter.
 * We are however having failed transactions – please see the status log:
 *     ```
       2022-01-18T20:53:07+00:00 ERROR Client ID retrieval failed: Could not validate nonce.
       2022-01-18T20:54:05+00:00 DEBUG POST https://api.paypal.com/v1/identity/generate-token
       Response Debug ID: 7d56a9bd8223e
       Response: Array
       (
           [code] => 200
           [message] => OK
       )
   
       2022-01-18T20:56:02+00:00 DEBUG POST https://api.paypal.com/v1/billing-agreements/agreement-tokens
       Request Body: {"description":"Checking if reference transactions are enabled","payer":{"payment_method":"PAYPAL"},"plan":{"type":"MERCHANT_INITIATED_BILLING","merchant_preferences":{"return_url":"https:\/\/example.com\/return","cancel_url":"https:\/\/example.com\/cancel","skip_shipping_address":true}}}
       Response Debug ID: a3681dcfbea53
       Response: Array
       (
           [code] => 403
           [message] => Forbidden
       )
   
       Response Body: {"name":"AUTHORIZATION_ERROR","debug_id":"a3681dcfbea53","message":"Authorization error","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#AUTHORIZATION_ERROR","details":[{"name":"REFUSED_MARK_REF_TXN_NOT_ENABLED","message":"This merchant account is not permitted to create Merchant Initiated Billing Agreement"}]}
       ```
   
 * The 'this merchant account is not permitted to create Merchant Initiated Billing
   Agreement' error shows up as a common theme in the failed payments and we have
   no idea what the issue is.
 * Thanks again
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15277642)
 * Hi [@amnosandwich](https://wordpress.org/support/users/amnosandwich/),
 * Glad you hear you could correct that behavior.
    The 403 message from the log 
   can be disregarded as it is not a relevant error. This only checks whether or
   not Reference Transactions are enabled on the PayPal account. But the message`
   ERROR Client ID retrieval failed: Could not validate nonce.` is indeed an error
   I would rather not see.
 * Can you reproduce the described order failures on your site? With Credit cards
   only or also with PayPal?
    If this behavior is reproducible, does it also persist
   with all other plugins except for WooCommerce and PayPal Payments disabled?
 * There are some reports in this forum about intermittent payment failures with
   the PayPal Card Processing. So far, it looks like a conflicting interaction with
   other plugins could result in the credit card orders failing before the payment
   is sent to PayPal, but it’s not yet quite clear to us.
    When this problem only
   affects credit card payments, then we would suggest temporarily disabling the
   PayPal Card Processing until it has been addressed properly. It is our highest
   priority to resolve this, we would like to look into this further with you in
   any case. Thanks!
 * Kind regards,
    Niklas
 *  Thread Starter [amnosandwich](https://wordpress.org/support/users/amnosandwich/)
 * (@amnosandwich)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15299089)
 * Hello,
 * It is only happening when people try to pay with card I believe, and the same
   issues in the logs, an example of two again – both trying to pay with a debit
   visa card: The REFUSED_MARK_REF_TXN_NOT_ENABLED”,”message”:”This merchant account
   is not permitted to create Merchant Initiated Billing Agreement” shows up in 
   nearly every transaction everyday and only shows ‘Error processing checkout’ 
   for the Buyer.
 *     ```
       2022-01-27T17:07:06+00:00 DEBUG POST https://api.paypal.com/v1/billing-agreements/agreement-tokens
       Request Body: {"description":"Checking if reference transactions are enabled","payer":{"payment_method":"PAYPAL"},"plan":{"type":"MERCHANT_INITIATED_BILLING","merchant_preferences":{"return_url":"https:\/\/example.com\/return","cancel_url":"https:\/\/example.com\/cancel","skip_shipping_address":true}}}
       Response Debug ID: 274a05a118bd1
       Response: Array
       (
           [code] => 403
           [message] => Forbidden
       )
   
       Response Body: {"name":"AUTHORIZATION_ERROR","debug_id":"274a05a118bd1","message":"Authorization error","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#AUTHORIZATION_ERROR","details":[{"name":"REFUSED_MARK_REF_TXN_NOT_ENABLED","message":"This merchant account is not permitted to create Merchant Initiated Billing Agreement"}]}
       ```
   
 * and another:
 *     ```
       2022-01-27T14:59:25+00:00 DEBUG PATCH https://api.paypal.com/v2/checkout/orders/2VE98909M79574516
       Request Body: [{"op":"replace","value":{"reference_id":"default","amount":{"currency_code":"GBP","value":"38.48","breakdown":{"item_total":{"currency_code":"GBP","value":"33.98"},"shipping":{"currency_code":"GBP","value":"4.50"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"description":"","items":[{"name":"DAINTY LOVE STERLING SILVER NECKLACE","unit_amount":{"currency_code":"GBP","value":"24.99"},"quantity":1,"description":"Our Dainty Love Sterling Silver Necklace is the perfect embodiment of love and self love.\r\n\r\nDetails:\r\n\r\nPackaged in luxury pin","sku":"DAINTY-NECK10","category":"PHYSICAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}},{"name":"Gift Bag & Keepsake Gift Set","unit_amount":{"currency_code":"GBP","value":"8.99"},"quantity":1,"description":"This set is a beautiful way to gift our items in. It comes with our branded Mini Gift bag with bow and pink Phantom Jewels bran","sku":"pinkphantombox-1","category":"PHYSICAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"CGTBAGTNTQ95S"},"shipping":{"name":{"full_name":"Enay Lewis-Flinch"},"address":{"country_code":"GB","address_line_1":"4 prestwick close","address_line_2":"","admin_area_1":"","admin_area_2":"Luton","postal_code":"LU2 7SJ"}},"custom_id":"224197","invoice_id":"feaddb-224197"},"path":"\/purchase_units\/@reference_id=='default'"}]
       Response Debug ID: b65358d3c42e1
       Response: Array
       (
           [code] => 204
           [message] => No Content
       )
   
       2022-01-27T14:59:25+00:00 DEBUG  https://api.paypal.com/v2/checkout/orders/2VE98909M79574516
       Response Debug ID: f60f3cf3c7acf
       Response: Array
       (
           [code] => 200
           [message] => OK
       )
   
       2022-01-27T14:59:27+00:00 DEBUG POST https://api.paypal.com/v2/checkout/orders/2VE98909M79574516/capture
       Response Debug ID: 58fe69290711d
       Response: Array
       (
           [code] => 422
           [message] => Unprocessable Entity
       )
   
       Response Body: {"name":"UNPROCESSABLE_ENTITY","details":[{"issue":"TRANSACTION_REFUSED","description":"The request was refused"}],"message":"The requested action could not be performed, semantically incorrect, or failed business validation.","debug_id":"58fe69290711d","links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED","rel":"information_link","method":"GET"}]}
   
       2022-01-27T14:59:27+00:00 WARNING Failed to capture 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-TRANSACTION_REFUSED
       2022-01-27T14:59:47+00:00 DEBUG  https://api.paypal.com/v2/checkout/orders/329567374W1800334
       Response Debug ID: 28004d2d07782
       Response: Array
       (
           [code] => 200
           [message] => OK
       )
       ```
   
 * Truthfully this plugin has the most problems I have experienced and resulted 
   in so many failed sales
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15364671)
 * Hi [@amnosandwich](https://wordpress.org/support/users/amnosandwich/),
 * We regret the trouble with card payments and for the moment can only suggest 
   disabling the PayPal Card Processing to receive credit card payments with the
   default credit card smart button provided by the PayPal iframe.
 * The mentioned `AUTHORIZATION_ERROR` is not related to any failed card payments.
   This checks whether or not Reference Transactions are enabled for your account
   but it does not impact payments.
    The `TRANSACTION_REFUSED` error is something
   the PayPal merchant support would need to look into though as PayPal rejected
   that payment. That’s not an error from the plugin, but currently, the plugin 
   displays the same generic response regardless of the reason for the failure. 
   There are reports about failed credit card payments that do not appear at all
   in the logs though.
 * Changes for the upcoming update 1.7.0 helped us to better understand the problem
   as we improved the error messaging and logging: [https://github.com/woocommerce/woocommerce-paypal-payments/releases](https://github.com/woocommerce/woocommerce-paypal-payments/releases)
   
   While the upcoming 1.7.0 update does not yet modify any behavior in regards to
   PayPal Card Processing, it does enhance the default credit card button behavior
   for a more streamlined checkout experience. The following update after that is
   expected to provide improvements to the PayPal Card Processing that should help
   curb the failed orders that some users are reporting.
 * Kind regards,
    Niklas

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

The topic ‘Error Processing Checkout.’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/error-processing-checkout-10/#post-15364671)
 * Status: resolved