If you are using PayPal Direct Payments, go to the bindings panel, click the plus button and select eCart -> Checkout - > Local Checkout Response. From the gateway list select PayPal Direct Payments.
This will add a transaction ID binding that you can use in the store order summary behavior.