epmnzava / crdb-bank-mastercard-visa-laravel
Mastercard and Visa for CRDB
1.0.4
2024-06-19 11:11 UTC
Requires
- php: ^7.4|^8.0|^8.1|^8.2
- illuminate/support: ^6.0|^7.0|^8.0|^8.14|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
Installation
You can install the package via composer:
composer require epmnzava/crdb
Environment Variables
//.env CARD_PAYMENT_ACCESS_CODE="given access code by CRDB" CARD_PAYMENT_URL= https://migs-mtf.mastercard.com.au/vpcpay CARD_PAYMENT_SECURE_SECRET="Your given secure secret code" CARD_PAYMENT_MERCHANT_ID="your merchant ID name" CARD_PAYMENT_REDIRECT_URL="your redirect url"
Usage
<?php namespace App\Http\Controllers; use Epmnzava\Crdb\Crdb; class PaymentController extends Controller { public function payOnline(){ $crdb = new Crdb; $crdb->makepayment($card, $order_referenceId, $amount, $currency); #example.. $redirect = $crdb->makepayment("Visa", 4434345, "4000", "TZS"); $redirect = $crdb->makepayment("MasterCard", 4434345, "4000", "TZS"); return redirect($redirect); } }
Mastercard View
Visa View
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email epmnzava@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.