- About the Project
- Changelog
- Development
- Versioning
- Deployment
- Internationalization
- Documentation
- Other useful links
GoPay payment gateway integration with the OpenCart eCommerce platform.
- OpenCart and GoPay gateway integration.
- Update GoPay extension to support latest OpenCart from v4.0.2.0 to v4.0.2.3
Running project on local machine for development and testing purposes.
- Download and rename the extension:
- Visit the GitHub repository of the GoPay extension.
- Download the latest version of the extension to your device.
- Extract the source file and rename it to
opencart_gopay.ocmod
.
- Plugin Compression:
- Create an archive of the extension using compression.
- Archive the entire folder as a .zip file.
- The whole installation file is named as
opencart_gopay.ocmod.zip
.
- Uploading the extension to OpenCart:
- Log in to the OpenCart administrative interface.
- Navigate to Extensions -> Installer.
- Upload the compressed extension (.zip file) to the system.
- Extension Installation:
- After successful upload, go to Extensions -> Payments -> Payment Method.
- The extension type has been configured as Payments, and locate GoPay within the list.
- Click the Install button next to the GoPay extension.
- Activating the extension:
- After installation, go to Extensions -> Payments.
- Activate the GoPay extension by clicking the Edit button next to it and selecting Enabled.
- Configuring the extension:
- Navigate to Extensions -> Payments.
- Click Edit next to the GoPay extension.
- Fill in the required information such as GoID, ClientID, Secret, etc.
- Save the changes.
- Summary:
- Verify that the GoPay extension is now active and correctly configured.
- Test the payment functionality and ensure that all details were entered correctly.
For local project execution, first install OpenCart, then upload and configure the plugin by following the steps below:
- Install the plugin through the OpenCart extension installer screen directly.
- On extensions filter by payments and install OpenCart GoPay gateway.
- Configure the plugin by providing goid, client id and secret to load the other options (follow these steps to activate the payment gateway and get goid, client id and secret).
- Finally, choose the options you want to be available in the payment gateway (payment methods and banks must be enabled in your GoPay account).
admin
controller
language
model
view
catalog
controller
language
model
view
system
config
library
vendor
readme.md
install.json
composer.json
-
Perform test transactions: Execute a variety of test transactions using different scenarios. Access the URL provided for all product requirements. Verify that the plugin accurately handles each scenario and delivers the correct behavior to the end-user.
-
Debug log: Use monitoring tools within the OpenCart environment. Access the Error Log in the right panel under System > Maintenance > Error Logs. Alternatively, you can find it at
/system/storage/logs/error.log
. This tool is valuable for debugging and logging purposes. -
Check order processing: After completing test transactions, verify that orders are processed correctly within OpenCart. Ensure that order details, payment statuses, and transaction logs are accurately recorded and reflected in the OpenCart admin panel.
-
Inspect and review the log: Inspect the log file which often contains valuable information regarding errors, warnings, and other debug messages generated during the testing process. Pay close attention to any entries related to the functionality being tested.
-
Review transaction logs: In the OpenCart admin panel, navigate to the payment gateway's log section for comprehensive transaction insights. This dedicated log section provides detailed records of all transactions processed through the payment gateway, offering valuable insights into payment statuses, transaction IDs, timestamps, and any potential errors encountered during the payment process.
-
Test compatibility: Ensuring compatibility with OpenCart is our primary objective during the development and testing phases of the plugin. However, due to the diverse ecosystem of OpenCart extensions and the unique configurations that users may employ, we cannot guarantee seamless compatibility with every extension or user setting.
-
Review error handling: Test the plugin's error handling capabilities by deliberately triggering errors, such as invalid payment credentials or network timeouts. Verify that error messages are clear, expected, and guide users toward resolution steps.
-
Note test results: Record your test findings, noting any issues like unexpected behaviors, warnings, errors, deprecated functions, and identified bugs along with their solutions. Keep detailed test notes for future reference and troubleshooting.
This plugin uses SemVer for versioning scheme.
master
- contains production code. You must not make changes directly to the master!staging
- contains staging code. Pre-production environment for testing.development
- contains development code.
- Use the development branch for the implementation.
- Update corresponding readmes after the completion of the development.
- Create a pull request and properly revise all your changes before merging.
- Push into the development branch.
- Upload to staging for testing.
- When the feature is tested and approved on staging, pull you changes to master.
This plugin uses Git Updater to manage updates.
Before deploy change Version in the install.json
, then commit & push. Staging site uses staging branch.
Create inside the language folder a new locale folder and a file with the same path and name where the text is located. Open the new file on any text editor and add the new translation.
The translation file can be opened on any text editor and change to the new translated phrase.