> This page is for version v2 (default).
> For other versions, use one of these documentation indexes:
> - v2 (default): https://developers.clearpay.co.uk/v-2/llms.txt
> - v1: https://developers.clearpay.co.uk/v-1/llms.txt

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

# Certification Testing

When you’ve passed your internal QA testing, you’re ready for Clearpay Certification. Contact your Clearpay delivery manager to schedule certification testing.

Testing is performed within a staging environment on each of the unique environments that will be in production. The test suite includes three areas:

1. Integration standards
2. Customer experience
3. Refunds.

Certification ensures a great customer experience, minimises the potential for fraudulent activity, and checks for common compliance and technical issues.

> **Production Credentials**
>
> Your Clearpay production credentials are issued upon successful completion of the Clearpay Certification.

## Deployment

When moving your integration to your production environment, ensure the API Endpoint and Javascript URL are being loaded for Clearpay's production environment.

|            | API Endpoint                                                                                                                                      | Screenflow (Javascript)                           |
| :--------- | :------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------ |
| Sandbox    | `https://global-api-sandbox.afterpay.com`                                                                                                         | `https://portal.sandbox.afterpay.com/afterpay.js` |
| Production | `https://global-api.afterpay.com/v1 (for Clearpay version 1) and https://global-api.afterpay.com/v2`(for Clearpay version 2, our current version) | `https://portal.afterpay.com/afterpay.js`         |

> **Update the User-Agent Header**
>
> When moving to a production environment, please make sure the [User-Agent Header](/user-agent-header-1) is updated with the **production** Merchant ID.