gentor/fibank

Fibank Ecomm Service for Laravel

dev-master 2023-11-03 14:04 UTC

This package is auto-updated.

Last update: 2024-04-03 15:09:12 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'),
];

Documentation

Fibank