mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Delete payment source from order to array
This commit is contained in:
parent
9e0322ba9a
commit
503d7cfc05
1 changed files with 0 additions and 13 deletions
|
@ -189,16 +189,6 @@ class Order {
|
||||||
return $this->application_context;
|
return $this->application_context;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the payment source.
|
|
||||||
*
|
|
||||||
* @return PaymentSource|null
|
|
||||||
*/
|
|
||||||
public function payment_source() {
|
|
||||||
|
|
||||||
return $this->payment_source;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the object as array.
|
* Returns the object as array.
|
||||||
*
|
*
|
||||||
|
@ -228,9 +218,6 @@ class Order {
|
||||||
if ( $this->application_context() ) {
|
if ( $this->application_context() ) {
|
||||||
$order['application_context'] = $this->application_context()->to_array();
|
$order['application_context'] = $this->application_context()->to_array();
|
||||||
}
|
}
|
||||||
if ( $this->payment_source() ) {
|
|
||||||
$order['payment_source'] = $this->payment_source();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $order;
|
return $order;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue