Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
I am facing a problem in one of my project. I needed a custom description in every customer receipt email that is sent form the authorize.net. I looked into the uc_athorizet module for an alter before sending this information to authorize.net.
I hoping to see a drupal_alter before sending all the payment information to authorize.net so that I can easily alter the description before it is sent to authorize.net
Wouldn't it be good to have a drupal_alter('uc_authorizenet_transaction', $submit_data); before the curl function that posts $submit_data to authorize.net.
Thanks,
Unnikrishnan B.
Comment | File | Size | Author |
---|---|---|---|
#2 | uc_authorizenet-transaction-alter-1840764-2.patch | 751 bytes | zyxware |
Comments
Comment #1
longwaveThis is probably a good idea, if you post this change as a patch it is much more likely to be reviewed and included in Ubercart.
Comment #2
zyxware CreditAttribution: zyxware commentedHere is the patch to add drupal_alter on $submit_data before posting the data to authorize.net.
Thanks.
Comment #3
longwaveThanks for the patch. Can you give a code example of something in the data array you would change with this hook? We can then use that example as hook documentation in a uc_authorizenet.api.php file.
Comment #4
unnikrishnan CreditAttribution: unnikrishnan commentedOur use case is that we needed a custom description to send to authorize.net. Authorize.net uses the description in the email that goes out to the customers. If I could alter the description field, I could add more details of the product purchased.
Thanks,
Unnikrishnan B.
Comment #5
longwaveSo your code is something like this?
Comment #6
longwaveCommitted, thanks for the patch!
http://drupalcode.org/project/ubercart.git/commitdiff/8005cb3