Setting options
$response
=
$gateway
->
purchase
([
'amount'
=>
'10.00'
,
'currency'
=>
'USD'
,
'card'
=>
[
...
],
'description'
=>
'Event tickets'
,
'transactionId'
=>
$order
->
id
,
'clientIp'
=>
$_SERVER
[
'REMOTE_ADDR'
],
'returnUrl'
=>
‘https://.../complete-payment/'
,
'cancelUrl'
=>
‘https://.../failed-payment/'
])
->
send
();
Options are passed into most
Omnipay action methods as an
associative array.