mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Make the method static to use from API functions
This commit is contained in:
parent
9ed0c49bc9
commit
fbd7d843ff
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ trait TransactionIdHandlingTrait {
|
|||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function get_paypal_order_transaction_id( Order $order ): ?string {
|
||||
public static function get_paypal_order_transaction_id( Order $order ): ?string {
|
||||
$purchase_unit = $order->purchase_units()[0] ?? null;
|
||||
if ( ! $purchase_unit ) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue