Campaign Name not passing to Auth.net

  • jakeknight
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #9705 by jakeknight
Campaign Name not passing to Auth.net was created by jakeknight
Tried to post a support ticket for this and it would not recognize that the fields were entered. Said SUBJECT and DESCRIPTION REQUIRED... they were filled in....

I purchased your product last fall for use on a website. For some reason, this site doesn't recognize my purchasing email as having an account.

What I need is for the Authorize.net gateway to pass the Campaign Name in the description as opposed to "ONLINE DONATION."

It LOOKS like the plugin is set up to do this....

jdonation.php:

$itemName = JText::_('JD_ONLINE_DONATION');
$itemName = str_replace('[CAMPAIGN_TITLE]', $campaignTitle, $itemName) ;
$data = $itemName ;

and os_authnet.php:
$data = $data;

That to me says that the Item_Name is Online Donation, unless you have a campaign assigned to it, then it's the Campaign Name.

I have Campaigns enabled in the Global Configuration, which does pass the description to Authorize.net, but not the Campaign name. Also, the title of the donation page reads "ONLINE DONATION" and not the campaign name. I'm not sure if that's related but it could be.

Thanks in advance for any help!

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

More
14 years 2 months ago #9709 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Campaign Name not passing to Auth.net
Hi

I think the reason is that the language item JD_ONLINE_DONATION is set to Online Donation, and campaign title is not passed to Authorize.net. To solve this problem, go to Joom Donation -> Translation, find the language item JD_ONLINE_DONATION and set it to something line Donate for [CAMPAIGN_TITLE] ([CAMPAIGN_TITLE] will be replaced by the title of actual campaign users choose for their donation) . After that, everything should work as expected .

Regards,

Tuan

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

  • jakeknight
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #9711 by jakeknight
Replied by jakeknight on topic Re: Campaign Name not passing to Auth.net
Thanks for the suggestion above. It sound s like it would work, but when I tried it, the output was simply [CAMPAIGN_TITLE].

I tried a lot of variations including adding ' ' both inside and out of the brackets, and also a few php echo variations. None of them resulted in a desired result.


One thing I have found, if I change line 73 of os_authnet.php from:
Code:
$data['x_description'] = $data['item_name'];
to
Code:
$data['x_description'] = $data['campaign_id'];

it gives me, from Authorize.net:

Order Information
Merchant: XXXXXXXXXXXXXXXXXXX
Description: 1
Invoice Number: DC-082916

This is good because it means that "1" is my campaign. Is it possible to write the code above to use the campaign title rather than the ID???

I tried and it did not work.

I really appreciate this help.

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

More
14 years 2 months ago #9723 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Campaign Name not passing to Auth.net
Hi

Please make sure :

1. You are using latest verison of the extension (Please login to your account, download latest version and upgrade to your site) .

2. Follow the instruction above (use [CAMPAIGN_TITLE] tag in JD_ONLINE_DONATION language item) .

3. It will work (I tested it again on my local computer) .

4. If it doesn't work, please give me administrator account of your site so that I can have a look at it and check your setting .

Regards,

Tuan

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

  • jakeknight
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #9724 by jakeknight
Replied by jakeknight on topic Re: Campaign Name not passing to Auth.net
Thanks for replying: This website doesn't seem to have an account for the email address I would have purchased the component with. Do I need to repurchase? My version is 2.7.0

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

More
14 years 2 months ago #9725 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Campaign Name not passing to Auth.net
You don't need to re-purchase. The upgrade is free for lifetime . You just need to send me Paypal Transaction Id of your purchase . I will check order history and assign order to your account so that you can download future releases for free !

Regards,

Tuan

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

  • jakeknight
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 2 months ago #9726 by jakeknight
Replied by jakeknight on topic Re: Campaign Name not passing to Auth.net
Posted it to the support forum.

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

More
14 years 2 months ago #9728 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Campaign Name not passing to Auth.net
just assigned order to your account. Please access to Customers Area -> Orders history to download latest version and upgrade to your site .

Regards,

Tuan

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

More
14 years 2 months ago #9778 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Campaign Name not passing to Auth.net
Update : The client upgraded his site to latest verison of Joom Donation and everything works as expected :) .

Tuan

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

Moderators: Dang Thuc DamDang Dam