Skip to main content

Paypal checkout error

Currently Woocommerce did huge changes in their plugin, these changes create lot of problems, which is one of them, “This function is temporarily unavailable. Please try your payment again later by returning to eBay and clicking the My eBay button.”, Woocommerce gives paypal checkout error, see below error:

Paypal checkout error

Paypal checkout error is appearing when we go to payment for product on Woocommence base website. It is not a paypal payment processing error, it is woocommerce ERROR. Woocommerce using url with which is not support by Paypal.

How to fix paypal checkout error

To fix this problem open file: [wp-content\plugins\woocommerce\includes\gateways\paypal\includes\class-wc-gateway-paypal-request.php]

and find line : ‘return’ => esc_url_raw( add_query_arg( ‘utm_nooverride’, ‘1’, $this->gateway->get_return_url( $order ) ) ), ‘cancel_return’ => esc_url_raw( $order->get_cancel_order_url_raw() ),

replace with : ‘return’ => urlencode( add_query_arg( ‘utm_nooverride’, ‘1’, $this->gateway->get_return_url( $order ) ) ), ‘cancel_return’ => urlencode( $order->get_cancel_order_url_raw() ),

update your file on your server then go to product page and purchase a product with paypal checkout. I suppose you are checkout successfully, it is fixed now.

2 thoughts on “Paypal checkout error

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »