Merge pull request #5760 from claudiosmweb/5670-fix-paypal-urls
Add urlencode() in return and cancel_return items in paypal params
This commit is contained in:
commit
3b6f7403bb
|
@ -293,8 +293,8 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
|
|||
'charset' => 'UTF-8',
|
||||
'rm' => is_ssl() ? 2 : 1,
|
||||
'upload' => 1,
|
||||
'return' => esc_url( add_query_arg( 'utm_nooverride', '1', $this->get_return_url( $order ) ) ),
|
||||
'cancel_return' => esc_url( $order->get_cancel_order_url() ),
|
||||
'return' => urlencode( esc_url( add_query_arg( 'utm_nooverride', '1', $this->get_return_url( $order ) ) ) ),
|
||||
'cancel_return' => urlencode( esc_url( $order->get_cancel_order_url() ) ),
|
||||
'page_style' => $this->page_style,
|
||||
'paymentaction' => $this->paymentaction,
|
||||
'bn' => 'WooThemes_Cart',
|
||||
|
|
Loading…
Reference in New Issue