Sylius / PayPalPlugin

Official integration with PayPal Commerce Platform
36 stars 54 forks source link

Add the transaction_id to the payment details when completing the order? #251

Open PILLOWPET opened 2 years ago

PILLOWPET commented 2 years ago

Current problem

The CompleteOrderAction does not save the transaction id in the Payment details which makes it hard to correlate payment details in Sylius with transactions appearing in the Paypal dashboard.

Proposed solution

In CompleteOrderAction, persist the transaction_id which can be found under $orderDetails['purchase_units'][0]["payments"]["captures"][0]["id"]

I'd be happy to implement this