Difference between revisions of "Purchasing Tokens Through Netbilling"
m |
TMMStephenY (talk | contribs) m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
== Explanation == | == Explanation == | ||
− | In [[Sites Admin]], on the [[Site Templates]], the ''_ex_gateway_join_token'' template contains an example for purchasing tokens through Netbilling. This example records the surfer's customer identification code the first time they purchase a token and automatically sends the customer identification code back to Netbilling on subsequent visits. To do this, five | + | In [[Sites Admin]], on the [[Site Templates]], the ''_ex_gateway_join_token'' template contains an example for purchasing tokens through Netbilling. This example records the surfer's customer identification code the first time they purchase a token and automatically sends the customer identification code back to Netbilling on subsequent visits. To do this, five changes must be made to the ''gateway_join'' template: |
# The gateway_join template must be wrapped in <html></html> (and must also have <head></head> and <body></body> sections | # The gateway_join template must be wrapped in <html></html> (and must also have <head></head> and <body></body> sections | ||
Line 31: | Line 31: | ||
* 4. If the Smarty code doesn't find the identification code, it must have the surfer | * 4. If the Smarty code doesn't find the identification code, it must have the surfer | ||
fill in their billing information *} | fill in their billing information *} | ||
+ | |||
+ | {nats_get_gateway_token} | ||
+ | |||
{if !$gateway_token} | {if !$gateway_token} | ||
<input type="hidden" name="nextra[NETBILLING][cisp_storage]" value="1"> | <input type="hidden" name="nextra[NETBILLING][cisp_storage]" value="1"> | ||
Line 51: | Line 54: | ||
</pre> | </pre> | ||
− | '' | + | '''Note:''' The example above is not complete; please see the _ex_gateway_join_token template for a complete example. |
+ | |||
+ | '''Note:''' This feature will not work without setting up reusing members in [[NATS]], which requires multiple steps: | ||
+ | * Add ''ignore_dupe'' and ''no_rename_old_member'' to your NATS prejoin form | ||
+ | * Add the configuration variable ''$config['SHOW_PREVIOUS_MEMBERID']=1;'' | ||
+ | * After you have completed the previous two steps, please [http://clients.toomuchmedia.com contact us] to set up your next step. | ||
+ | <!-- The next step is to add an index on "previous_memberid" --> | ||
== Instructions == | == Instructions == | ||
Line 58: | Line 67: | ||
[[Category:Not Applicable to NATS4]] | [[Category:Not Applicable to NATS4]] | ||
+ | [[Category:NATS3 Billers]] |
Latest revision as of 14:16, 1 June 2011
NATS lets surfers purchase tokens through NetBilling. The surfer only needs to enter their payment information once to purchase an unlimited number of tokens.
Explanation
In Sites Admin, on the Site Templates, the _ex_gateway_join_token template contains an example for purchasing tokens through Netbilling. This example records the surfer's customer identification code the first time they purchase a token and automatically sends the customer identification code back to Netbilling on subsequent visits. To do this, five changes must be made to the gateway_join template:
- The gateway_join template must be wrapped in <html></html> (and must also have <head></head> and <body></body> sections
- The sign-up form must have a name parameter
- Smarty code must check for the surfer's customer identification code
- If the Smarty code doesn't find the identification code, it must have the surfer fill in their billing information
- If the Smarty code does find the identification code, it should use that code and automatically submit the form using Javascript
For example:
{* 1. The gateway_join template must be wrapped in <HTML></HTML> (and must also have <head></head> and <body></body> sections *} <html> <head></head> <body> {* 2. The sign-up form must have a name field *} <form action="signup.php" method="POST" name="purchase_netbilling_token"> {* 3. Smarty code must check for the surfer's customer identification code * 4. If the Smarty code doesn't find the identification code, it must have the surfer fill in their billing information *} {nats_get_gateway_token} {if !$gateway_token} <input type="hidden" name="nextra[NETBILLING][cisp_storage]" value="1"> <input type="hidden" name="signup[set_gateway_token]" value="1"> .... {* 5. If the Smarty code does find the identification code, it should use that code and automatically submit the form using Javascript *} {else} <input type="hidden" name="signup[cc]" value="CS:{$gateway_token}"> </form> <script language="JavaScript"> document.purchase_netbilling_token.submit(); </script> {/if} </body> </html>
Note: The example above is not complete; please see the _ex_gateway_join_token template for a complete example.
Note: This feature will not work without setting up reusing members in NATS, which requires multiple steps:
- Add ignore_dupe and no_rename_old_member to your NATS prejoin form
- Add the configuration variable $config['SHOW_PREVIOUS_MEMBERID']=1;
- After you have completed the previous two steps, please contact us to set up your next step.
Instructions
Go to Sites Admin, add and setup a new site, and edit its site templates. Use the description above to modify your gateway_join template or replace the gateway_join template contents with the _ex_gateway_join_token template contents.