Note: Segpay's instructions may be more up to date.
Setup your NATS program site with SegPay. You must update your Postback
Notification Profiles or users won't be added or deleted correctly and
your transactions won't be updated. Previously you didn't need to enter
a user I.D. or access key, but now you must enter them both.
Set up on SegPay's Website
Segpay Member Management
If you only use NATS for cascading and affiliate tracking and you use
Segpay for your password management, you only need to enter
information in the 2nd Trans Post URL field and MSG for each profile.
Set this as the 2nd Trans Post URL in each one of your current Postback Notification Profiles:
- 2nd Trans Post URL: linkdomain/signup/process_tmmsegpay.php?action=<action>&stage=<stage>&approved=<approved>&name=<billname>&email=<billemail>&country=<billcntry>&state=<billstate>&city=<billcity>&address=<billaddr>&transtype=<trantype>&purchaseid=<purchaseid>&transid=<tranid>&price=<price>&username=<extra username>&password=<extra password>¤cycode=<currencycode>&eticketid=<eticketid>&memberid=<extra foreignid>&session=<extra natssess>&merchantpartnerid=<extra merchantpartnerid>&xsellnum=<xsellnum>
- 2nd Trans Post Message (You must include the * before and after the word success): *success*
You need to record the following information when you setup SegPay join
options. On the Merchant Setup page, under Packages, choose a package
and record the Package I.D.; the I.D. number ends with a colon. In the
package information section of the SegPay site, setup your join options;
for each option, record the SegPay Order I.D.
NATS Member Management
The section is what you need to enter if you are using NATS for
everything including your member management. You should only need to
create one profile, "NATS", for all your packages at Segpay since all
the data is going to the same place.
To create this, go to https://my.segpay.com. Go to
MERCHANT SETUP->POST BACK. Click on the button to create NEW POSTBACK
CONFIG. For DESCRIPTION, this is where you would enter the name NATS.
Fill in the following in bold for each field, replacing linkdomain with
that of the site:
linkdomain/signup/process_tmmsegpay.php?action=<action>&username=<extra username>&memberid=<extra foreignid>
- Inquiry Result Good: *success* (You must include the * before and after the word success)
- Access Enable URL: THIS FIELD IS NOT USED.
- Access Enable MSG: THIS FIELD IS NOT USED.
- Access Disable URL: linkdomain/signup/process_tmmsegpay.php?action=<action>&username=<extra username>&password=<extra password>&purchaseid=<purchaseid>
- Access Disable MSG: *success* (You must include the * before and after the word success)
- Cancel URL: THIS FIELD IS NOT USED.
- Cancel Match: THIS FIELD IS NOT USED.
- 2nd Trans Post URL: linkdomain/signup/process_tmmsegpay.php?action=<action>&stage=<stage>&approved=<approved>& name=<billname>&email=<billemail>&country=<billcntry>&state=<billstate>&city=<billcity>&address =<billaddr>&transtype=<trantype>&purchaseid=<purchaseid>&transid=<tranid>&price=<price>&user name=<extra username>&password=<extra password>¤cycode=<currencycode>&eticketid=<eticketid>&memberid=<extra foreignid>&session=<extra natssess>&merchantpartnerid=<extra merchantpartnerid>&xsellnum=<xsellnum>
- 2nd Trans Post Message: (You must include the * before and after the word success): *success*
Under the EMAIL TEMPLATES section, you must enter the following
information so that receipts to go out.
- Sign-Up Template: email.signup.xml
- Rebill Template: default
- Cancel Template: email.cancel.xml
- Expiration Template: default
After you fill in all the appropriate fields, click on the UPDATE
button and your profile will be saved. After you have a NATS Postback
configuration, you can use that postback configuration in all of your Packages that
work with NATS.
Packages
For each SegPay package that uses NATS, enter "nats" into the Result
Page field.
Setting up Segpay in NATS
Go to Billers Admin, click the Biller drop-down, select SegPay, and
click Add. Enter your SegPay Merchant I.D., User I.D., and Access Key.
Please contact SegPay if you can't find this information.
Go to Sites Admin, go to the Biller Details section, and fill in
the E-Ticket I.D. you setup on the SegPay website. Any text you fill in the
Custom Auth Text and Custom Decline Text fields is displayed to the
member on the SegPay approval and decline pages. For example, "Click
Here to Log In to The Members Area."
Create or edit a join option, and fill in the SegPay fields. Put
the Order I.D. for the join option you setup on the SegPay in the Order
I.D. field. You can put a E-Ticket number in the Segpay E-Ticket Override (both cc and check)
which replaces the E-Ticket you specified above in Biller Details.
Cross Sells
Currently Segpay only supports cross sells to your own sites.
You need to add the following to your Trans Post URL:
&eticketid=<eticketid>&xref=<xref>. Segpay will then provide you
with an E-Ticket ID for each cross sell. The E-Ticket I.Ds. are formatted
as follows: site:product.
Under Incoming Cross Sells, enter the site as the E-Ticket ID and the
product as the OrderID. You will then need to setup a corresponding
Outgoing cross sell for the Incoming cross sell that was just
configured. The only thing you need is the Ref Code that can be
obtained from the cross sells affiliate page. You can then activate the
incoming cross sell with as many join options as you like and activate
them inside of Segpay.
By default the cross sells will be credited to the account you used to
get the code entered under Ref Code. If you would like to credit
cross sells to the reseller that sent the original signup you can enable
the following configuration variable: $config['XSELL_SEGPAY_RESELLER'].
Notes
Change the minimum characters on your NATS join form to 8. To do this, edit your Join form and locate the this line:
<TR><TD class="join_name">Username:</TD><TD class="join_value"><input class="join_input" type="text"
name="signup[username:1:6:16:::username_check]" value="{$vars.username}"><span class="join_error">{if $errors.username}<br>{$errors.username}</span>{/if}</TD></TR>
Change the '6' into an '8' and it will work fine.