1

You are right about race condition, but onReturn does not modify order at all This is what happens in the background: the commerce_payment.checkout.return route on commerce payment module is called which at first it let order payment gateway plugin to create an payment for order then no matter what happens in the onReturn method of plugin order checkout ...


1

I think you would do it like this (if I'm understanding your scenario correctly): {{ node.field_price_value.entity.field_price.value }} Also this question has been asked and responded to before, you may find this helpful: Twig get value of field in entity reference Good luck!


Only top voted, non community-wiki answers of a minimum length are eligible