Who should use this guideThis guide is intended for merchants who:
- Use Payrails as a payment orchestrator
- Use Transbank (WebPay Plus) to accept payments in Chile
- Accept card payments through WebPay’s hosted payment page
Create and configure a Transbank integration in Payrails
Follow these steps to set up Transbank:- Log in to the Payrails portal.
- Go to Settings → Integrations → Payments.
- Select Add instance to create a new Transbank integration configuration.
- Select the workspaces where this integration should be available.
About workspacesWorkspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple workspaces.
Step 2: Choose the provider
Select Transbank and continue to the next step.
Step 3: Configure your Transbank integration
Integration instance name
An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for each provider based on region, currency, or business needs. Choose a clear, consistent name, since it’s used in routing.In Payrails
- Enter an Instance name for your integration.

Commerce Code & Secret Key
From your Transbank account manager- Obtain your Commerce Code & Secret Key.
- Paste the values into the Commerce Code and Secret Key fields.

Payment methods
In Payrails- Under Payment methods, enable WebPay.

Request fields for Transbank
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to Transbank when you include them. For more about meta fields, refer to Meta fields.
Transbank needs no
meta fields. Payrails builds the buy order and session from the payment.
Configure Transbank settings
Some Transbank integration settings change how Payrails processes your payments. The portal shows the same description when you hover over each setting.Manual capture enabled
Turn on Manual capture enabled if your Transbank commerce code uses deferred capture. Payrails then treats each WebPay Plus payment as authorized, and you capture it later with a capture request. With the setting off, Payrails treats each payment as captured straight away. Match the setting to your commerce code. The commerce code sets whether Transbank holds the funds or captures them.Enable the integration
In Payrails- Select Save account to save the configuration and enable the integration.
- The Enabled status confirms that the Transbank integration is active.
Next steps
- Run a test payment in test mode using a Transbank test card. Use a supported currency such as CLP.
- Verify that:
- The payment appears in your Transbank account.
- The payment status updates correctly in Payrails.
- Once verified in test mode, repeat the setup in live mode.