gentor / fibank
Fibank Ecomm Service for Laravel
Installs: 6 094
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >= 5.6
- ext-curl: *
This package is auto-updated.
Last update: 2024-12-03 16:42:47 UTC
README
Fibank Ecomm Service for Laravel
Installation
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,
Configuration
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'), ];