kurniajigunawan/faspay-omnipay

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Faspay Gateway for Omnipay payment

v1.0.2 2020-11-19 04:34 UTC

This package is auto-updated.

Last update: 2021-06-19 06:07:59 UTC


README

Unofficial package Faspay Business Payment Gateway

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+.

Installation

Install via Composer :

composer require kurniajigunawan/faspay-omnipay

Feature

On this package is full supported for debit transaction of Faspay Payment :

  • Faspay Channel
  • Faspay Purchase
  • Faspay Complete Purchase (Notification)
  • Faspay Cancel
  • Faspay Inquiry

We have a plan to support a credit card soon on next release.

Example Code

An example code for Faspay Channel :

$gateway = new DebitGateway();
$gateway->setMerchantId('YOUR_MERCHANT_ID');
$gateway->setMerchant('YOUR_MERCHANT');        
$gateway->setProductionMode(true);
$gateway->setPassword('YOUR_PASSWORD');
$gateway->setUserId('YOUR_USER_ID');

$channel = $gateway->channel();
$channel->setRequest('Daftar Payment Channel');
$channel->setSignature();
$channel->send();

For general usage instructions, please see the main Omnipay repository.

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.