verbb / commerce-payflow

A Craft Commerce plugin to support Payflow as a payment gateway
MIT License
2 stars 5 forks source link

Option(s) to pass order reference number to PayPal #3

Open bfopma opened 5 years ago

bfopma commented 5 years ago

Description

When an order is processed via PayPal Payflow, the value of 'Comment1' in Payflow consists of Order {{ order.id }} vs. a more friendly Order Reference Number (https://docs.craftcms.com/commerce/v2/orders.html#order-numbers).

Is it possible to override the default value that is being passed to Payflow's 'Comment1' field?

image001

Thank you!

Additional info

engram-design commented 4 years ago

I'll look into this, but I also think it should be possible now, just need to find the right event.

However, you can't use order.reference, because the reference number isn't generated until after the order is complete. Bit of a chicken and the egg situation.

Raised via https://github.com/craftcms/commerce/issues/1074