> This page is for Afterpay Online Developer, version v1.
> For other versions, use one of these documentation indexes:
> - Main (default): https://developers.afterpay.com/afterpay-online-developer/main/llms.txt
> - v1: https://developers.afterpay.com/afterpay-online-developer/v-1/llms.txt
> - Chinese: https://developers.afterpay.com/afterpay-online-developer/chinese/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.afterpay.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.afterpay.com/_mcp/server.

# Afterpay Gateway Configuration

Follow the below steps to configure the Afterpay payment gateway on your WooCommerce website.

## Configuration

Complete the steps below to enable and display Afterpay as a Payment Method.

> **Note**
>
> If the 'Afterpay Gateway Installation' steps have just been completed, please skip to Step 3.

1. Navigate to: WordPress Admin Dashboard

2. Navigate to: Plugins > Installed Plugins

3. Locate the ‘Afterpay Gateway for WooCommerce’ in the plugin list and click the 'Settings' button.

![ap-gateway-config-1.png](/_fern-img/9bb9c6544deda609115529da75b7456dfdd570cb5066d3bb1ce460936fcc43cd.webp)

4. Navigate to the 'Core Configuration' section.

![ap-gateway-config-a.png](/_fern-img/5445b75e9ec5df580bd95e8c61cb54f296dc3501bc1d8370adc24e67e3e6d448.webp)

5. Enter the Merchant ID provided by Afterpay into the 'Merchant ID' field.

![ap-gateway-config-3.png](/_fern-img/73b175f883361f52c9a798ac4060978fbf3add4cc80463ad58f977fc94f3c794.webp)

6. Enter the Secret Key provided by Afterpay into the 'Secret Key' field.

![ap-gateway-config-4.png](/_fern-img/db0159f898a8139535df5cfc0709acd3cd78225f34a784457b2288292a23d622.webp)

7. Click the 'Save changes' button at the bottom of the page.

![ap-gateway-config-5.png](/_fern-img/35b6d003e60c88489f633a432292db6a40a795a8ca823af9186ff1ee207bb8a5.webp)

> **Note**
>
> Upon a successful save of the Afterpay credentials, the 'Minimum Payment Amount' and 'Maximum Payment Amount' values will be updated.

## Notes

The ‘Sandbox’ API Environment is only applicable for dedicated test websites.

Advise your Afterpay Account Manager should test credentials be required.