-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zoranbogoevski
committed
Nov 15, 2023
1 parent
b0fe9b0
commit d792b2e
Showing
6 changed files
with
109 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Halkbank Payment Gateway for Laravel | ||
|
||
Integrate Halkbank's online payment gateway seamlessly into your Laravel application with this dedicated package. Designed specifically for Macedonian businesses, this package provides an easy-to-use interface for integrating Halkbank payment services. | ||
|
||
## Prerequisites | ||
|
||
Before you begin, ensure you have the following: | ||
- PHP >= 7.4 | ||
|
||
## Installation | ||
|
||
Follow these steps to install the package: | ||
|
||
1. **Install via Composer** | ||
Run the following command to install the package: | ||
``` | ||
composer require kalimeromk/halkbank-payment | ||
``` | ||
|
||
|
||
|
||
## Publish Configurations and Views | ||
``` | ||
php artisan vendor:publish --provider="Kalimeromk\HalkbankPayment\HalkBankPaymentServiceProvider" | ||
``` | ||
## Configure the Package | ||
Edit the published config/payment.php with your Halkbank credentials and settings. | ||
Usage | ||
|
||
## Routes | ||
```Initiate Payment: /payment/{amount} | ||
Payment Success: /payment/success | ||
Payment Failure: /payment/fail | ||
Payment Form | ||
Access the payment form by navigating to /payment/{amount}. | ||
Handling Responses | ||
Success: PaymentController@paymentSuccess | ||
Failure: PaymentController@paymentFail | ||
``` | ||
## Customization | ||
|
||
Views: Customize the payment form in resources/views/vendor/payment. | ||
Controller: Extend PaymentController to modify or add new payment processing logic. | ||
Routes: Add new routes in your Laravel application as needed. | ||
Configuration: Update config/payment.php for any changes in payment parameters. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters