Wallogit.com
2017 © Pedro Peláez
Unicredit API (DEVELOPMENT), (*1)
Library to connect e-commerce to Unicredit ( Italy ) payment service., (*2)
Based on PHP libs of Unicredit, converted in PSR-4 format and wrapped in., (*3)
Use composer require "emanueledona/unicredit-api:dev-master" to install with composer the last version, (*4)
Import library with use emanueledona\unicreditApi\UnicreditApi; ., (*5)
Create object $unicredit = new UnicreditApi(); ., (*6)
$redirect = $unicredit->init($args);, (*7)
This function call the IgfsCgInit class, and perform the initialization of the authorization ( IgfsCgInit::execute() )., (*8)
The $args parameter is an array of elements :, (*9)
The function return a URL :, (*10)
errorURL whitin error informationThe paymentID is return by the function $unicredit->getPaymentID(), if there is not paymentID this function return NULL., (*11)
This value is important, this MUST BE stored in your system to ensure che payment verification and validation., (*12)
$response = $unicredit->verify('your_paymentID',$args);, (*13)
This function perform a validation of the payment whit the method IgfsCgVerify::execute()., (*14)
To check if a payment is correct you need the paymentID and some configuration parameters:, (*15)
The function return an array :, (*16)
in case of success :, (*17)
in case of errors :, (*18)