Download the PHP package granada-pride/clickpaysa without Composer
On this page you can find all versions of the php package granada-pride/clickpaysa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download granada-pride/clickpaysa
More information about granada-pride/clickpaysa
Files in granada-pride/clickpaysa
Package clickpaysa
Short Description Clickpaysa Payment Gateway Integration with Laravel Framework
License MIT
Informations about the package clickpaysa
[]()
Clickpaysa Payment Gateway Integration for Laravel
Table of Contents
- Description
- Installation
- Configuration
- Usage
- Creating a PayPage
- Querying Transactions
- Capturing a Payment
- Refunding a Payment
- Voiding a Payment
- Troubleshooting
- Testing
- Contribution
- License
Description
The laravel-clickpaysa
package provides an easy way to integrate the Clickpaysa payment gateway into your Laravel
applications. This package adheres to SOLID principles and uses modern PHP practices, ensuring your code is
maintainable, testable, and scalable.
Installation
You can install the package via composer:
Configuration
After installation, publish the configuration file using the following command:
This will create a config/clickpay.php
file. Here is an example of what the configuration file might look like:
Environment Variables
Make sure to set the required environment variables in your .env
file:
Usage
Creating a PayPage
Here's how to create a payment page using this package:
Querying Transactions
You can also query a transaction using its reference:
Capturing a Payment
The capturePayment
method allows you to capture a previously authorized transaction. This is typically used when a
payment is authorized at the time of order placement, but you only want to capture the funds when the goods are shipped.
Example:
Refunding a Payment
The refundPayment
method is used to refund a previously completed transaction. This can be useful when a customer
requests a refund for their order.
Example:
Voiding a Payment
The voidPayment
method allows you to void a previously authorized or captured transaction. This is typically used when
an order is canceled before it is fulfilled.
Example:
Troubleshooting
Common Issues
- Invalid Credentials: Ensure that your
profile_id
andserver_key
in the configuration file are correct. - Unsupported Region: Double-check that the
base_url
in your configuration file is valid and supported by Clickpay. - Transaction Failure: Verify the transaction data (e.g., cart amount, customer details) to ensure it meets Clickpay's requirements.
If you encounter other issues, refer to the Clickpay 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-source software licensed under the MIT License. Please see the License
File for more information.