You created several checkout agreements in your Magento 2 store, but as soon as you choose PayPal as payment method in the checkout, it just won’t accept those agreements? Instead, a validation error is returned whether or not the agreement…
Getting the PayPal transaction ID (Magento 1)
Use the following code to get the Magento PayPal transaction ID from an order object:
1 |
$transactionId = $order->getPayment()->getLastTransId(); |