SecureFrame Integration Guide Overview
SecureFrame Integration Guide Overview
Page 1 of 35
© SecurePay Pty Ltd
Document Control
This is a controlled document
Page 2 of 35
© SecurePay Pty Ltd
Table of Contents
Introduction .................................................................................................................................................. 4
About this guide ....................................................................................................................................... 4
Intended Audience .................................................................................................................................. 4
System Overview .................................................................................................................................... 4
Feedback .................................................................................................................................................. 5
Additional Payment Choices.................................................................................................................. 5
Technical Overview for Payment Choice – PayPal ........................................................................... 6
Integration .................................................................................................................................................... 8
1. General Information ...................................................................................................................... 8
2. Transaction URL’s ......................................................................................................................... 9
3. Mandatory Fields ........................................................................................................................... 9
4. Transaction Options .................................................................................................................... 12
5. Receiving Results Parameters .................................................................................................. 17
6. Testing........................................................................................................................................... 18
Appendices ................................................................................................................................................ 19
Appendix A: Accepted Input Fields ................................................................................................... 19
A.1. Mandatory Fields....................................................................................................................... 20
A.2. Transaction Fields..................................................................................................................... 22
A.3. Card Storage Fields .................................................................................................................. 23
A.4. FraudGuard Fields .................................................................................................................... 25
A.5. Surcharge Fields ....................................................................................................................... 26
A.6. Transaction Flow Fields ........................................................................................................... 27
A.7. Look and Feel Fields ................................................................................................................ 30
Appendix B: Results Fields .................................................................................................................. 32
B.1. Standard Result Fields ............................................................................................................. 32
B.2. Preauthorisations ...................................................................................................................... 33
B.3. FraudGuard Result Fields........................................................................................................ 34
B.4. Card Storage Result Fields ..................................................................................................... 34
B.5. Surcharge Result Fields ........................................................................................................... 35
Page 3 of 35
© SecurePay Pty Ltd
Introduction
Intended Audience
This document is intended for developers, integrating SecurePay’s SecureFrame with their
applications or shopping cart.
It is recommended that someone with web site, HTML and application programming experience
reads this guide and implements SecureFrame.
System Overview
SecurePay’s SecureFrame provides merchants with the ability to process card payments in a
secure environment.
SecurePay partners with the following major banks and financial institutions in the provision of
the SecurePay Payment Gateway:
• ANZ
• American Express
• BankWest
• Commonwealth Bank
• Diners Club
• National Australia Bank
• St George (including Bank of SA)
• Westpac
• fiserv FDMSA
SecureFrame supports card transactions only.
It is a fully hosted service and comes with a variety of options to help you integrate such as:
• Full page templates
• Call-back of results to your application
• Redirect options for receipt page
• FraudGuard
• Surcharging
• Card storage and tokenisation
Page 4 of 35
© SecurePay Pty Ltd
Feedback
Continuous improvement is one of SecurePay's core values. We welcome any feedback you
have on our integration guides to help us improve any future changes to our products.
If you wish to leave feedback, please email us at support@[Link].
If you wish to accept PayPal transactions via SecureFrame please follow the steps below:
1. Inform the SecurePay Support team of your intention to use PayPal.
2. If you don’t have a Business PayPal Account, establish an account with PayPal.
3. Login to the SecurePay Merchant Login.
4. Navigate to the following location:
• Click on [Manage] dropdown list and click on [PayPal Settings].
• Click on [Change Settings] button.
5. Click on the [Retrieve API Credentials] link on the page.
• Note: A popup window will appear. Please ensure you have popups enabled in
your web browser.
6. Login to PayPal using your credentials.
7. Copy and paste the credentials into [Step 8] and close the popup window.
8. Add the following PayPal credentials obtained from [Step 7] to the Merchant Login
PayPal settings page:
• API Username
• API Password
• API Signature
9. Add the company logo URL (Optional). The URL must be publicly accessible and must
be securely hosted (HTTPS).
10. Save changes.
Note: Once PayPal has been enabled and configured successfully you can view PayPal
transactions processed via Direct Post through the SecurePay Merchant Login.
Page 5 of 35
© SecurePay Pty Ltd
Technical Overview for Payment Choice – PayPal
PayPal uses a secure page, hosted by PayPal and presented to your customer as part of the
payment authorisation. To enable PayPal transactions through SecureFrame (from your end),
the website must pass through the tender type of “PAYPAL” within the “card_types”
SecureFrame input field.
1. Generate a Fingerprint
A Fingerprint is generated in your website code by a HMAC SHA-256 hash comprised of
your SecurePay Merchant ID, transaction password, transaction type, transaction
reference, the payment amount, and a timestamp. This value is then presented on your
payment form as a hidden field. Use your transaction password as the secret key. SHA-1
support is being decommissioned over the coming months and once support is fully
dropped, only HMAC SHA-256 will be used. In the transition period, to use HMAC SHA-
256, provide “isSHA256=” in the callback URL. It can be appended at the end. Do not
provide a value, just leave blank as is. Once support for SHA-1 is stopped, you will not
need to provide the parameter in the callback URL but can continue to send as it will not
be used by SecureFrame. See examples for callback URL in section A.6.5.
If included, SecureFrame will render the alternative payment page, which allows the
customer to select either to pay with any of the accepted card types, or to select PayPal.
If the customer selects PayPal and the “Continue” button, they will be presented with the
PayPal login/registration page.
Page 6 of 35
© SecurePay Pty Ltd
passes the result parameters back to your system. Your system should check the
Fingerprint, update your database and display the receipt to the Customer.
Note: to ensure that the result is passed back to your system successfully, it is
recommended that you use the “callback_url” field. This passes the results back to your
system as soon as the transaction is complete, rather than waiting for the customer to
select the “Continue” button. This prevents missing transactions caused by customers
closing the web browser without selecting to “Continue”.
SHA-1 support is being decommissioned over the coming months and once support is
fully dropped, only HMAC SHA-256 will be used. In the transition period, to use HMAC
SHA-256, provide “isSHA256=” in the callback URL. It can be appended at the end. Do
not provide a value, just leave blank as is. Once support for SHA-1 is stopped, you will
not need to provide the parameter in the callback URL but can continue to send as it will
not be used by SecureFrame. See examples for callback URL in section A.6.5.
Page 7 of 35
© SecurePay Pty Ltd
Integration
1. General Information
You may also add the “name” attribute or any other form functionality that you require.
Page 8 of 35
© SecurePay Pty Ltd
Most data are normally passed as “hidden” type input fields. Some fields that may be
entered by your customer is typically passed as “text” type input fields.
Form inputs follow the structure:
<input type=”field_type” name=”field_name” value=”field_value”>
2. Transaction URL’s
Listed below are the live and test URLs for performing several functions
2.1. Test URL
[Link]
2.2. Live URL
[Link]
3. Mandatory Fields
3.1. Bill Name
The Bill Name defines the flow of the transaction process.
3.2. Merchant ID
The Merchant ID field, “merchant_id”, is mandatory. It is the SecurePay account used to
process payments.
SecurePay Customer Support will supply your Merchant ID when your account is
activated. The Merchant ID will be of the format “ABC0001”, where ABC00 is your
unique account code.
Example: Setting the SecurePay Merchant ID:
<input type="hidden" name="merchant_id" value="ABC0001">
Page 9 of 35
© SecurePay Pty Ltd
<input type="hidden" name="merchant_id" value="ABC0001">
<input type="hidden" name="primary_ref" value="Test Reference">
<input type="hidden" name="txn_type" value="0">
<input type="hidden" name="amount" value="100">
<input type="hidden" name="fp_timestamp" value="20220228022758">
<input type="hidden" name="fingerprint"
value="33de8f9454a62513838ce534309c76ff8ac2c925bfda0364663d83625449789
9">
3.3.2. Pre-Authorisation
Pre-authorisations are often used by hotels to reserve funds at booking time and
then completed when the guest checks out.
To pre-authorise an amount, submit all the fields exactly as they were for the
PAYMENT transaction type above and set:
<input type="hidden" name="txn_type" value="1">
The "amount" mandatory field is the amount that will be transacted through your
SecurePay account. By default, the currency is AUD (Australian Dollars).
It must be passed in the base unit of the currency. For Australian Dollars this is cents.
For example, $1.00 AUD would be passed as “100”. 100 Yen would be passed as “100”.
Scenario: A customer chooses items from your shopping cart totalling AUD$53.20.
The "primary_ref" mandatory field is used to tag orders with an identifier meaningful to
you. This may be your invoice number or could be a unique tracking number produced
as part of your own web site.
The Payment Reference is available to the Result URL and emails, and appears as the
Transaction Reference in the SecurePay Merchant Log In.
Scenario: Your Company wants to include its invoice numbers with every payment.
Page 10 of 35
© SecurePay Pty Ltd
3.6. GMT Timestamp
You must pass a valid Greenwich Mean Time (GMT) timestamp in the field "fp_timestamp"
(also known as UTC).
The timestamp used to generate the fingerprint must exactly match the one sent
with the associated transaction.
3.7. Fingerprint
The Fingerprint is a protected record of the amount to be paid. It must be generated and
then included as an input field to SecureFrame. It prevents a customer modifying the
transaction details when submitting their card information.
SHA-1 support is being decommissioned over the coming months and once support is
fully dropped, only HMAC SHA-256 will be used. In the transition period, to use HMAC
SHA-256, provide “isSHA256=” in the callback URL. It can be appended at the end. Do
not provide a value, just leave blank as is. Once support for SHA-1 is stopped, you will
not need to provide the parameter in the callback URL but can continue to send as it will
not be used by SecureFrame. See examples for callback URL in section A.6.5.
The Fingerprint is a HMAC SHA-256 hash of the below mandatory fields, plus the
SecurePay Transaction Password in this order with a pipe separator “|”:
• “merchant_id”
• Transaction Password (supplied by SecurePay Support)
• “txn_type”
• “primary_ref”
• “amount”
• “fp_timestamp”
Page 11 of 35
© SecurePay Pty Ltd
HMAC SHA-256 of the above string using your transaction password as the secret key
(e.g. txnpassword):
33de8f9454a62513838ce534309c76ff8ac2c925bfda0364663d836254497899
4. Transaction Options
4.1. Receipt Page Redirect
Display of the receipt page and button options on the hosted receipt page can be
optionally controlled.
If SecureFrame displays the receipt (default), you can control the button on the receipt
page via the following optional parameters:
• return_url – the fully qualified URL to embed in the button link. The system will
append result parameters to this link by default.
• return_url_text – the text of the button
• return_url_target – the target of the button. This can be one of “self”, “new”,
“parent” or “top”. “parent” is useful when using the iFrame template to take the
browser back to full screen.
Example: Set the button to say “Continue...” and take the browser out of the iFrame
when clicked.
<input type="hidden" name="return_url" value="[Link]
<input type="hidden" name="return_url_text" value="Continue...">
<input type="hidden" name="return_url_target" value="parent">
By default, the return_url is used when a Cancel button is clicked by the card holder.
This url can be explicitly set by using the “cancel_url” parameter.
The card number used in the transaction may be optionally stored for subsequent batch
or XML transaction triggering.
By setting the field "store=yes”, the card will be stored in SecurePay’s Payor system
using the “primary_ref” as the Payor ID by default.
Page 12 of 35
© SecurePay Pty Ltd
will store the SIID against the payor or token and will pass the value in subsequent
transaction.
4.2.1. Payor
Example: Set card storage with type Payor and my own Payor ID
<input type="hidden" name="primary_ref” value=”123456”>
<input type="hidden" name="store” value=”yes”>
<input type="hidden" name="store_type” value=”payor”>
<input type="hidden" name="payor” value=”MyCustomer”>
<input type=”hidden” name=”customer_code” value=”MyCustomerCode”>
<input type=”hidden” name=”standing_instruction_type”” value=”1”>
4.2.2. Token
A Token is a string that represents a stored card number. If the card number
changes, so does the token, therefore card numbers and tokens cannot be edited,
they may only be added or deleted. However, a Customer Code can also be
assigned for each token and can be edited through Merchant Portal.
Tokens can be used in 3rd party systems to represent card numbers.
If a card is passed to the system for storage several times, the same token is
always returned.
To have SecurePay generate a token for a card or return an existing token for a
pre-stored card set “store_type=token”.
SecureFrame will return the token in the result parameters.
Example: Set card storage with type Token
Page 13 of 35
© SecurePay Pty Ltd
4.2.3. Stored Transaction Reference
When triggering a payment from a stored card of Payor or Token via batch or API,
the Transaction Reference defaults to the Payor ID (or Token). This can be
overridden by setting a specific Transaction Reference at the time of storage.
Set the “payor_ref” field to store your desired Transaction Reference against the
stored card.
This is particularly useful; for tokens, as the token does not necessarily represent
your customer. Customer Code can also be used in conjunction with the
Transaction Reference.
Example: Set card storage with type Token and your own Transaction Reference
In this example, the Payment Reference ID and the stored Transaction Reference
for future triggering are the same.
When you choose to store a customer’s card details in SecurePay’s card storage
system when a SecureFrame transaction is processed, you can optionally choose
to store their card details without charging their card. This is known as the Store
Only method. Ensure that you have customer’s agreement before storing their
card.
When you use Store Only, the amount included is ignored and is not stored against
the customer’s details
Please note the account verification and standing_instruction_type
functionality is not available yet. We will advise you of the date and provide
detailed instructions ahead of the changes. For Visa and Mastercard cards and
selected acquiring banks (NAB and fiserv FDMSA).
• An Account Verification will be initiated to verify the card with the bank
before it gets stored. This verification step is a mandatory requirement from
schemes which will help reduce customer complaints and improve approval
rates.
• The standing instruction may be optionally provided using
standing_instruction_type field. If this is passed, the card scheme will send
a unique identifier called Standing Instruction ID that links to the payment
history between the customer and merchant. SecurePay will store the SIID
Page 14 of 35
© SecurePay Pty Ltd
against the payor or token and will pass the value in subsequent
transaction.
To use Store Only, additional to the standard mandatory fields you must:
• Pass through the txn_type value of 8 in your requests. This value is defined
further in section A.1.3.
TYPICAL USE <input type=”HIDDEN” name=”txn_type” value=”8”>
• Set display_receipt to false – See section A.6.1. for more details.
• Set confirmation to false – See section A.6.1 for more details.
• Set store_type to “payor”.
• Set store to “yes”.
• Pass through payor to set the value for the payor id.
• Pass through customer code to set the value for the customer code
(optional).
• Set applicable standing instruction type (Optional for Visa and Mastercard
and if acquiring with NAB or fiserv FDMSA).
• Generate a fingerprint and pass this through as the fingerprint value in your
requests. This is a protected record of the transaction details and prevents a
customer modifying the details when submitting their card information. Your
system will need to create a HMAC SHA-256 hash of the following fields in
order, separated by “|”. These fields are different to the standard fingerprint
fields described in section A.1.7.
merchant_id|TransactionPassword|txn_type|store_type|payor|fp_timestamp
Example:
ABC0001|txnpassword|8|payor|PayorTest|20220228022758
TYPICAL USE <input type=”HIDDEN” name=”fingerprint”
value=”882df414d8583ec99aea9f89177d0cb529d98b0cad400e3d58c9653a
95105a2d”>
When you use Store Only, only the following result fields are returned:
o Strestext
o Fingerprint
o Strescode
o Payor
o Customer Code, if provided
o Summarycode
o Standing instruction type (applicable to NAB and fiserv FDMSA)
o Standing instruction ID (applicable to NAB and fiserv FDMSA)
SHA-1 support is being decommissioned over the coming months and once
support is fully dropped, only HMAC SHA-256 will be used. In the transition
period, to use HMAC SHA-256, provide “isSHA256=” in the callback URL. It
can be appended at the end. Do not provide a value, just leave blank as is.
Once support for SHA-1 is stopped, you will not need to provide the
parameter in the callback URL but can continue to send as it will not be
used by SecureFrame. See examples for callback URL in section A.6.5.
Page 15 of 35
© SecurePay Pty Ltd
4.3. Currency
If your bank supports multicurrency, you may optionally set the currency of the
transaction to one other than AUD.
Set the field “currency” to any ISO three letter currency value.
4.4. Surcharging
Surcharging may be applied across all card types (Visa, MasterCard, etc.), or set
individually per card type.
To activate surcharging set “surcharge=yes”. This will not apply any surcharging unless
rates and/or fees have been set. It will turn on optional result parameters.
4.5. Template
There are several options to control how the hosted pages are displayed to your
customers. This is controlled by the optional “template” parameter. Responsive is the
recommended template.
Set “template=responsive” to use the responsive version. This version displays only the
input fields, confirmation text and form buttons. It also will perform well on multi form
devices and has friendly CSS tagging.
Set “template=default” to use the full screen payment option. If the template parameter
is omitted, this is the default.
Tip: use the Return URL text and target options to control the payment flow from within
the iFrame.
Page 16 of 35
© SecurePay Pty Ltd
4.6. Look and Feel
Several options can be passed to the system to change the look and feel. These include
the header logo, the page title and the primary reference name, among others.
For more look and feel options, please see section A.7.
4.7. PayPal
Without passing through “PAYPAL” under “card_types” the normal SecureFrame credit
card payment page will be rendered, which will accept the “card_types” passed through.
To enquire about enabling this feature on your SecurePay account please speak to
SecurePay’s Payment Gateway Advisors on 1300 786 756 (option 2).
4.8. FraudGuard
The system will send back to your URL’s a predefined set of result parameters.
Some parameters will only be returned if an option is activated, such as “store”.
The system will POST result parameters the first time it calls your server but will send result
parameters using the GET method based on RFC 2616 standards after being redirected.
Result parameters are available to you via two methods:
Page 17 of 35
© SecurePay Pty Ltd
• Return URL – When you specify a result URL, result parameters are appended to the
URL. This occurs for both receipt page redirect and for the return button on the hosted
receipt page.
• Call-back URL – SecureFrame contacts your system in the background and sends result
parameters
In addition, you can configure a unique cancel URL which overrides the return_url when the
Cancel button is clicked on the page.
All result parameters are listed in the Appendices.
6. Testing
As you build your system you can test functionality, when necessary, by submitting parameters
to the test URL. You can generate a fingerprint and then complete the transaction by using the
card details listed below.
6.1. Test Card Number, Type and Expiry
You can simulate approved and declined transactions by submitting alternative payment
amounts.
If the payment amount ends in 00, 08, 11 or 16, the transaction will be approved once
card details are submitted. All other options will cause a declined transaction.
$1.00 (100)
$1.08 (108)
$105.00 (10500)
$105.08 (10508)
(or any total ending in 00, 08)
$1.51 (151)
$1.05 (105)
$105.51 (10551)
$105.05 (10505)
(or any totals not ending in 00, 08)
Note that when using the live URL for payments, the bank determines the transaction
result, independent of the payment amount
Page 18 of 35
© SecurePay Pty Ltd
Appendices
Appendix A: Accepted Input Fields
Mandatory Transaction Surcharging Flow
Page 19 of 35
© SecurePay Pty Ltd
A.1. Mandatory Fields
A.1.1. bill_name
Class Mandatory
A.1.2. merchant_id
Class Mandatory
A unique identifier for the Merchant within the Payment Gateway. This
Merchant identifier value is an alphanumeric string allocated to you by
Description
SecurePay. This merchant identifier value is not the same as the merchant
number provided by your bank.
A.1.3. txn_type
Class Mandatory
Format Numeric
Page 20 of 35
© SecurePay Pty Ltd
Typical Use <input type="hidden" name="txn_type" value="0">
A.1.4. amount
Class Mandatory
The total amount of the purchase transaction. This value must be a positive
integer in the base unit of the currency, such as cents for AUD. Please be
Description
careful to correctly specify the amount as the system has no method of
determining whether an amount has been correctly specified.
A.1.5. primary_ref
Class Mandatory
A.1.6. fp_timestamp
Class Mandatory
The GMT time used for Fingerprint generation. This value must be the same
submitted to generate a fingerprint as submitted with the transaction.
Description
SecurePay validates the time to within one hour of current time. The time
component must be in 24-hour time format.
A.1.7. fingerprint
Class Mandatory
SHA-1 support is being decommissioned over the coming months and once
Description support is fully dropped, only HMAC SHA-256 will be used. In the transition
period, to use HMAC SHA-256, provide “isSHA256=” in the callback URL. It
Page 21 of 35
© SecurePay Pty Ltd
can be appended at the end. Do not provide a value, just leave blank as is.
Once support for SHA-1 is stopped, you will not need to provide the
parameter in the callback URL but can continue to send as it will not be used
by SecureFrame.
A HMAC SHA-256 hash using your transaction password as the secret key
of:
• merchant_id|TransactionPassword|txn_type|primary_ref|amount|fp_ti
mestamp
Where the “TransactionPassword” is obtained from SecurePay Support and
maybe changed via the SecurePay Merchant Log In. All other fields must be
exactly as sent.
Class Optional
Default AUD
Used to set the transaction currency sent to the bank for processing. You
must have a bank merchant facility that accepts currencies other than AUD
before using this feature.
Description Set the currency to any ISO 4217 three letter currency code. e.g., USD, NZD,
GBP, etc.
The format of the amount must match the currency. e.g., Yen has no decimal
place.
A.2.2. display_cardholder_name
Class Optional
Default yes
Description By default, a Cardholder name input field is not displayed to the cardholder.
Page 22 of 35
© SecurePay Pty Ltd
Setting the “display_cardholder_name” field to “yes” will display the
cardholder’s name input field on the payment form. This will allow the
cardholder to enter their name as part of the payment.
Default no
A.3.2. store_type
Class Optional
Default PAYOR
Type PAYOR will store the card in the SecurePay Payor database. The
“primary_ref” field will be used as the Payor ID unless overridden with “payor”.
Description Type TOKEN will either create and store a new token that represents the card
number or return a pre-existing token if the card has been stored previously.
Tokens are stored as non-editable Payors.
A.3.3. payor
The Payor ID to store with the Payor. This will become the Transaction
Description Reference for future triggered payments against that Payor unless overridden
with “payor_ref”
Page 23 of 35
© SecurePay Pty Ltd
A.3.4. payor_ref
Class Optional
Sets the Transaction Reference for future triggered payments. If not set, the
Description system will log the Payor as the Transaction Reference when a payment is
triggered.
A.3.5. standing_instruction_type
Class Optional
Then this field will default to “3” which is Unscheduled Credential on File
(UCOF). Otherwise, it will pass the same value received in the request to the
bank
This field is available not available yet. We will advise you of the date
and provide detailed instructions ahead of the changes.
This field is only applicable to Visa and Mastercard cards only and on
selected acquiring banks (NAB and fiserv FDMSA).
Standing instructions can be of three types:
• Recurring – type of payment that is processed at fixed, regular
intervals for an ongoing service e.g. gym membership.
• Instalment – type of payment that is processed at fixed incremental
payments made towards a single purchase at regular intervals and
Description
stop once the balance is paid off e.g. four $100 monthly payments
towards a sofa that costs $400.
• Unscheduled Credential On File (UCOF) – type of payment that is
used for adhoc payment triggered using a stored card e.g. an auto
top-up of an account whenever the amount falls below a certain
threshold.
If this is passed, the card scheme will send a unique identifier called Standing
Instruction ID that links to the payment history between the customer and
merchant. SecurePay will store the SIID against the payor or token and will
pass the value in subsequent transaction.
Page 24 of 35
© SecurePay Pty Ltd
Typical Use <input type="hidden" name="standing_instruction_type" value="1">
A.3.6. customer_code
Class Optional
Class Optional
Default None
A.4.2. delivery_country
Class Optional
Default None
A.4.3. email_address
Class Optional
Default None
Page 25 of 35
© SecurePay Pty Ltd
Typical Use <input type="text" name="email_address" value=”test@[Link]">
Default no
A.5.2. surcharge_rate
Class Optional
Default 0
A.5.3. surcharge_fee
Class Optional
Default 0
Description Fee amount to be added to the payment amount for all card types.
A.5.4. surcharge_rate_v/m/a/d/j
Class Optional
Default 0
Page 26 of 35
© SecurePay Pty Ltd
Percentage surcharge to apply to a specific card type. Overrides
Description
“surcharge_rate”.
A.5.5. surcharge_fee_v/m/a/d/j
Class Optional
Default 0
Fee amount to be added to the payment amount for a specific card type.
Description
Overrides “surcharge_fee”.
Class Optional
Default yes
Define which system displays the receipt page to the card holder. “Yes”
Description means SecurePay displays the receipt page. To redirect to your own receipt
page set this value to “no” and use the return_url parameter.
A.6.2. return_url
Class Optional
The URL of the page on the Merchant web site that accepts transaction result
data as POST elements.
The page may be almost any form of web page, including static HTML pages,
CGI scripts, ASP pages, JSP pages, PHP scripts, etc, however cookies or
Description other forms of additional information will not be passed through the Payment
Gateway.
The “return_url” must be a URL for a publicly visible page on a web server
within a domain that is delegated to a public IP number. Internal machine
names, such as "localhost", Windows-style machine names, and privately
translated IP numbers will fail.
Page 27 of 35
© SecurePay Pty Ltd
If “display_receipt” is set to “yes”, this is the URL of the button on the hosted
result page.
If “display_receipt” is set to “no”, this is the redirect URL following a
transaction.
Your web host cannot use Server Name Indicators (SNIs) for determining
which SSL certificate to serve. This is not supported by SecurePay’s systems.
A.6.3. return_url_text
Class Optional
Default none
Defines the text on the hosted result page button that takes the card holder to
Description
the next step in the process.
A.6.4. return_url_target
Class Optional
Default none
Defines the target of the hosted result page button that takes the card holder
Description to the next step in the process. Useful for iFramed pages to take the process
out of the iFrame.
A.6.5. callback_url
Class Optional
The URL of the page on the Merchant web site that accepts transaction result
data as POST elements.
Description The page may be almost any form of web page, including static HTML pages,
CGI scripts, ASP pages, JSP pages, PHP scripts, etc, however cookies or
other forms of additional information will not be passed through the Payment
Gateway.
Page 28 of 35
© SecurePay Pty Ltd
The “callback_url” must be a URL for a publicly visible page on a web server
within a domain that is delegated to a public IP number. Internal machine
names, such as "localhost", Windows-style machine names, and privately
translated IP numbers will fail.
Your web host cannot use Server Name Indicators (SNIs) for determining
which SSL certificate to serve. This is not supported by SecurePay’s systems.
SHA-1 support is being decommissioned over the coming months and once
support is fully dropped, only HMAC SHA-256 will be used. In the transition
period, to use HMAC SHA-256, provide “isSHA256=” in the callback URL. It
can be appended at the end. Do not provide a value, just leave blank as is.
Once support for SHA-1 is stopped, you will not need to provide the
parameter in the callback URL but can continue to send as it will not be used
by SecureFrame.
A.6.6. cancel_url
Class Optional
The URL of the page on the Merchant web site that accepts transaction result
data as POST elements when the card holder clicks a Cancel button on a
hosted page.
The page may be almost any form of web page, including static HTML pages,
CGI scripts, ASP pages, JSP pages, PHP scripts, etc, however cookies or
other forms of additional information will not be passed through the Payment
Gateway.
Description The “cancel_url” must be a URL for a publicly visible page on a web server
within a domain that is delegated to a public IP number. Internal machine
names, such as "localhost", Windows-style machine names, and privately
translated IP numbers will fail.
Note: some result parameters may not be populated depending on the point
of cancellation of the process.
Your web host cannot use Server Name Indicators (SNIs) for determining
which SSL certificate to serve. This is not supported by SecurePay’s systems.
Page 29 of 35
© SecurePay Pty Ltd
A.6.7. confirmation
Class Optional
Default yes
Class Optional
Default default
A.7.2. primary_ref_name
Class Optional
Description Defines the label on the hosted pages for the Primary Reference field.
A.7.3. page_header_image
Class Optional
String, fully qualified URL. HTTPS method only. Must end in one of gif, jpeg,
Format
jpg, png. Valid images only.
Default none
Page 30 of 35
© SecurePay Pty Ltd
Description URL of an image to be used as the header of the hosted pages.
A.7.4. page_footer_image
Class Optional
String, fully qualified URL. HTTPS method only. Must end in one of gif, jpeg,
Format
jpg, png. Valid images only.
Default none
A.7.5. page_title
Class Optional
A.7.6. card_types
Class Optional
String, bar “|” separate values from VISA, MASTERCARD, AMEX, DINERS,
Format
JCB, PAYPAL
Defines the card types accepted. This must be a subset of the card types you
Description
accept.
A.7.7. page_style_url
Class Optional
Page 31 of 35
© SecurePay Pty Ltd
Format String, fully qualified URL
The URL of the page on the Merchant web site that provides styling for the
Description hosted page. Styles override the default page styles. Images embedded by
be fully qualified URL’s. All JavaScript and malicious code will be removed.
The associated text for each "rescode". For bank response codes 00 – 99,
restext this field is generated by the bank's payment systems. All other codes have
the "restext" generated by SecurePay.
The value of the primary_ref parameter from the transactions request. This
refid value is returned to the Merchant's processing system to allow matching of
the original transaction request.
txnid The bank transaction ID. This string is unique at least per terminal, per bank
and per settlement date. This value is required to be re-entered along with
other details of the original payment when processing refunds.
The bank settlement date. This is the date the funds will be settled into the
merchant's account. The date will correspond to today's date until the bank's
settdate
cut-off time (typically 6-11pm), then roll to the following business day. The
settlement date is returned in the format "YYYYMMDD".
pan The masked card number of format first six…last three. e.g., 444433…111
expirydate The four-digit expiry date entered by the customer. e.g., 0813
Page 32 of 35
© SecurePay Pty Ltd
The GMT (UTC) time used for the response fingerprint of the format
"YYYYMMDDHHMMSS". This value must be used when generating a string
timestamp to compare to the response “fingerprint” value to validate the response. The
time component must be in 24-hour time format.
The amount in the base unit of the currency, typically cents for Australian
amount Dollars. e.g., $104.23 will be 10423.
The card type used for the transaction. This will be one of:
• “Visa”
• “MasterCard”
cardtype
• “American Express”
• “Diners”
• “JCB”
• “PayPal”
B.2. Preauthorisations
Preauth fields are only returned when “txn_type” is set to a preauth transaction type on input.
Page 33 of 35
© SecurePay Pty Ltd
Field Description
Field Description
Field Description
Storage code Returns “800” if the Payor or Token was successfully stored.
strescode
Returns a different string if the storage failed. The “strestext” describes the
failure reason.
If “store_type” is set to “payor” (or absent - default), the “payor” field will be
Payor returned in this result field.
Page 34 of 35
© SecurePay Pty Ltd
(Not yet available) The same standing_instruction_type value will be
standinginstruct returned in this field.
iontype Applicable to Visa and Mastercard cards only and on selected acquiring
banks (NAB and fiserv FDMSA).
(Not yet available) If store is set to “yes”, the card scheme will send back in
the response a unique identifier called Standing Instruction ID (SIID) on the
first transaction that links to the payment history between the customer and
standinginstruct merchant. SecurePay will store the SIID against the payor and will pass the
ionid value in subsequent transaction.
Applicable to Visa and Mastercard cards only and on selected acquiring
banks (NAB and fiserv FDMSA).
Field Description
The amount passed to the system, prior to the addition of the surcharge, in
the base unit of the currency, typically cents for Australian Dollars. E.g.
baseamount
$104.23 will be 10423. This amount added to the “suramount” equals the
“amount”.
The surcharge amount in the base unit of the currency, typically cents for
suramount Australian Dollars. E.g. $104.23 will be 10423. This amount added to the
“baseamount” equals the “amount”.
The surcharge fee added to the amount amount in the base unit of the
surfee
currency, typically cents for Australian Dollars. E.g. $104.23 will be 10423.
Page 35 of 35
© SecurePay Pty Ltd