Download the PHP package darkghosthunter/transbanker without Composer
On this page you can find all versions of the php package darkghosthunter/transbanker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package transbanker
Use Larabanker
This package has been deprecated for a new version, which uses a REST and HTTP Client.
Laravel Transbanker
Transbank API connector for Laravel
This package connects the Transbank API package, which allows you to use Transbank payment gateway, to your Laravel Application.
Requirements
- PHP >= 7.3
- Laravel 6.x, 7.x or 8.x
Check older releases for older Laravel versions.
Installation
Call composer and require it into your application.
Configuration
Environment
By default, the package uses integration
unless you explicitly set production
, which will make all transactions real.
Credentials
The integration
environment sets testing credentials automatically, so you don't need to set them unless you want to overwrite one of them.
Otherwise, in production
environment, you will need to add your Transbank credentials for your services.
For Webpay, these must be located under storage/transbank/webpay
as files. You can overload the default webpay.cert
that comes with this package with your own.
For Onepay, you can use the API key and Secret directly.
If your secret has
#
characters, you may want to enclose it using double quotes"
.
That is the basic configuration. If you need to fine tune this package, refer to the Advanced section.
Redirection
This package registers the transbank::webpay-redirect
for instant redirection to Webpay. When creating a Webpay Plus or Webpay Oneclick transaction, you can redirect the user instantly to the payment gateway inside your controllers:
Usage
For usage, check the TransbankApi (Spanish, English by Google Translate).
Advanced
To fine tune Transbanker, just publish the config file:
This will publish the transbank.php
file in the config
directory.
Routes
This package with some default routes for your application (as configured inside config/transbank.php
):
Service | URL | Value |
---|---|---|
Webpay Plus | Return URL | http://yourappurl.com/webpay/result |
Webpay Plus | Final URL | http://yourappurl.com/webpay/receipt |
Webpay Plus | Mall Return URL | http://yourappurl.com/webpay/mall/result |
Webpay Plus | Mall Final URL | http://yourappurl.com/webpay/mall/receipt |
Webpay Oneclick | Response URL | http://yourappurl.com/webpay/registration |
Onepay | Callback URL | http://yourappurl.com/onepay/result |
You're free to change these URLs.
In any case, be sure to add your logic in these routes to receive Transbank http POST Requests, and remove the csrf
middleware since Webpay will need to hit these routes so the payment can be processed.
License
This package is open-sourced software licensed under the MIT license.
Redcompra
, Webpay
, Onepay
, Patpass
and tbk
are trademarks of Transbank S.A.
This package is not developed, approved, supported nor endorsed by Transbank S.A., nor by a natural person or company linked directly or indirectly by Transbank S.A.
All versions of transbanker with dependencies
illuminate/http Version ^6.0||^7.0||^8.0
illuminate/events Version ^6.0||^7.0||^8.0
illuminate/config Version ^6.0||^7.0||^8.0
illuminate/support Version ^6.0||^7.0||^8.0
illuminate/view Version ^6.0||^7.0||^8.0
darkghosthunter/transbank-api Version ^2.0