Integration with PayPal
Copy the link to the article
Copied

Contents

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

Overview and availability

PayPal is a service for managing online payments.

The PayPal integration lets you create a payment link. 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: Spain, Peru, the United States, Chile, the United Kingdom, Mexico, Bolivia, Japan, Germany, Colombia, Ecuador, Argentina, India, Brazil, Portugal, or China.

The PayPal currency must match the currency selected in Simla.

Configure the integration

Prerequisites and API methods

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

In the API key settings, select the store and enable the following application programming interface (API) methods:

Integration:

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

Payments:

  • /api/payment/(updateInvoice|check)

API key permissions for integration modules and payments in Simla

Connect a PayPal account

In the Simla Marketplace, select PayPal and click Connect. The connection page opens.

Open the Accounts section and enter the Client ID and Secret Key to add an account.

PayPal account connection form with Client ID and Secret Key fields

Note

To obtain the Client ID and Secret Key, sign in to PayPal and open My Apps & Credentials → Dashboard. Then click Create App.

Create App button in the PayPal developer dashboard

Enter the application name, select a Sandbox developer account, and click Create App.

Form for creating an application in the PayPal developer dashboard

Open the Live tab to view the production Client ID and Secret Key.

Sandbox and Live credentials with the PayPal Client ID and Secret Key

After entering the credentials in Simla, click Save. The settings page displays the connected account, store name, and Confirm manually option.

Manual confirmation and environment

The Confirm manually option lets you decide whether to accept or reject each payment from the order. This helps prevent accepting a payment that would then need to be refunded. The control appears below the payment link.

Note

If Confirm manually is disabled, all payments are accepted automatically. To cancel an accepted payment, you must issue a refund.

The Sandbox field is informational and is configured in PayPal. It indicates whether the connected account uses the test or production environment.

Below the connected accounts table, a link opens the payment type settings in Simla.

Add the PayPal payment type

For every store connected in PayPal, Simla automatically creates a payment type with default settings. If necessary, edit it under Settings → Data books → Payment types.

The invoice statuses also receive a default mapping that can be edited.

Configure invoice statuses

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

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

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 using the green checkmark icon.

Note

Statuses created from the mapping window are also available in the Payment statuses section.

Work with PayPal in an order

After the integration is configured, PayPal is available in the Payments block of the order.

PayPal payment in an order with the Generate link action

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.

Payment and refund

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

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 Obtain a refund in the order.

Obtain a refund button for a completed PayPal payment

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

PayPal payment with a successfully completed refund

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