Package Data | |
---|---|
Maintainer Username: | gentor |
Maintainer Contact: | evgeni.nurkov@gmail.com (Evgeni Nurkov) |
Package Create Date: | 2017-04-13 |
Package Last Update: | 2023-11-03 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:16:20 |
Package Statistics | |
---|---|
Total Downloads: | 6,088 |
Monthly Downloads: | 56 |
Daily Downloads: | 0 |
Total Stars: | 3 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
Fibank Ecomm Service for Laravel
Installation using composer:
composer require gentor/fibank
Add the service provider in config/app.php
:
Gentor\Fibank\ServiceProvider::class,
Add the facade alias in config/app.php
:
Gentor\Fibank\Facade\Fibank::class,
Convert .jks certificate to .pem:
$cmd = "keytool -importkeystore -srckeystore " . escapeshellarg($file_path) . " -destkeystore " . escapeshellarg($p12file) . " -srcstoretype JKS -deststoretype PKCS12 -srcstorepass {$password} -deststorepass {$password} -noprompt";
$cmd = "openssl pkcs12 -in " . escapeshellarg($p12file) . " -out " . escapeshellarg($pemfile) . " -passin pass:{$password} -passout pass:{$password}";
Change your default settings in app/config/fibank.php
:
<?php
return [
'certificate' => env('FIBANK_CERTIFICATE_PEM'),
'password' => env('FIBANK_CERTIFICATE_PASSWORD'),
'live_mode' => env('FIBANK_LIVE_MODE'),
];