Closed leroy0211 closed 5 years ago
Will add this feature tomorrow.
<?php
use Omnipay\Omnipay;
$gateway = Omnipay::create('IngenicoePayments');
$gateway->setMode('test');
$gateway->setPSPID('PSID');
$gateway->setLanguage('nl_NL');
$gateway->setShaIn('SHAIN');
$gateway->setShaOut('SHAOUT');
$request = $gateway->purchase([
'amount' => 9999,
'currency' => 'EUR',
'returnUrl' => 'https://example.com/tmp/done',
'cancelUrl' => 'https://example.com/tmp/cancel',
'transactionId' => '1111111',
'description' => 'DESCRIPTION',
'paymentMethod' => 'PAYMENTMETHOD',
'card' => [
'firstName' => 'firstName',
'lastName' => 'lastName',
'billingAddress1' => 'billingAddress1',
'postcode' => 'postcode',
'city' => 'city',
'phone' => 'phone',
'email' => 'email'
],
'customfields' => [
'ISSUERID' => 'AAAAA',
]
]);
$response = $request->send();
$response->redirect();
I am missing an option to add custom form attributes like
ISSUERID
, which is for example only available when using iDEAL.