---
updatedAt: 2025-09-15T16:37:58.000Z
agentTools:
  projectIndex: https://developer.spreedly.com/llms.txt
---

# ePay gateway guide

## [ePay fact sheet](https://developer.spreedly.com/docs/epay-factsheet)

| Additional notes                                                                                                                                                                                                        |
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| To use [ePay gateway](http://www.epay.dk/) with the Spreedly API you have to add the Spreedly API IP address to the list of authorized IP’s in ePay (see image below).                                                  |
| The IP addresses for white listing are [listed here](https://docs.spreedly.com/reference/ip-addresses/).                                                                                                                |
| Some ePay accounts may have a referring domain you need to specify. If this is the case for your account, please see our [referring domain section](https://docs.spreedly.com/payment-gateways/epay/#referring-domain). |

## Adding an ePay gateway

![](https://files.readme.io/77dd50f-image.png)

Once that’s done you just need to supply your merchant number like so:

```xml

curl https://core.spreedly.com/v1/gateways.xml \
  -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
  -H 'Content-Type: application/xml' \
  -d '<gateway>
        <gateway_type>epay</gateway_type>
        <login>Your merchant number</login>
      </gateway>'
```

```xml
<gateway>
  <token>VPGD8mNnH44kRJoTnKVJp3H7pDL</token>
  <gateway_type>epay</gateway_type>
  <name>ePay</name>
  <description nil="true"/>
  <login>Your merchant number</login>
  <characteristics>
    <supports_purchase type="boolean">true</supports_purchase>
    <supports_authorize type="boolean">true</supports_authorize>
    <supports_capture type="boolean">true</supports_capture>
    <supports_credit type="boolean">true</supports_credit>
    <supports_general_credit type="boolean">false</supports_general_credit>
    <supports_void type="boolean">true</supports_void>
    <supports_verify type="boolean">false</supports_verify>
    <supports_reference_purchase type="boolean">false</supports_reference_purchase>
    <supports_purchase_via_preauthorization type="boolean">false</supports_purchase_via_preauthorization>
    <supports_offsite_purchase type="boolean">false</supports_offsite_purchase>
    <supports_offsite_authorize type="boolean">false</supports_offsite_authorize>
    <supports_3dsecure_purchase type="boolean">false</supports_3dsecure_purchase>
    <supports_3dsecure_authorize type="boolean">false</supports_3dsecure_authorize>
    <supports_store type="boolean">false</supports_store>
    <supports_remove type="boolean">false</supports_remove>
    <supports_fraud_review type="boolean">false</supports_fraud_review>
    <supports_disburse type="boolean">false</supports_disburse>
  </characteristics>
  <credentials>
    <credential>
      <name>login</name>
      <value>Your merchant number</value>
    </credential>
  </credentials>
  <gateway_specific_fields>
  </gateway_specific_fields>
  <payment_methods>
    <payment_method>credit_card</payment_method>
  </payment_methods>
  <state>retained</state>
  <redacted type="boolean">false</redacted>
  <created_at type="dateTime">2018-06-19T17:07:43Z</created_at>
  <updated_at type="dateTime">2018-06-19T17:07:43Z</updated_at>
</gateway>
```

To learn more about creating and managing gateways in our Marketplace, review the [Gateway user guide](https://developer.spreedly.com/docs/gateway-user-guide). For gateways not included in the Marketplace, review the steps below.

### Create a gateway

Visit your [Connections](https://app.spreedly.com/gateways/all) area to review all gateways and add new ones. When creating your gateways, select the gateway name and authentication mode (if prompted) before completing required fields. Select :ballot\_box\_with\_check:Sandbox to create a gateway in Sandbox mode, for processing test card data and transactions in your Spreedly environment.

<Image align="center" src="https://files.readme.io/bd7e72c-Screenshot_2024-05-14_at_2.18.13_PM.png" />

Add your merchant number to the `login` field to create an ePay gateway.

## Referring Domain

For some ePay accounts, you may want to specify a referring domain. If this applies to your account, you can do so like this:

```xml

curl https://core.spreedly.com/v1/gateways.xml \
  -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
  -H 'Content-Type: application/xml' \
  -d '<gateway>
        <gateway_type>epay</gateway_type>
        <login>merchant number</login>
        <referring_domain>example.com</referring_domain>
      </gateway>'
```

```xml

<gateway>
  <token>uvsqWpCS3ML1xbYOZZ8hoStu1Q</token>
  <gateway_type>epay</gateway_type>
  <name>ePay</name>
  <description nil="true"/>  
<login>merchant number</login>
  <characteristics>
    <supports_purchase type="boolean">true</supports_purchase>
    <supports_authorize type="boolean">true</supports_authorize>
    <supports_capture type="boolean">true</supports_capture>
    <supports_credit type="boolean">true</supports_credit>
    <supports_general_credit type="boolean">false</supports_general_credit>
    <supports_void type="boolean">true</supports_void>
    <supports_verify type="boolean">false</supports_verify>
    <supports_reference_purchase type="boolean">false</supports_reference_purchase>
    <supports_purchase_via_preauthorization type="boolean">false</supports_purchase_via_preauthorization>
    <supports_offsite_purchase type="boolean">false</supports_offsite_purchase>
    <supports_offsite_authorize type="boolean">false</supports_offsite_authorize>
    <supports_3dsecure_purchase type="boolean">false</supports_3dsecure_purchase>
    <supports_3dsecure_authorize type="boolean">false</supports_3dsecure_authorize>
    <supports_store type="boolean">false</supports_store>
    <supports_remove type="boolean">false</supports_remove>
    <supports_fraud_review type="boolean">false</supports_fraud_review>
    <supports_disburse type="boolean">false</supports_disburse>
  </characteristics>
  <credentials>
    <credential>
      <name>login</name>
      <value>merchant number</value>
    </credential>
  </credentials>
  <gateway_specific_fields>
  </gateway_specific_fields>
  <payment_methods>
    <payment_method>credit_card</payment_method>
  </payment_methods>
  <state>retained</state>
  <redacted type="boolean">false</redacted>
  <created_at type="dateTime">2017-07-27T17:48:42Z</created_at>
  <updated_at type="dateTime">2017-07-27T17:48:42Z</updated_at>
</gateway>
```