Start the ePay Standard Payment Window

To use the Standard Payment Window the following code needs to be included:

<script type="text/javascript" src="http://www.epay.dk/js/standardwindow.js"></script>

The full documentation of the Payment Window is to be found here: http://www.epay.dk/support/docs.asp?solution=1.

Now we need to provide the Standard Payment Window with information on the payment.
You can hide these information by making the type of the input fields hidden:
<input type="hidden" name="merchantnumber" value="ENTER YOUR MERCHANT NUMBER HERE" />

These are the information required by the Payment Window:
Merchantnumber: This is your unique merchantnumber. You can find your test-merchantnumber by chosing Support - Test information in the ePay Administration
Amount: The amount in minor units. 1 DKK = 100.
Currency: The currency number which the amount is provided in. A full list of supported currencies is available in the ePay administration Support - Currency codes:
Add fee To add the transaction fee to the amount.
OrderID: This is your reference for the payment. By leaving this blank we'll generate a unique order id for you.
Subscription: 1 To make a subscription based on the payment add a hidden field named subscription with the value 1: <input name="subscription" value="1">
AcceptURL: The cardholder will return to this URL when the payment is approved.
DeclineURL: The cardholder will return to this URL if the payment is aborted by the cardholder.
CallbackURL: The ePay callback server will call this page when the payment is made.
Language: The language. Error messages will be returned in this language.
  To open the payment window the following JavaScript function is called by clicking the button open_ePay_window()

Go back to the intro page