How to install the Magento plugin?

💡

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

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(a)

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.

Now, Click on Integration -> Live Tab.

image

Step 7(b)

You should see a form like this. Fill the following data as per instructions given:

  • Environment Name : Your Website Name
  • Environment Type : Choose “Magento” from the drop down.
  • Store URL : Your Website URL
  • User Name : Your Magento admin credentials
  • Password : Your Magento admin password
  • Client ID : Copy and save it. Will be required in the next step.
  • Client Secret : Copy and save it. Will be required in the next step.
image

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

Checkout Screen should look like this:

image
image