# SurePay

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2Fywg6oDvgBSQG9RNBDyT0%2FUntitled-1.png?alt=media&#x26;token=cf8a0c78-796e-43d9-b1d6-ba5e708183af" alt=""><figcaption></figcaption></figure>

This article will walk you through adding your SurePay gateway.

* [Step 1 - Activate SurePay](#surepay-step1-activatesurepay)
* [Step 2 - Add SurePay credentials](#surepay-step2-addsurepaycredentials)
* [Step 3 - Fill the rest of the gateway profile](#surepay-step3-filltherestofthegatewayprofile)
* [Step 4 - Test the newly added gateway](#surepay-step4-testthenewlyaddedgateway)
* [Step 5 - Apply to live campaign offers](#surepay-step5-applytolivecampaignoffers)

***

### Step 1 - Activate SurePay <a href="#surepay-step1-activatesurepay" id="surepay-step1-activatesurepay"></a>

* Go to **Merchants > Gateway Integrations** and *scroll* down to **SurePay**.
* *Click* on the **SurePay** tile.
* *Click* on **+Activate**.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FM7vlpSC5EpUeHdo35dfj%2FUntitled.png?alt=media&#x26;token=0462a35d-6ff1-4d5c-80d4-2c5ff2fd15fc" alt=""><figcaption></figcaption></figure>

### Step 2 - Add SurePay credentials <a href="#surepay-step2-addsurepaycredentials" id="surepay-step2-addsurepaycredentials"></a>

Now the **Create New MID** page will appear. Double-check that *SurePay* is selected in the gateway field and fill in the rest of the info on the gateway profile.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FMCpDIb2kfaIHNcb726wP%2Fimage.png?alt=media&#x26;token=8f2adf89-48e5-47de-8fbf-ea715b401b46" alt=""><figcaption></figcaption></figure>

* **UserName** and **Password -** These will be the credentials of a user within SurePay. These must be refreshed every 90 days. It is recommended to use **APIKey** instead.
* **APIKey** - Obtained from your SurePay account.
* **DeviceGuid** - This is the DeviceGuid provided by SurePay
* **alwaysCloseBatch -** SurePay processes batch transactions at the end of the day. Use this option to close the batch after every transaction. This will result in an email to the SurePay admin user after every transaction.

{% hint style="warning" %}
Sales Voids will be disabled if alwaysCloseBatch is selected. Auths can still be voided.
{% endhint %}
