Can I pass other info through Authorize.Net SIM

  • Joan Coyne
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #52803 by Joan Coyne
My client's events are classes which are offered in several locations and on different dates. On the emails that come from Authorize.Net (we use SIM) they only list the name of the event. My clients would like to add the event location and date to the email that is generated by Authorize.Net SIM so they know which specific class the customer signed up for.
I tried to add this information to the x_description value, in the os_authnetsim.php file, but I didn't see the data I needed in the code. Is it possible to access the date and location on that page?
if I can't do that, is it possible to add a bcc field to the email that is sent by plugin to the customer when he is "published" so that my client can see what is being sent out?

Thanks
Joan

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #52821 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Can I pass other info through Authorize.Net SIM
Hi Joan

You will need to write some custom code to pass these information to authorize.net. Maybe you can explain exactly how you want to pass the data to and I try to guide you with some code ?

Tuan

Please Log in or Create an account to join the conversation.

  • Joan Coyne
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 4 months ago #52960 by Joan Coyne
Replied by Joan Coyne on topic Can I pass other info through Authorize.Net SIM
My client would like to pass the event location and the event start date through to Authorize.net. I couldn't figure out how to reference though variables in the code though.

I know that I can pass either a header or footer through to Authorize.Net in one of the x_ header/footer variables, or the x_description variable. I just need to know how to access the location and date if it's possible.

Thanks for your help,
Joan

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #52967 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Can I pass other info through Authorize.Net SIM
Hi Joan

1. You will need to modify code in processPayment method of authoruze.net payment plugin at components/com_eventbooking/payments/os_authnet.php . And in this case, you should use x_description as you said, right now, Events Booking use it as well, but it only pass event title as a part of it

2. Within that function, you will need to write somecode to get location and event date, then populate the x_description value to poss to Authorize.net. Sample code to get the data:
Code:
$query = $db->getQuery(); $query->select('a.*, b.name as location_name') ->from('#__eb_events AS a') ->leftJoin('#__eb_locations as b ON a.location_id = b.id') ->where('a.id = '. $row->event_id) $db->setQuery($query); $rowInfo = $db->loadObject(); echo $row->event_date; echo $row->location_name;

Hope that helps

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc