maioradv/payway

There is no license information available for the latest version (1.4) of this package.

BCC PayWay Payment Gateway interface

1.4 2020-07-16 08:58 UTC

This package is not auto-updated.

Last update: 2024-04-20 01:17:29 UTC


README

BCC sinergia Igfs payment gateway sdk for php 7.x

You can install the sdk via composer

composer require inalto/payway

Here a snippet on how to use it

require __DIR__.'/vendor/autoload.php';

use BCCPayWay\init\IgfsCgInit;

 $init = new IgfsCgInit();
 //$init->disableCheckSSLCert();
 $init->serverURL="https://paymentgateway.it/IGFS_CG_SERVICES/services";
 $init->timeout=30000;
 $init->tid="TID-CODE1234";
 $init->kSig="0000000000000000000000000000";
 $init->shopID="mytransactionid";
 $init->shopUserRef="customer-email";
 $init->trType="AUTH";
 $init->currencyCode="EUR";
 $init->amount=4400; //Amount without comma, 1,00EUR will be 100
 $init->langID="IT"; //Language iso code
 $init->notifyURL="https://myserver.it/my-thankyou-page.php";
 $init->errorURL="https://myserver.it/my-error-page.php";

 if(!$init->execute()){
                echo $init->rc;
 }else{
        print ("location: ".$init->redirectURL);
 }

Enjoy :)