- Posts: 3
- Thank you received: 0
First Data
- esi77
- Topic Author
- Offline
- New Member
Less
More
14 years 3 months ago #4961
by esi77
First Data was created by esi77
I recently bought the first data payment plugin with the hopes that it would work jusy like the authorize.net plugin whereby you don't need to leave the site to make payment.
At the moment, when you choose authorize.net as a payment option, it immediately generates a card number, expiry date etc field. How can I change my first data plugin to have the same effect?
Thanks for your help
At the moment, when you choose authorize.net as a payment option, it immediately generates a card number, expiry date etc field. How can I change my first data plugin to have the same effect?
Thanks for your help
Please Log in or Create an account to join the conversation.
- esi77
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
14 years 3 months ago #4971
by esi77
Replied by esi77 on topic Re: First Data
Hi, after playing around with it, I work it out if anybody is interested.
In the payments folder, open the file os_firstdata.php
on line 34 you will see:
function os_firstdata($params) {
parent::setName('os_firstdata');
parent::os_payment();
parent::setCreditCard(false);
parent::setCardType(false);
parent::setCardCvv(false);
parent::setCardHolderName(false);
if ($params->get('firstdata_mode'))
$this->_url = ' www.linkpointcentral.com/lpc/servlet/lppay ';
else
$this->_url = ' www.staging.linkpointcentral.com/lpc/servlet/lppay ';
$this->setParam('storename', $params->get('store_number'));
$this->setParam('mode', 'PayOnly');
$this->setParam('txntype', 'sale');
}
change this to:
function os_firstdata($params) {
parent::setName('os_firstdata');
parent::os_payment();
parent::setCreditCard(true);
parent::setCardType(true);
parent::setCardCvv(true);
parent::setCardHolderName(false);
if ($params->get('firstdata_mode'))
$this->_url = ' www.linkpointcentral.com/lpc/servlet/lppay ';
else
$this->_url = ' www.staging.linkpointcentral.com/lpc/servlet/lppay ';
$this->setParam('storename', $params->get('store_number'));
$this->setParam('mode', 'PayOnly');
$this->setParam('txntype', 'sale');
}
Also on line 78, you will see:
$this->setParam('oid', $row->id);
$this->setParam('bname', $row->first_name.' '.$row->last_name );
$this->setParam('baddr1', $row->address);
$this->setParam('baddr2', $row->address2);
$this->setParam('bcity', $row->city);
$this->setParam('bstate', $row->state);
$this->setParam('bzip', $row->zip);
$this->setParam('phone', $row->phone);
$this->setParam('fax', $row->fax);
$this->setParam('email', $row->email);
$this->setParam('bcountry', EventBookingHelper::getCountryCode($row->country));
$this->submitPost();
}
change this to:
$this->setParam('oid', $row->id);
$this->setParam('bname', $row->first_name.' '.$row->last_name );
$this->setParam('baddr1', $row->address);
$this->setParam('baddr2', $row->address2);
$this->setParam('bcity', $row->city);
$this->setParam('bstate', $row->state);
$this->setParam('bzip', $row->zip);
$this->setParam('phone', $row->phone);
$this->setParam('fax', $row->fax);
$this->setParam('cardnumber', $row->x_card_num);
$this->setParam('cvm', $row->x_card_code);
$this->setParam('expmonth', $row->exp_month);
$this->setParam('expyear', $row->exp_year);
$this->setParam('email', $row->email);
$this->setParam('bcountry', EventBookingHelper::getCountryCode($row->country));
$this->submitPost();
}
and save it, this will bypass the first data payment form. Hope this helps.
In the payments folder, open the file os_firstdata.php
on line 34 you will see:
function os_firstdata($params) {
parent::setName('os_firstdata');
parent::os_payment();
parent::setCreditCard(false);
parent::setCardType(false);
parent::setCardCvv(false);
parent::setCardHolderName(false);
if ($params->get('firstdata_mode'))
$this->_url = ' www.linkpointcentral.com/lpc/servlet/lppay ';
else
$this->_url = ' www.staging.linkpointcentral.com/lpc/servlet/lppay ';
$this->setParam('storename', $params->get('store_number'));
$this->setParam('mode', 'PayOnly');
$this->setParam('txntype', 'sale');
}
change this to:
function os_firstdata($params) {
parent::setName('os_firstdata');
parent::os_payment();
parent::setCreditCard(true);
parent::setCardType(true);
parent::setCardCvv(true);
parent::setCardHolderName(false);
if ($params->get('firstdata_mode'))
$this->_url = ' www.linkpointcentral.com/lpc/servlet/lppay ';
else
$this->_url = ' www.staging.linkpointcentral.com/lpc/servlet/lppay ';
$this->setParam('storename', $params->get('store_number'));
$this->setParam('mode', 'PayOnly');
$this->setParam('txntype', 'sale');
}
Also on line 78, you will see:
$this->setParam('oid', $row->id);
$this->setParam('bname', $row->first_name.' '.$row->last_name );
$this->setParam('baddr1', $row->address);
$this->setParam('baddr2', $row->address2);
$this->setParam('bcity', $row->city);
$this->setParam('bstate', $row->state);
$this->setParam('bzip', $row->zip);
$this->setParam('phone', $row->phone);
$this->setParam('fax', $row->fax);
$this->setParam('email', $row->email);
$this->setParam('bcountry', EventBookingHelper::getCountryCode($row->country));
$this->submitPost();
}
change this to:
$this->setParam('oid', $row->id);
$this->setParam('bname', $row->first_name.' '.$row->last_name );
$this->setParam('baddr1', $row->address);
$this->setParam('baddr2', $row->address2);
$this->setParam('bcity', $row->city);
$this->setParam('bstate', $row->state);
$this->setParam('bzip', $row->zip);
$this->setParam('phone', $row->phone);
$this->setParam('fax', $row->fax);
$this->setParam('cardnumber', $row->x_card_num);
$this->setParam('cvm', $row->x_card_code);
$this->setParam('expmonth', $row->exp_month);
$this->setParam('expyear', $row->exp_year);
$this->setParam('email', $row->email);
$this->setParam('bcountry', EventBookingHelper::getCountryCode($row->country));
$this->submitPost();
}
and save it, this will bypass the first data payment form. Hope this helps.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
14 years 3 months ago #4974
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: First Data
Hi
Thanks so much for sharing your code. I will check it again and If everything works fine, I will add it as the config option in the payment plugin .
Regards,
Tuan
Thanks so much for sharing your code. I will check it again and If everything works fine, I will add it as the config option in the payment plugin .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.