More logging

This commit is contained in:
Mike Jolley 2016-04-18 21:06:30 +01:00
parent fce5584185
commit 3b3872da3f
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class WC_Gateway_Paypal_Request {
public function get_request_url( $order, $sandbox = false ) {
$paypal_args = http_build_query( $this->get_paypal_args( $order ), '', '&' );
WC_Gateway_Paypal::log( 'PayPal Request Args for order ' . $order->get_order_number() . ': ' . print_r( $paypal_args, true ) );
if ( $sandbox ) {
return 'https://www.sandbox.paypal.com/cgi-bin/webscr?test_ipn=1&' . $paypal_args;
} else {