How to install the Magento plugin?

How to install the Magento plugin?

image

Table of contents

💡If you are using Magento 2.2 or older, please download the plugin and guides from the following Link. For Magento 2.3 and above, follow the guide given below.

Install via composer

Step 1

Run the following command in magento root folder through Command Line:

composer require bsecure/universal-checkout

image

Note: This command might take some time, please be patient and wait for the process to complete.

Step 2

Now, run the following command in magento root folder through Command Line:

php bin/magento setup:upgrade

image

Note: This command might take some time, please be patient and wait for the process to complete.

Step 3

Now, Run the following command in magento root folder through Command Line:

php bin/magento setup:static-content:deploy -f

image

Note : Run compile if your store in Production mode:

php bin/magento setup:di:compile

Step 4

Now, go to Magento Admin panel -> Stores -> Configuration

image
image

Step 5

Clicking on configuration should take you to the configuration screen and you should see bSecure module available for setting.

Step 6

Now, click on “bSecure” Tab. You need to fill the following data:

  • bSecure Base URL : https://api.bsecure.pk/v1
  • bSecure Client ID : (See step 7 to get this value)
  • bSecure Client Secret : (See step 7 to get this value)

Step 7

In order to get bSecure Client ID and Client Secret, Go to the following link: https://builder.bsecure.pk/signin and login with your bSecure credentials and make store before you integrate.

Making store on bSecure now becomes easier for us. You just need to follow the following steps.

  1. Click on the Manage Stores from the main menu.
  1. You will be given a Default Store in the Manage Stores portal.
image
  1. You can also Add Store in the Manage Stores portal.
image
  1. Before editing the default store you need to have a look for your Integration API Key & Credentials from your bsecure account on https://builder.bsecure.pk/integration-live
image
  1. You will notice that your Live Integration API Key & Credentials are automatically generated on making a bSecure account. https://builder.bsecure.pk/integration-live
image
  1. You will now again come on the Manage Stores portal.
  2. Click on the Edit Store option or Add Store option, it's up to your choice.
image
  1. Some of the Key Credentials are auto-filled while you have to edit the Integration type as Magneto 2 and fill the remaining credentials according to your store.
image

After filling the Credentials Create Store and you will have an active Store ID for the Magneto store.

Step 8

Now, Go back to Magento Admin Portal -> Stores -> Configuration -> bSecure -> Settings:

Input Client ID and Client Secret.

image

Step 9

Click on the “Save Config” button on top of the Magento Configuration Screen.

Note: You might want to flush cache in order to get the impact of changes. Good Luck

Verification

To verify if everything went well, you should be able to see the bSecure button on the following screens:

Sign-In Screen should look like this:

image
image

Checkout Screen should look like this:

image
image
image
image