Last update 6/09/2018

4. Link your website to the payment page

4.1 Where to configure?

The link between your website and our e-Commerce payment page has to be established on the last page of the shopping basket on your website, in other words: the last page of your site presented to the buyer.

A form with hidden html fields containing the order data must be integrated into this last page. The block of code you need to paste into the last page of your shopping basket is shown below:

<form method="post" action="https://mdepayments.epdq.co.uk/ncol/test/orderstandard_utf8.asp" id=form1 name=form1>



<!-- general parameters: see Form parameters -->

<input type="hidden" name="PSPID" value="">

<input type="hidden" name="ORDERID" value="">

<input type="hidden" name="AMOUNT" value="">

<input type="hidden" name="CURRENCY" value="">

<input type="hidden" name="LANGUAGE" value="">

<input type="hidden" name="CN" value="">

<input type="hidden" name="EMAIL" value="">

<input type="hidden" name="OWNERZIP" value="">

<input type="hidden" name="OWNERADDRESS" value="">

<input type="hidden" name="OWNERCTY" value="">

<input type="hidden" name="OWNERTOWN" value="">

<input type="hidden" name="OWNERTELNO" value="">



<!-- check before the payment: see Security: Check before the payment -->

<input type="hidden" name="SHASIGN" value="">

<!-- layout information: see Look and feel of the payment page -->

<input type="hidden" name="TITLE" value="">

<input type="hidden" name="BGCOLOR" value="">

<input type="hidden" name="TXTCOLOR" value="">

<input type="hidden" name="TBLBGCOLOR" value="">

<input type="hidden" name="TBLTXTCOLOR" value="">

<input type="hidden" name="BUTTONBGCOLOR" value="">

<input type="hidden" name="BUTTONTXTCOLOR" value="">

<input type="hidden" name="LOGO" value="">

<input type="hidden" name="FONTTYPE" value="">



<!-- post payment redirection: see Transaction feedback to the customer -->

<input type="hidden" name="ACCEPTURL" value="">

<input type="hidden" name="DECLINEURL" value="">

<input type="hidden" name="EXCEPTIONURL" value="">

<input type="hidden" name="CANCELURL" value="">

<input type="submit" value="" id=submit2 name=submit2>



</form> 

4.2 Form parameters

Although strictly taken the PSPID, ORDERID, AMOUNT, CURRENCY and LANGUAGE fields are sufficient, we nevertheless strongly recommend you to also send us the customer name (CN), customer’s e-mail (EMAIL), address (OWNERADDRESS), town/city (OWNERTOWN), postcode/ZIP (OWNERZIP), country (OWNERCTY) and telephone number (OWNERTELNO), as they can be useful tools for fraud prevention.

The following table gives an overview of the hidden fields used to transmit the “general parameters” to our system (additional fields are described throughout this and related documentation):

Field

Description

PSPID Your affiliation name in our system
ORDERID

Your order number (merchant reference). The system checks that a payment has not been requested twice for the same order.

The ORDERID has to be assigned dynamically.

AMOUNT

Amount to be paid, MULTIPLIED BY 100 since the format of the amount must not contain any decimals or other separators.

The AMOUNT has to be assigned dynamically.

CURRENCY

Currency of the order

ISO alpha code, e.g. EUR, USD, GBP, etc.

CN

Customer name

Will be pre-initialised (but still editable) in the Customer Name field of the credit card details.

EMAIL Customer email address
OWNERADDRESS Customer street name and number
OWNERZIP Customer postcode or ZIP code
OWNERTOWN Customer town/city/...
OWNERCTY Customer country
OWNERTELNO Customer telephone number

4.3 Form action

<form method="post" action="https://mdepayments.epdq.co.uk/ncol/test/orderstandard_utf8.asp" id=form1 name=form1>

The action of the form will be our e-Commerce system’s payment processing page.

  • In the TEST environment the URL for the action will be https://mdepayments.epdq.co.uk/ncol/test/orderstandard_utf8.asp
  • In the PRODUCTION environment the URL for the action will be https://payments.epdq.co.uk/ncol/prod/orderstandard_utf8.asp

Change "test" to "prod"

When you switch from your test account to your production (live) account, you must replace “test” with “prod” in the URL of the payment page.

If you forget to change the action of your form once you start in production with real orders, your transactions will be sent to the test environment and will not be sent to the acquirers/banks, meaning you won't be paid.

*Call Charges: The following is a guide to call charge information from Business landlines within the UK.

Barclaycard is a trading name of Barclays Bank PLC. Barclays Bank PLC is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority (Financial Services Register number: 122702). Registered in England. Registered No. 1026167. Registered office: 1 Churchill Place, London E14 5HP

Barclays Bank PLC subscribes to the Lending Code which is monitored and enforced by the Lending Standards Board. Further details can be found at www.lendingstandardsboard.org.uk escape arrow


© Barclaycard 2016