I am developing a plugin for woocommerce and I would like to get the paypal transaction id
after the checkout to use the paypal api.
I search the documentation but couldn’t find it anywhere.
I am developing a plugin for woocommerce and I would like to get the paypal transaction id
after the checkout to use the paypal api.
I search the documentation but couldn’t find it anywhere.
Comments are closed.
By looking into the code of the PayPal gateway I found out, that you can access it through
$order->get_transaction_id()
after the payment is completed.For more questions there is a well defined documentation of their framework. e.g. you can find this function here (inherited from this class).
I know this is very later, but I just want to help other people looking for this.
Found an answer myself