Skip to main content
PayPal

Enabling and setting up the PayPal payment system

Updated over a week ago

To enable PayPal on your website, you need to have a registered business account at paypal.com and a bank account.

It is also necessary to obtain the PayPal unique identifiers — Client ID and Secret.

Please note: to use PayPal, the USD or EUR currency must be enabled on the website. You can set it up in Products Currency rates.

Setting up PayPal and getting unique identifiers

Go to the page Dashboard → My Apps & Credentials and in the REST API apps section click on the Create App button.

PayPal dashboard — Cartum

Specify the App Name — you can use any name here. Select an account for test orders (Sandbox developer account).

Please note: if the sandbox developer account field is empty, you need to add the Sandbox accounts according to the instructions on the PayPal website.

Creating PayPal app — Cartum

Save the Client ID and Secret values from the Sandbox tab.

Client ID and Secret in the PayPal Sandbox — Cartum

For the main account save the Client ID and Secret values from the Live tab.

Client ID and Secret in the PayPal — Cartum

Below settings should be the same for both modes (Sandbox and Live).

In the LIVE WEBHOOKS section, you need to create a hook to which PayPal will send data on the payment status. Click the Add Webhook button.

PayPal webhooks — Cartum

On the page that opens you must specify Webhook URL — the link where PayPal will send the data. For example, https://some_domain.com/payment/payPalREST/.

Please note that the https protocol is mandatory and instead of some_domain.com, you must specify the domain of the site to which PayPal connects.

The following boxes must be checked in the Event Types block:

  • Payment sale completed

  • Payment sale denied

  • Payment sale pending

Click on Save to submit the hook settings.

Webhook settings — Cartum

Connecting PayPal to your website

You can enter the Sandbox account details in your website settings to test the operation of online payments. Then you need to replace them with the Client ID and Secret from the main (Live) account.

To connect PayPal to your website:

  1. In the site admin panel, go to Settings → Payment providers.

  2. Enter the Client ID and Secret in the corresponding fields of the PayPal block.

  3. Click Save.

Admin panes settings for PayPal — Cartum

Enabling payment via PayPal for customers

  1. Go to the Settings → Payment methods section in the admin panel and click the PayPal option.

  2. Make sure that PayPal Native is selected in the Type field.

  3. If necessary, set a custom Title for the payment method and edit the settings.

  4. Activate the payment option by checking the Active checkbox.

  5. Click Save.

Enabling payment via PayPal for customers — Cartum

Enabling PayPal option for the checkout

After connecting and setting up, you need to select which delivery options this payment method will be available for:

  1. Go to the Settings → Shipping methods and carriers section and click on the desired method to edit the settings.

  2. In the Payment section, check the PayPal checkbox.

  3. Click Save.

Enabling PayPal option for the checkout — Cartum
Did this answer your question?