fixed the paypal process_refund() method
This commit is contained in:
parent
1a98301a34
commit
bf68cf1f68
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue