API Settings
API settings connect the plugin to your ThePay 2.0 merchant account. You can find them at WPify → ThePay.

License
Section titled “License”Enter your license key to activate the plugin and receive updates.
Environment
Section titled “Environment”| Option | Description |
|---|---|
| Test | Sandbox mode for testing payments without real transactions |
| Production | Live mode for processing real payments |
API Credentials
Section titled “API Credentials”You can find these credentials in your ThePay administration panel under the Implementation section.

| Field | Description |
|---|---|
| Merchant ID | Your unique merchant identifier provided by ThePay |
| API Password | Password for API authentication |
| Project ID | Identifier of your ThePay project |
Where to Find Credentials
Section titled “Where to Find Credentials”- Log in to the ThePay administration
- Navigate to the Implementation section
- Copy the Project ID, Merchant ID, and API Password
- Paste them into the corresponding fields in the plugin settings


Testing the Connection
Section titled “Testing the Connection”The Test connection button below the credentials verifies that your store can reach the ThePay API. Save the settings first, then click the button — the plugin contacts ThePay and reports the result right on the settings page:
| Result | Meaning |
|---|---|
| Connection works | The credentials are valid and the store successfully loaded the available payment methods |
| Connection failed | ThePay refused the request; the message contains the reason returned by the gateway |
Use the button whenever you change the credentials, switch the environment, or move the store to another server. You do not have to wait for the first real payment to find out that something is wrong.
Allowed IP addresses
Section titled “Allowed IP addresses”ThePay can restrict API access to a list of allowed IP addresses. If the test reports an authentication failure, the most common cause is that the store communicates from an address that is not on that list. The plugin then also shows the outgoing IP address of your server, which is the address to add in the ThePay administration.
Full payment test
Section titled “Full payment test”- Make sure the Environment is set to Test
- Save the settings
- Go to WooCommerce → Settings → Payments and enable the ThePay gateway
- Place a test order to verify the payment flow works correctly
- After successful testing, switch the Environment to Production and update credentials with production values