When placing a transaction I would like the the Paypal order comments to be set as the Order ID and the IP of the user respectively, rather than just the items in the order. There is often a time that we need to reference our paypal transactions and it is just much easier to do so via the order number than the reference number.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | uc_payflowpro_comment_hook.patch | 2.09 KB | kwinters |
Comments
Comment #1
kwinters commentedThe plan for this is to create a hook, since there are tons of possibilities for the comments field.
Comment #2
marcusahle commentedDo you have an estimated time frame on this?
Comment #3
kwinters commentedI might be able to do it this coming weekend.
Comment #4
kwinters commentedHook "uc_payflow_pro_transaction_comment" added, which replaces the order comment with text of your choosing.
Patch attached, and also committed to the development branch. Sample usage:
FYI, the Ubercart order ID is already available as "Supplier Reference #" or "Invoice Number" when you're looking at a transaction from the Payflow manager interface. The customer IP address is not, so you will need the hook for that.
Status set to "to be ported" since this needs to be carried over into 2.x eventually.
Comment #5
marcusahle commentedWorks like a charm. Thank you!
Comment #6
kwinters commentedAvailable in the 6.x-1.4 release. I'll port it to 6.x-2.x with a bunch of other things.