Parameters for Populating Fields or Requesting Data

By adding parameters to your Base URL, you can do the following:

  • Pass information from your website to your payment page.

  • Pre-populate fields in the payment form.

  • Display links or text after a transaction completes.

  • Make a request to capture specific data during payment and then pass it back to you after a completed transaction.

The table lists parameters for populating fields on your payment page or for requesting data after a completed transaction.

Parameter Description
x-billname

Sends the consumer's first and last name.

Get Request (append to base URL):
&x-billname=Jane+Segpay

Post Request:
<input type="hidden" name="x-billname" value="Jane Segpay ">

x-billemail

Sends the consumer's email address.

Get Request (append to base URL):
&x-billemail=anyone@abc.com

Post Request:
<input type="hidden" name="x-billemail" value="anyone@abc.com">

x-billaddr

Sends the consumer's street address.

Get Request (append to base URL):
&x-billaddr=123+Fake+Street

Post Request:
<input type="hidden" name="x- billaddr" value="123 Fake Street">

x-billcity

Sends the consumer's city.

Get Request (append to base URL):
&x-billcity=Las+Vegas

Post Request:
<input type="hidden" name="x- billcity" value="Las Vegas">

x-billstate

Sends the consumer's State/Province/Territory (Ask your Segpay Account Rep for a list of valid entries).

Get Request (append to base URL):
&x-billstate=ND

Post Request:
<input type="hidden" name="x- billstate" value="ND">

x-billzip

Sends the consumer's zip/postal code.

Get Request (append to base URL):
&x-billzip=12345

Post Request:
<input type="hidden" name="x-billzip" value="12345">

x-billcntry

Sends the consumer's country (Ask your Segpay Account Rep for a list of valid entries).

Get Request (append to base URL):
&x-billcntry=US

Post Request:
<input type="hidden" name="x-billcntry" value="US">

merchantpartnerid

Used only for postbacks - does not display on the payment page. Merchantpartnerid appears in transaction reports and helps both you and Segpay's Risk Management team manage the transactions coming from your affiliate program. An affiliate is a partner who links to your payment page to send you referrals.

Get Request (append to base URL):
&merchantpartnerid=anyvalue

Post Request:
<input type="hidden" name="merchantpartnerid" value="anyvalue">

x-auth-link

Specifies the link to display for the consumer after an authorized transaction.

Get Request (append to base URL):
&x-auth-link=http://www.mywebsite.com/membersarea/index.htm

Post Request:
<input type="hidden" name="x-auth-link" value="http://www.yoursite.com/members/Index.htm">

x-auth-text

Displays customized text for the link that displays after an authorized transaction. Combine with x-auth-link.

Get Request (append to base URL):
&x-auth-link=http://www.mywebsite.com/membersarea/index.htm&x-auth-text=CLICK+HERE+TO+SIGNIN+TO+THE+MEMBERS+AREA!

Post Request:
<input type="hidden" name="x-auth-link" value="http://www.mywebsite/membersarea/index.htm" name="x-auth-text" value="CLICK HERE TO SIGNIN TO THE MEMBERS AREA!">

x-decl-link

Displays a specified link to the consumer after a declined transaction.

Get Request (append to base URL):
&x-decl-link=http://www.yoursite.com/LinkToOtherPaymentOptions

Post Request:

<input type="hidden" name="x-decl-link" value="http://www.yoursite.com/LinkToOtherPaymentOptions">

x-decl-text

Displays customized text for the link the consumer sees after a declined transaction. Combine with the x-decl-link.

Get Request (append to base URL):
&x-decl-link=http://www.yoursite.com/LinkToOtherPaymentOptions&x-decl-text=CLICK+HERE+TO+TRY+ADDITIONAL+PAYMENT+OPTIONS

Post Request:
<input type="hidden" name="x-decl-link" value="http://www.yoursite.com/LinkToOtherPaymentOptions" name="x-decl-text" value=" CLICK HERE TO TRY ADDITIONAL PAYMENT OPTIONS">

username

Sends the consumer's username.

Get Request (append to base URL):
&username=anyvalue

Post Request:
<input type="hidden" name="username" value="anyvalue">

password

Sends the consumer's password.

Get Request (append to base URL):
&password=anyvalue

Post Request:
<input type="hidden" name="password" value="anyvalue">

CrossSaleOff

Does not display the cross-sell options on your payment page that you assigned to your payment package.

Get Request (append to base URL):
&CrossSaleOff=1 - Does not display cross sell.
&CrossSaleOff=0 (or simply exclude this parameter) - Displays the cross sell.

User-Defined Parameters

You can pass your own user-defined data to Segpay using parameters such as memberIDor sessionID. A user-defined parameter is data that's dynamically generated by your system.

  • There's no limit to the number of user-defined parameters you can create and send to Segpay.

  • Values are limited to 32 characters and cannot begin with a number.

  • User-defined parameters are stored in a field called USERDATA and included in the Transaction Detail Report in the Merchant Portal and in the Segpay Reporting Services (SRS) transaction reports.

Examples of User-Defined Parameters: memberID, sessionID

Get Request (append to base URL):

Copy
Example shows how to send these parameters: email address, zip code, username, password, memberID, auth link with text, decline link with text
https://secure2.segpay.com/billing/poset.cgi?x-eticketid=######:####&x-billemail=anyone@abc.com&x-billzip=12345&username=anyuser&password=anypassword&memberid=anymemberID&x-auth-link=http://www.yoursite.com/members&x-auth-text=CLICK+HERE+TO+SIGNIN+TO+THE+MEMBERS+AREA!&x-decl-link= http://www.yoursite.com/LinkToOtherPaymentOptions&x-decl-text=CLICK+HERE+TO+TRY+ADDITIONAL+PAYMENT+OPTIONS

Post Request:

Copy
<form method="post" action="https://secure2.segpay.com/billing/poset.cgi?x-eticketid=######:####">
<input type="hidden" name="x-billemail" value="anyone@abc.com ">
<input type="hidden" name="x-billzip" value="12345">
<input type="hidden" name="username" value="anyuser">
<input type="hidden" name="password" value="anypassword">
<input type="hidden" name="memberID" value="anymemberID">
<input type="hidden" name="x-auth-link" value=" http://www.yoursite.com/members">
<input type="hidden" name="x-auth-text" value="CLICK HERE TO SIGNIN TO THE MEMBERS AREA!">
<input type="hidden" name="x-decl-link" value="http://www.yoursite.com/ LinkToOtherPaymentOptions">
<input type="hidden" name="x-decl-text" value="CLICK HERE TO TRY ADDITIONAL PAYMENT OPTIONS">
<input type="submit" name="Submit" value="Join Now"></form>

REF Parameters

You can define your own REF data.

  • Up to 10 REF values: REF1 - REF10.

  • REF values are each stored in their own fields and reported separately from user-defined values.

  • REF values are encrypted for added security when stored in our database.

Example of REF Parameter: &REF1=

Get Request (append to base URL):

Copy
https://secure2.segpay.com/billing/poset.cgi?x-eticketid=######:####&REF1=XXXX

Post Request:

Copy
<form method="post" action="https://secure2.segpay.com/billing/poset.cgi?x-eticketid=######:####">
<input type="hidden" name="REF1" value="XXXX ">
</form>

 

If you selected “Collect Username and Password” (or Password only) when creating your price points, these fields will display on the payment form and can be pre-populated using the parameters above. Otherwise login data can be passed to Segpay in the background. This is recommended if you assign logins to your consumers or if you let your consumers pick their own username or password on your site.