Title: Error when checking out with credit card
Last modified: December 1, 2021

---

# Error when checking out with credit card

 *  Resolved [nvontrotha](https://wordpress.org/support/users/nvontrotha/)
 * (@nvontrotha)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-when-checking-out-with-credit-card/)
 * I am unable to place orders using a credit card, however if I choose the Paypal
   option, the order will go through. After looking in the WooCommerce logs I am
   receiving the following error:
 * 2021-12-01T00:08:43+00:00 CRITICAL Unparenthesized `a ? b : c ? d : e` is not
   supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in D:\websites\
   Blue Collar WordPress\wp-content\plugins\woo-paypal-gateway\includes\gateways\
   paypal-pro\class-woo-paypal-gateway-paypal-pro-api-handler.php on line 432
 * I have updated to wordpress version 5.8.2, WooCommerce 5.9.0, WooCommerce PayPal
   Gateway 4.0.4. The website is also using PHP 8.0.
 * Please help, as my customers can no longer place orders on my website using this
   plugin.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-checking-out-with-credit-card%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Easy Payment](https://wordpress.org/support/users/easypayment/)
 * (@easypayment)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-when-checking-out-with-credit-card/#post-15119751)
 * [@nvontrotha](https://wordpress.org/support/users/nvontrotha/) we are looking
   into this issue, we will be get back to you ASAP.
 * Thanks & Regards
 *  Plugin Author [Easy Payment](https://wordpress.org/support/users/easypayment/)
 * (@easypayment)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/error-when-checking-out-with-credit-card/#post-15120080)
 * [@nvontrotha](https://wordpress.org/support/users/nvontrotha/) Issue has been
   resolved. Please update plugin.
 * Let me know if you need any more help.
 * Thanks

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

The topic ‘Error when checking out with credit card’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-paypal-pro.svg)
 * [Payment Gateway for PayPal Pro on WooCommerce](https://wordpress.org/plugins/woo-paypal-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-paypal-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-paypal-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-paypal-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-paypal-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-paypal-pro/reviews/)

## Tags

 * [paypal](https://wordpress.org/support/topic-tag/paypal/)
 * [paypal pro](https://wordpress.org/support/topic-tag/paypal-pro/)
 * [paypal smart button](https://wordpress.org/support/topic-tag/paypal-smart-button/)

 * 2 replies
 * 2 participants
 * Last reply from: [Easy Payment](https://wordpress.org/support/users/easypayment/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/error-when-checking-out-with-credit-card/#post-15120080)
 * Status: resolved