2017 © Pedro Peláez
 

library payment-gateway-bundle

This includes a single implementation for a connection to Authorize.NET AIM Service

image

ajbdev/payment-gateway-bundle

This includes a single implementation for a connection to Authorize.NET AIM Service

  • Wednesday, October 24, 2012
  • by ajbdev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Payment Gateway Bundle

This includes a single implementation for a connection to Authorize.NET AIM Service, (*1)

Authorize.net

Sign up for a test account to get your test API Login ID and Transaction Key, (*2)

config.yml

payment_gateway.authorizenet:
    apiLoginId: xxxxxxxx
    transactionKey: xxxxxxxx
    postUrl: https://test.authorize.net/gateway/transact.dll

Instantiate

$gateway = $this->container->get('payment_gateway.authorizenet.config');

Set Requirements

$gateway->setAddress($address);
$gateway->setAmount($amount);
$gateway->setPaymentMethod($creditCard);
$gateway->setOrder($order);

Authorize or Capture

$gateway->authorize();

or

$gateway->capture();

Error Checking

if ($gateway->hasErrors())
{
throw new \Exception($gateway->getErrorMessage());
}

Get Response Data

$response = $gateway->getResponse();
$transactionId = $response->getTransactionId();
$code = $response->getResponseCodeText();
$type = $response->getTransactionType());

The Versions

24/10 2012

dev-master

9999999-dev

This includes a single implementation for a connection to Authorize.NET AIM Service

  Sources   Download

The Requires

  • php >=5.3.0

 

payment gateway authorize.net ecommerce