Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Payment | 613 | 2 | 10 days ago | 42 | November 13, 2021 | 7 | mit | PHP | ||
simple laravel payment package , supports multiple drivers | ||||||||||
Omnipay Alipay | 553 | 172 | 21 | 2 years ago | 64 | May 22, 2020 | 18 | mit | PHP | |
Alipay driver for the Omnipay PHP payment processing library | ||||||||||
Payment Gateway | 485 | 2 months ago | mit | CSS | ||||||
Bitcoin/Altcoins PHP Payment Class. It supports Bitcoin BitcoinCash DASH Dogecoin Litecoin Reddcoin Feathercoin Vertcoin Potcoin Speedcoin. Install GoUrl php script - bitcoin api payment gateway on your site! | ||||||||||
Gringotts | 442 | 3 | 1 | a month ago | 6 | October 17, 2018 | 37 | mit | Elixir | |
A complete payment library for Elixir and Phoenix Framework | ||||||||||
Paynode | 346 | 25 | 4 | 7 years ago | 7 | January 25, 2012 | 9 | JavaScript | ||
Mega library that includes various loadable modules for interacting with different payment gateways | ||||||||||
React Paystack | 323 | 16 | 7 | 3 months ago | 16 | August 06, 2022 | 20 | mit | TypeScript | |
ReactJS library for implementing paystack payment gateway | ||||||||||
Go Payment | 304 | a month ago | 14 | March 19, 2022 | 8 | mit | Go | |||
Payment Connector for Midtrans and Xendit. Sample site that is using this payment proxy is https://imrenagi.com/donate | ||||||||||
Bitcart | 301 | 5 days ago | 19 | mit | Python | |||||
https://bitcartcc.com | ||||||||||
Omnipay Wechatpay | 291 | 28 | 14 | 3 years ago | 35 | November 30, 2019 | 14 | mit | PHP | |
(微信支付)WeChatPay driver for the Omnipay PHP payment processing library | ||||||||||
Parbad | 284 | 17 | 3 months ago | 53 | February 03, 2022 | 9 | lgpl-3.0 | C# | ||
A free, open-source, integrated and extensible library which connects your web applications to online payment gateways. Gateways can be added or developed by you. |
eSewa driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements eSewa support for Omnipay.
Omnipay is installed via Composer. To install, simply require league/omnipay
and sudiptpa/omnipay-esewa
with Composer:
composer require league/omnipay sudiptpa/omnipay-esewa
use Omnipay\Omnipay;
use Exception;
$gateway = Omnipay::create('Esewa_Secure');
$gateway->setMerchantCode('epay_payment');
$gateway->setTestMode(true);
try {
$response = $gateway->purchase([
'amount' => 100,
'deliveryCharge' => 0,
'serviceCharge' => 0,
'taxAmount' => 0,
'totalAmount' => 100,
'productCode' => 'ABAC2098',
'returnUrl' => 'https://merchant.com/payment/1/complete',
'failedUrl' => 'https://merchant.com/payment/1/failed',
])->send();
if ($response->isRedirect()) {
$response->redirect();
}
} catch (Exception $e) {
return $e->getMessage();
}
After successful payment and redirect back to merchant site, you need to now verify the payment with another API request.
$gateway = Omnipay::create('Esewa_Secure');
$gateway->setMerchantCode('epay_payment');
$gateway->setTestMode(true);
$response = $gateway->verifyPayment([
'amount' => 100,
'referenceNumber' => 'GDFG89',
'productCode' => 'gadfg-gadf',
])->send();
if ($response->isSuccessful()) {
// Success
}
// Failed
Please follow the eSewa Online Payment Gateway Integration and follow step by step guidlines.
Please follow the Official Doc to understand about the parameters and their descriptions.
Contributions are welcome and will be fully credited.
Contributions can be made via a Pull Request on Github.
If you are having general issues with Omnipay Esewa, drop an email to [email protected] for quick support.
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
This package is open-sourced software licensed under the MIT license.