fixed the paypal process_refund() method

This commit is contained in:
claudiosmweb 2014-08-21 16:17:12 -03:00 committed by Ninos Ego
parent 1a98301a34
commit bf68cf1f68
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
public function process_refund( $order_id, $amount = null, $reason = '' ) {
$order = wc_get_order( $order_id );
if ( ! $order || ! $order->get_transaction_id() || ! $this->api_username || ! $this->api_password || ! $this->api_password ) {
if ( ! $order || ! $order->get_transaction_id() || ! $this->api_username || ! $this->api_password || ! $this->api_signature ) {
return false;
}