Delete payment source from order to array

This commit is contained in:
Emili Castells Guasch 2023-11-27 09:47:10 +01:00
parent 9e0322ba9a
commit 503d7cfc05

View file

@ -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;
} }