Some prerequisites…
I was looking for CC payment system and fairly in my country (Ukraine) it’s not easy to do because major players such as PayPal and BrainTree do not support Ukraine. I searched in Google for alternatives and found BlueSnap. After shirt communication in chat they confirmed that I can signup with them and they can accept CC payment for me. So far, I am happy with BlueSnap. They offer pretty good support, competetive comission fees and SaaS model which might be extremely useful for some business.
In this article I will explain how to integrate your Magento 2 with BlueSnap.
So the first thing that you should do is to confirm your business model with their sales (for example via live chat) and sign up with them. In my case, everything went smooth and after registration I got my account credentials in a couple of days after.
Now when you have Production account with them, you may want to register a SandBox account for testing purposes. Normally, that should be done separately as it was in my case.
Get ready?
Once account both accounts configured and you feel that you are ready for integration, comple the steps below:
Step 1: Configure your BlueSnap account settings:
Login to your Product or SandBox account. Go to API Setting and Whitelist server IP address.
Step 2: Download and Unzip BlueSnap Magento 2 Extension:
Extension could be found here: https://github.com/bluesnapper/Magento-2.1/blob/master/BlueSnap_Magento_Extension-v1.0.7.zip
Note: At the moment when you read this article, there might be newer version of extension available, please see updates here>
Step 3: Create folders and Upload extension to your Magento 2 directory on the server:
- The following folder structure should be created: /app/code/BlueSnap/Payment
- Upload the extension files and folder into the destination created
Step 4: Execute few installation commands from command line:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Note: all commands should be executed from the directory with Magento 2 installation and user should have enough permissions to execute the commands. For SSH connection you may consider program such as Putty.
Step 5: Login to your Magento 2 Admin Dashboard and finish configuration:
Go to: Stores > Configuration > Sales > Payment Methods. Uncollapse Tab “Other Payment Methods” find the new one selection “BlueSnap Credit/Debit Card Payments”.
The major settings that should be configured before payment could be activated are the following:
- Enable this Solution – Set “Yes” to enable BlueSnap payments.
- Title – Type short description for this payment option, for example: CC Payment
- Mode – Select whether you woul like to use SandBox or Production enviroment right away.
- Fill out API Username (Sandbox) and API Password (Sandbox) if you use SandBox enviroment or API Username (Production) and API Password (Production) if you want to use production enviroment.
Click “Save Config” button and go though checkout process to make sure that everything works as expected.
More details on all available settings of this extension could be found here: https://support.bluesnap.com/docs/magento-2
Congrats! You are Done!!