Difference between revisions of "EPGBill.com"
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{NATS5 Manual |
− | | show_billers_section = true | + | |show_billers_section = true |
}} | }} | ||
+ | {{NATS4 Manual}} | ||
== Setting Up at EPGBill.com == | == Setting Up at EPGBill.com == | ||
Line 20: | Line 21: | ||
Next, go to the [[NATS4 Sites Admin|Sites Admin]], create or edit a tour, and scroll down to the "Biller Details" section. Find the "EUROPAY" settings, and and enter your Site URL, Email, Phone, and Content Provided By name. This information will be provided to you by EPGBill.com. | Next, go to the [[NATS4 Sites Admin|Sites Admin]], create or edit a tour, and scroll down to the "Biller Details" section. Find the "EUROPAY" settings, and and enter your Site URL, Email, Phone, and Content Provided By name. This information will be provided to you by EPGBill.com. | ||
+ | |||
+ | '''Note: The shortname for EPGBill.com in [[NATS]] is "EUROPAY"''' | ||
Once you have done that, scroll down to the "Join Options for this Tour" section and create or edit a join option to add EPGBill.com compatibility. Under "Biller Codes", choose the currency type that you want EPGBill.com to record your transactions under. The default setting for this is US Dollar. | Once you have done that, scroll down to the "Join Options for this Tour" section and create or edit a join option to add EPGBill.com compatibility. Under "Biller Codes", choose the currency type that you want EPGBill.com to record your transactions under. The default setting for this is US Dollar. | ||
Line 33: | Line 36: | ||
You can use the following code to retrieve state information from your [[Ct#Surfer|surfers]]: | You can use the following code to retrieve state information from your [[Ct#Surfer|surfers]]: | ||
− | <pre>< | + | <pre> |
− | + | <div> | |
− | value=$vars.state|default:$mdata.state} | + | <label>State:</label> |
− | name="signup[state:1]" id=state>{ | + | {assign var=state value=$vars.state|default:$mdata.state|default:''} |
− | + | <select name="signup[state:1]" id="state"> | |
+ | {foreach from=$states item="state_name" key="state_iso"} | ||
+ | {if $state_iso == 'ACT' || $state_iso == 'NSW' || $state_iso == 'NT' || $state_iso == 'QLD' || $state_iso == 'SA' || $state_iso == 'TAS' || $state_iso == 'VIC' || $state_iso == 'WAU'} | ||
+ | {* Skip over Australia states *} | ||
+ | {else} | ||
+ | {if $state_iso == 'XX'} | ||
+ | {assign value="Outside US/Canada" var="state_name"} | ||
+ | {/if} | ||
+ | <option label="{$state_name}" value="{$state_iso}" {if $state == $state_iso}selected{/if} >{$state_name}</option> | ||
+ | {/if} | ||
+ | {/foreach} | ||
+ | </select> | ||
+ | </div> | ||
</pre> | </pre> | ||
Latest revision as of 13:03, 20 February 2020
NATS 4
|
---|
Setting Up at EPGBill.com
Before you can begin configuring EPGBill.com in NATS4, you must first register an account with them. This can be done through their website at http://www.epgbill.com/contact.
While registering with EPGBill.com, make sure to take down the Merchant ID, Merchant Guid, Site URL, Email, Phone, and Content Provided By name. This information will be necessary for setting up EPGBill.com in NATS4.
Setting Up EPGBill.com in NATS
Billers Admin
To begin setting up EPGBill.com in NATS, go to the Billers Admin. Scroll down to the "Setup New Biller" drop-down menu, select EPGBill.com, and click "Add New Option."
Note: If you don't see EPGBill.com, put in a support ticket, as you may need an updated version of NATS.
Fill in the Merchant ID and Merchant Guid that were provided to you by EPGBill.com. If you were not provided with this information, please contact them.
Sites Admin
Next, go to the Sites Admin, create or edit a tour, and scroll down to the "Biller Details" section. Find the "EUROPAY" settings, and and enter your Site URL, Email, Phone, and Content Provided By name. This information will be provided to you by EPGBill.com.
Note: The shortname for EPGBill.com in NATS is "EUROPAY"
Once you have done that, scroll down to the "Join Options for this Tour" section and create or edit a join option to add EPGBill.com compatibility. Under "Biller Codes", choose the currency type that you want EPGBill.com to record your transactions under. The default setting for this is US Dollar.
Additionally, you must add rules in order for this join option to show on your join page. You can do so by using the "Rules" action icon, marked with purple arrows. For more information on adding rules in NATS, please see our NATS4 Rules wiki article.
Editing Site Templates
Before you can begin processing NATS transactions for surfers from the U.S. and Canada through EPGBill.com, you must also get their state information. Without retrieving the state that the surfer is located in, this biller transaction will fail for surfers based in the U.S. and Canada.
To avoid facing this issue, you can insert code on your join page template in order to retrieve this information. This can be done through the Sites Admin. Simply edit the site templates for the join page you wish to change, and edit the subsequent join template.
You can use the following code to retrieve state information from your surfers:
<div> <label>State:</label> {assign var=state value=$vars.state|default:$mdata.state|default:''} <select name="signup[state:1]" id="state"> {foreach from=$states item="state_name" key="state_iso"} {if $state_iso == 'ACT' || $state_iso == 'NSW' || $state_iso == 'NT' || $state_iso == 'QLD' || $state_iso == 'SA' || $state_iso == 'TAS' || $state_iso == 'VIC' || $state_iso == 'WAU'} {* Skip over Australia states *} {else} {if $state_iso == 'XX'} {assign value="Outside US/Canada" var="state_name"} {/if} <option label="{$state_name}" value="{$state_iso}" {if $state == $state_iso}selected{/if} >{$state_name}</option> {/if} {/foreach} </select> </div>
This will display a drop-down menu where the user will be able to select the state that they are located in.