PrestaShop 1.7 Setup

Learn how to connect your PrestaShop 1.7 store to BlueSnap for global payment processing.

PrestaShop provides an open source, e-commerce software that enables merchants to create and manage their online store. By connecting your store to BlueSnap, you’ll be able to securely accept card payments. And since the payment form is embedded in your checkout form, shoppers will enjoy a frictionless checkout experience. You’ll also have access to BlueSnap’s reporting, allowing you to dig into your e-commerce data.

Requirements

The BlueSnap module is supported for PrestaShop version 1.7.

BlueSnap and PrestaShop accounts

You must have accounts at both PrestaShop and BlueSnap to proceed.

If you need a PrestaShop account, go to the PrestaShop site to sign up.
If you need a BlueSnap account, go to the BlueSnap site to get started.

PrestaShop software

This guide assumes that you already have the PrestaShop software installed and uploaded to your server. For instructions, see PrestaShop's documentation.

HTTPS configuration

BlueSnap requires a secure connection to process payments. You'll need to ensure that your domain is SSL certified and SSL is enabled for Prestashop. For more information, check out PrestaShop's documentation.

Supported currencies

BlueSnap supports the currencies listed here. If a shopper chooses a currency not shown on this list, BlueSnap will not be available.

PCI compliance

A PCI compliance of SAQ-A is required.

Enabling 3D Secure

BlueSnap's Payment API supports 3D Secure, a tool that provides an additional layer of security for online card transactions. A lookup performed during checkout determines if the issuer requires shopper identity verification. If you flag shopper authentication as a requirement, your shoppers will be challenged for this info (in the form of a popup), which typically prompts them to enter their credentials (e.g. a password).

Configuring 3D Secure for online transactions

To set 3D Secure for your shopper’s online card transactions, click Yes in the Enable 3D-SECURE field, which displays in the BLUESNAP GENERAL SETTINGS pane (accessed via Modules > bluesnap > Configure); for example:

Step 1: Configure your BlueSnap account settings

To configure your BlueSnap account settings, complete these steps in your BlueSnap Production and/or Sandbox accounts.

  1. Set up your BlueSnap API Credentials and define the IP address for your server. Make note of your API username and password - you'll need them in Step 3.

  2. Configure your payout settings.

Step 2: Install and upload the BlueSnap module

The BlueSnap module is available to download for free on Prestashop.

  1. Download the BlueSnap module from Prestashop.

  2. Log in to PrestaShop as an admin.

  3. Go to Modules > Modules & Services and click Upload a module.

When the module has finished installing, you'll see the following message.

Step 3: Configure the BlueSnap module

Follow these steps in your PrestaShop admin account to configure the BlueSnap module.

  1. If you're not there already, go to Modules > Modules & Services and click Installed modules.

  2. Locate the BlueSnap module and click Configure.

  3. In the BlueSnap configuration screen, locate your IPN (Webhook) URL. You'll add this URL to your BlueSnap account in Step 5 when you set up IPNs.

  1. Configure the following settings:
Setting
Description

Sandbox mode

  • Select Yes to test in your BlueSnap Sandbox account. If yes, enter your Sandbox username and Sandbox password.

  • Select No to work with your BlueSnap Production account.

Note: Set this to No when you're ready to start accepting live transactions.

Sandbox username

  • Enter your BlueSnap Sandbox API username.

Sandbox password

  • Enter a value if you want to change your Sandbox API password. Otherwise, leave blank.

Username

  • Enter your BlueSnap Production API username.
    Note: Be sure to enter your Production API username to go live.

Password

  • Enter a value if you want to change your Production API password. Otherwise, leave blank.

Statement Soft Descriptor

  • Enter the description that will appear on the shopper's billing statement to help them identify the purchase.

Is Debug Mode Enabled

  • Select Yes to have communications between PrestaShop and BlueSnap recorded in the log file, which is located in modules/bluesnap. We recommend using this option during the development of your site or if you're experiencing any problems.

  • Select No to opt out of logging communications between PrestaShop and BlueSnap.

Enable Vaulted Shoppers

  • Select Yes to allow logged-in shoppers the option to store their card details for future purchases.

  • Select No to disable this option.

Use BlueSnap Exchange Rate Converter

  • Select Yes to use BlueSnap's currency exchange rates for sales.

Note: We highly recommend using BlueSnap's exchange rates to ensure there are no discrepancies between the rates used to display prices during checkout and the rates used for payout.

  1. Click Save.

Step 4: Set up automatic exchange rates updates

To configure your application to automatically get updated exchange rates from BlueSnap, follow the steps in this section. This will ensure currency conversions are done with the most updated rates from BlueSnap.

Note: The Cron tasks manager module needs to be installed before proceeding. This module assists with scheduling time-based actions, such as updating exchange rates.

  1. Go to International > Localization > Currencies and make sure Live Exchange Rates is enabled.

  2. To configure your Cron tasks manager settings, go to Modules > Modules & Services > Installed modules.

  3. Locate the Cron tasks manager module and click Configure.

  4. Select one of the following modes:

    • Basic - Update exchange rates when a shopper visits your store, using PrestaShop's cron tasks webservice.
    • Advanced - Update exchange rates when a shopper visits your store, using your own cron tasks manager. This mode requires you to add a line to your crontab file, which is explained in further detail in the configuration screen.
  5. Click Save.

Locating your crontab file

The crontab is an application that runs on the server operating PrestaShop and is in charge of time-based actions. The crontab file is available to you in most UNIX/Linux based machines, and often can be found in /var/spool/cron. If you are not sure where your crontab file is, please reach out to your IT team or hosting provider for more details.

Updating currency rates after re-enabling the BlueSnap module

If you need to re-enable the BlueSnap module for any reason, we recommend that you complete the following steps after you've re-enabled the module. These steps ensure that the currency rates will be updated with BlueSnap's rates.

  1. In your PrestaShop admin account, go to Modules > Modules & Services > Installed modules, and click Configure next to the BlueSnap module.
  2. On the configuration page, click Save.

Step 5: Set up IPNs

Instant Payment Notifications (IPNs), also known as webhooks, are HTTP POST messages that are sent to your PrestaShop account when an important event occurs. Follow the steps below to set up IPNs.

  1. Log in to your BlueSnap account and go to Settings > General Settings.

  2. In the Notifications section, select Receive Instant Payment Notifications.

  3. Update the IPN URL(s) field with the URL you obtained in Step 3.

  1. Click Submit.