How to set a default country for Authorize.Net payments
In case most (or all) of your buyers reside in the same country, you can use custom code to spare them the trouble of searching for the correct country in the dropdown when paying through Authorize.Net.
Assuming that you wish to have the United States as the default country, please edit the following file:
plugins\system\rseproauthorize\rseproauthorize.php
look for the following line of code:
$clist = JHTML::_('select.genericlist', $country_list, 'country', 'class="rs_select" size="1"', 'value', 'text', isset($savedData['country']) ? $savedData['country'] : null);
and replace it with this one:
$clist = JHTML::_('select.genericlist', $country_list, 'country', 'class="rs_select" size="1"', 'value', 'text', isset($savedData['country']) ? $savedData['country'] : 'United States');
Important:
You can replace United States with any country, just make sure to use the country names as specified in the dbprefix_rseventspro_countries table.
You Should Also Read
If initial payment failed, you can use a link to complete the payment |