Make the method static to use from API functions

This commit is contained in:
Narek Zakarian 2025-08-11 19:58:41 +04:00
parent 9ed0c49bc9
commit fbd7d843ff
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

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