Magento 2.4 Plugin Installation Guide
Install via composer - Step by Step Guide:
Step1:
Run the following command in magento root folder through Command Line:
composer require bsecure/universal-checkout
Note: This command might take some time, please be patient and wait for the process to complete.
Step2:
Now, run the following command in magento root folder through Command Line:
php bin/magento setup:upgrade
Note: This command might take some time, please be patient and wait for the process to complete.
Step3:
Now, Run the following command in magento root folder through Command Line:
php bin/magento setup:static-content:deploy -f
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
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.
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.
Step 8:
Now, Go back to Magento Admin Portal -> Stores -> Configuration -> bSecure -> Settings:
Input Client ID and Client Secret.
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:
Checkout Screen should look like this: