PayU integration
Copy the link to the article
Copied

Contents

  1. Overview and availability
  2. Configure the integration
  3. Add the PayU payment type
  4. Work with PayU in an order

Overview and availability

PayU is a service for managing online payments.

The PayU integration lets you create payment links from orders. When an invoice is paid, the payment status changes automatically in Simla. If necessary, you can also issue a refund from the order. The link can be sent by SMS, email, chat, or another messaging service.

The integration is available if at least one of the following countries is enabled: Argentina, Colombia, Mexico, Panama, Peru, or Brazil.

The currency configured in PayU must match the currency selected in Simla.

Configure the integration

Prerequisites and API key

To connect PayU, you need a created and verified PayU account. Complete the company, bank, and other required details. The account can be connected to Simla after the contract has been signed and the live account has been activated.

Before connecting PayU, open your Simla account, for example, https://yourstore.simla.com, and go to Settings → Integration → API access keys. Create an application programming interface (API) key, select the store, and enable the following methods:

Integration:

  • /api/integration-modules/{code}
  • /api/integration-modules/{code}/edit

Payments:

  • /api/payment/create-invoice
  • /api/payment/(updateInvoice|check)

API key permissions for integration modules and payments in Simla

Connect and configure a PayU account

In the Simla Marketplace, select PayU and click Connect. On the connection page, enter your Simla account URL, the API key created earlier, and the integration language.

PayU connection form with the Simla URL, API key, and language

After saving the connection details, open the Accounts section and enter the Name, Merchant ID, Account ID, API login, API Key, and language to add an account.

Form for adding a PayU account in the integration settings

Note

The Merchant ID, Account ID, API login, and API Key are available in PayU under Technical configuration → Payments.

Integration credentials in the PayU technical configuration

After entering the credentials, click Save. The updated page displays the connected account and store name.

The Test field is informational and is configured in PayU. It indicates whether the test or production account is being used. Below the connected accounts table, a link opens the payment method settings in Simla.

Connected PayU account and link to the payment type settings

Add the PayU payment type

After connecting PayU, go to Settings → Data books → Payment types and click Add to create a payment type.

Button for adding a payment type in the Simla data books

In the Integrate with field, select the PayU account connected earlier. This link cannot be changed after the payment type is saved. Create a separate payment type for each connected store.

Payment type associated with a PayU account

Configure invoice statuses

When a payment method is connected for the first time, configure the invoice status mapping. The same settings are applied by default to payment modules connected later, but they can be edited.

Click Configure in the Invoice statuses section to open the status mapping window.

Invoice status mapping between PayU and Simla

If the existing statuses do not match the company's process, select the status to map, click Add new payment status, enter a name, and confirm it. Statuses created from this window are also available in the Payment statuses section.

Creating a payment status from the invoice status mapping window

Work with PayU in an order

After the integration is configured, the PayU payment type is available in the Payments block of the order.

PayU payment in the Payments block of an order

Generate and send a payment link

After saving the order, you can generate a payment link. The following information and actions are then displayed:

  • Link to pay: can be copied and sent to the customer in a chat.
  • Send to email: sends the link to the email address specified in the order.
  • Sum: total amount to be paid.
  • Creation date: date when the link was generated.
  • Invoice status: updates automatically when the payment is completed.
  • Cancel: cancels the link.
  • Status: updates automatically according to the configured status mapping.
  • Paid date: date when the payment was completed.

PayU payment link generated in an order

Payment and refund

When the customer opens the link, PayU displays the payment page.

PayU page where the customer selects a payment method

After a successful payment, its status is updated in the order according to the configured mapping. The Sum and Paid date fields also show the updated data.

To issue a refund, click Make a refund in the order.

Make a refund button for a PayU payment in an order

After the refund is confirmed, the invoice status is updated automatically.

Thank you for your feedback.
Was this article helpful?
No
  • Рекомендации не помогли
  • Нет ответа на мой вопрос
  • Текст трудно понять
  • Не нравится описанный функционал
Yes
Previous article
Integration with PayPal
How to connect PayPal to Simla, configure payment types and statuses, generate payment links, and manage confirmations and refunds.
Next article
Mercado Pago integration
How to connect Mercado Pago to Simla, configure accounts, payment types and statuses, generate payment links, and issue refunds.