eventix / omnipay-first-atlantic-commerce
First Atlantic Commerce V3 driver for the Omnipay PHP payment processing library
Installs: 12 343
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- ext-json: *
- ext-simplexml: *
- ext-soap: *
- league/iso3166: ~1.0.1
- omnipay/common: ~3
This package is auto-updated.
Last update: 2024-12-05 20:34:25 UTC
README
#omnipay-first-atlantic-commerce V3 Only used in combination with hostedPaymentSolution
$gateway = Omnipay::create('FAC'); $gateway->setMerchantId('xxxxx'); $gateway->setMerchantPassword('xxxxx'); $gateway->setAquirerId('xxxx'); $gateway->setTestMode(true); $orderId = '5d096925-9795-47d0-aade-9d8ed584eb9f'; if(isset($_GET['ID'])){ $options = array( 'orderNumber' => $orderId, ); $response = $gateway->fetchTransaction($options)->send(); $error = $response->getMessage(); $isPaid = $response->isPaid(); } $options = array( 'orderNumber' => $orderId, 'amount' => '10.00', 'currency' => 'USD', 'returnUrl' => 'http://someurl.com/', 'pageSet' => 'PageSet', 'pageName' => 'PageName', 'transactionCode' => '213' ); $response = $gateway->purchase($options)->send(); $singeUseToken = $transactionId = $response->getTransactionReference(); header('Location: '. $response->getRedirectUrl()); exit;