SecPay: Internet Payment Service Provider

SECPay Example Transaction Calling Form

This form is for the purpose of demonstrating the SECPay interface only, and should not be considered a functional form for direct implementation into your website. It does however allow you to demonstrate what effect changing the values for parameters will have.

All of the possible parameters that can be used are displayed below, and displayed for data entry. In normal operation, except where the customer would be expected to input data, the majority of the fields would be of type 'hidden', rather than text and you would either populate them with your own defaults, or with data from your shopping cart. If you are building your own form and do not require a field or only need the default, do not put it in your form at all, unless it is a mandatory field (in which case you will need to populate it!).

Note : Comments on fields appear below the field name.

merchant
This is a test account, you will be required to have registered with secpay and have your own merchant id for your form. Testing can be done with your own account using the options setting of 'test_status=true'
trans_id
This is your order number
callback
These values are examples only, and you should enter the addresses of your own callbacks. If you have only one callback which determines success or failure, you only need to enter it once.
amount
This is the total order amount, which is the amount we will request authorisation from the bank.
currency
Will default to GBP if not supplied.
order
Content of the order - Note correct use of the format
ship_name
ship_company
ship_addr_1
ship_addr_2
ship_city
ship_state
ship_post_code
ship_country
ship_tel
ship_fax
ship_url
bill_name
bill_company
bill_addr_1
bill_addr_2
bill_city
bill_state
bill_post_code
bill_country
bill_tel
bill_email
bill_fax
bill_url
options
backcallback
show_back
template
bgcolor
branding
Will overwrite template branding if present
background
font_face
font_size
Uses style sheet convention for font size.
customer_Text
card_type_Text
Visa_Text
Delta_Text
Master_card_Text
Switch_Text
Solo_Text
JCB_Text
American_Express_Text
card_no_Text
expiry_Text
issue_Text
start_date_Text
mandatory_Text
authorise_Text
wait_Text
error_table_Text
customer_name_Error
card_type_Error
card_no_Error
expiry_date_Error
issue_Error
start_date_Error
mail_message
cb_message
cb_fail_message
cb_list
map_flds
This field is useful if you have a predefined form with its own field names, and you want to map those field to the SECPay fields. An example might be "myformcname=ship_name:myformaddress1=ship_addr_1"