Skip to content

API Settings

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

ThePay plugin settings

Enter your license key to activate the plugin and receive updates.

OptionDescription
TestSandbox mode for testing payments without real transactions
ProductionLive mode for processing real payments

You can find these credentials in your ThePay administration panel under the Implementation section.

API credentials in plugin settings

FieldDescription
Merchant IDYour unique merchant identifier provided by ThePay
API PasswordPassword for API authentication
Project IDIdentifier of your ThePay project
  1. Log in to the ThePay administration
  2. Navigate to the Implementation section
  3. Copy the Project ID, Merchant ID, and API Password
  4. Paste them into the corresponding fields in the plugin settings

Credentials in ThePay administration

ThePay administration credentials overview

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:

ResultMeaning
Connection worksThe credentials are valid and the store successfully loaded the available payment methods
Connection failedThePay 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.

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.

  1. Make sure the Environment is set to Test
  2. Save the settings
  3. Go to WooCommerce → Settings → Payments and enable the ThePay gateway
  4. Place a test order to verify the payment flow works correctly
  5. After successful testing, switch the Environment to Production and update credentials with production values