# Corefy

<figure><img src="https://3790748257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT43PzcNjyZtWby9yrGd3%2Fuploads%2FMbSUGQgJtLJUIxiLtbSV%2Fimage.png?alt=media&#x26;token=f4b755c7-4b70-4d69-98ca-5cc1fb5a1983" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**Disclaimers:**

Only a full refund is supported by this gateway. Partial refunds are not allowed.
{% endhint %}

{% hint style="info" %}
**Mandatory Merchant Setup in Corefy**

1. Enable “Send transaction's context on Return URL” to process 3DS transactions
2. Enable “Bypass commerce status page” to avoid a delay in completing the 3DS process
3. Enable “NonCVV” under “Merchant accounts” to process the sale using tokens without CVV
   {% endhint %}

{% hint style="warning" %}
**Known Issues**

1. A 3DS frictionless transaction will not mark as "3DS Protected" if the “payment\_card.verification” section is not received in the Corefy API response.
2. A rebill transaction will decline if it requires a 3DS challenge. If the initial transaction processed with a 3DS challenge then the rebill transaction is forced for a 3DS challenge by Corefy.
   {% endhint %}

* [Step 1 - Activate Corefy](#corefy-step1-activatecorefy)
* [Step 2 - Add Corefy credentials](#corefy-step2-addcorefycredentials)
* [Step 3 - Fill the rest of the gateway profile](#corefy-step3-filltherestofthegatewayprofile)
* [Step 4 - Test the newly added gateway](#corefy-step4-testthenewlyaddedgateway)
* [Step 5 - Apply to live campaign offers](#corefy-step5-applytolivecampaignoffers)
* [Step 6 - 3DS](#corefy-step6-3ds)

***

### Step 1 - Activate Corefy <a href="#corefy-step1-activatecorefy" id="corefy-step1-activatecorefy"></a>

Go to **Gateways** → **Gateway Integrations** and select Braintree. Click on **+ Activate**.

<figure><img src="https://3790748257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT43PzcNjyZtWby9yrGd3%2Fuploads%2FGpaFasFTCDisEPnvtaZp%2Fimage.png?alt=media&#x26;token=fe3646eb-8abe-463a-9658-6bf988cd3f3b" alt=""><figcaption></figcaption></figure>

### Step 2 - Add Corefy credentials <a href="#corefy-step2-addcorefycredentials" id="corefy-step2-addcorefycredentials"></a>

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

* **AccountId.** These will be the credentials of a user within Corefy
* **ApiKey.** These will be the credentials of a user within Corefy
* **Service**. This is the Service provided by Corefy. Generally this the payment method + currency. An example would be “payment\_card\_usd”.
* **PrivateKey**. This is the key provided by Corefy.

<figure><img src="https://3790748257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT43PzcNjyZtWby9yrGd3%2Fuploads%2FcPWInfrk3EfV7L1UCUEY%2Fimage.png?alt=media&#x26;token=14016164-f58f-45d7-887b-a69dc4452808" alt=""><figcaption></figcaption></figure>

### Step 3 - 3DS <a href="#corefy-step6-3ds" id="corefy-step6-3ds"></a>

The checkout page must handle a merchant redirect exception. The consumer will be routed to Corefy to complete the checkout.
