Payment Add-On
Follow these below steps are installing Payment addon
App setup
These are the steps that need to be followed to do the front end store setup.
· Installing an extension
· Update the configuration
· Module Detail
· Run the Application
· Make the build
Step 1 : Installing an extension
These are the steps that need to be executed for installation of the extension.
Locate the Spurtcommerce addon package, typically named addons.zip.
Extract the zip file and copy the Payment folder into the addons folder in your project.
projectFolder->lib->module->add-ons
After this step, the structure should look like:
projectFolder->lib->module->add-ons->Payment
Once completed, proceed to update the configuration.
Step 2 : Update the configuration
After extracting the add on zip file for changing the configurations in addons.dart, you have to follow the steps below:
Go to
projectFolder->lib->module->add-ons->addonsshared.dart
Then inside addonsShared array paste the following content
After placing the above files it will look like this,
List addonsShared = [
{"SpurtPaymentMethod": SpurtPaymentMethod(), "data": ""}
];
Then give the following imports
Or
There will be a popup for quick fix
Step 3 : Module details
After executing the above mentioned steps, we have to place these below lines in the module folder to show the Payment to the user.
Payment
Once you finished updating the configuration then in the projectFolder->lib->module->Tab->My-cart->pages->checkout.dart
Use this line for view the Payment
After insert the line restart your application
Step 4 : Run the application
After integrating the Payments Module into Spurt Commerce, you can use the following commands to run the application in terminal.
Or
In Run menu select run without debugging
In case if throws any exception
Once you execute the above command you can view the installed module in Spurt Commerce, within the page in which you have integrated
Step 5 : Make the build
In order to build, you need to run the following commands. In order to check the application, run the following commands and build the application.
If you want to split the abi then
For bundle build