1. Go to this page and download the library: Download namshi/innovate library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Namshi\Innovate\Http\Response\Redirect;
$response = $client->performPayment($transaction, $card, $billing, $browser);
if ($response instanceof Redirect) {
// build a form
}
php
$configs = array(
'storeId' => 'xxxxx', // your store Id in Innovate
'merchantId' => 'xxxxx', // your merchant Id in Innovate
'authenticationKey' => 'xxxxxxxxxxx', // your authentication key
'searchKey' => 'xxxxxxxxxxx', // your search key
);
// Card info
$cardInfo = array(
'number' => '111111111111111',
'cvv' => 'XXX',
);
// The card which need redirection for 3d secured
$redirectUrlCardInfo = array(
'number' => '111111111111111',
'cvv' => 'XXX',
);
// your ip and should be in Innovate white list
$ip = 'xxx.xxx.xxx.xxx';