Download the PHP package granada-pride/paytabs without Composer
On this page you can find all versions of the php package granada-pride/paytabs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download granada-pride/paytabs
More information about granada-pride/paytabs
Files in granada-pride/paytabs
Package paytabs
Short Description This provide integration with the PayTabs payment gateway
License MIT
Informations about the package paytabs
[]()
PayTabs Payment Gateway Integration for Laravel
Table of Contents
- Description
- Installation
- Configuration
- Usage
- Creating a PayPage
- Querying Transactions
- Troubleshooting
- Testing
- Contribution
- License
Description
PayTabs Payment Gateway Integration with Laravel Framework
Installation
You can install the package via composer:
Note: This package is compatible with Laravel 9 and higher. Ensure your application meets this requirement before installing.
Configuration
After installation, publish the configuration file using the following command:
The configuration file paytabs.php will be added to your config directory. Here is a sample configuration:
Configuration Options
- profile_id: Your PayTabs profile ID, required for API requests.
- server_key: Your PayTabs server key, used for authentication.
- currency: The currency code in which payments will be processed (e.g., USD).
- region: The region for your PayTabs account (e.g., ARE, SAU).
Usage
Create PayPage
Here’s how to create a payment page using this package:
Query Transaction
You can also query a transaction using its reference:
Troubleshooting
Common Issues
- Invalid Credentials: Ensure that your profile_id and server_key in the configuration file are correct.
- Unsupported Region: Double-check that the region in your configuration file is valid and supported by PayTabs.
- Transaction Failure: Verify the transaction data (e.g., cart amount, customer details) to ensure it meets PayTabs' requirements.
If you encounter other issues, refer to the PayTabs API Documentation for more details.
Testing
Soon...
Contribution
Contributions are welcome! If you’d like to contribute to this package, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Write your code and ensure it is well-documented.
- Submit a pull request with a clear description of your changes.
License
This package is open-sourced software licensed under the MIT license.