New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adipasanta/authorizenet_fork

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adipasanta/authorizenet_fork

Authorize.net API wrapper, includes Laravel 5 support.

Source
Packagist
Version
v2.1
Version published
Total downloads
6
Maintainers
1
Created
Source

Authorize.net

Basic abstraction with Laravel integration for Authorize.net

Notice

Namespace of package has been updated from Pseudocody to Codylewis to reflect github name update, this is a one time change.

Installation

  • composer require pseudocody/authorizenet
  • For Laravel 5 support:
    • Add the service provider to config/app.php: Codylewis\AuthorizeNet\AuthorizeNetServiceProvider
    • Register the facade: 'AuthorizeNet' => Codylewis\AuthorizeNet\AuthorizeNetFacade::class,
    • Add .env value for AUTHORIZE_NET_LOGIN (Login ID) and AUTHORIZE_NET_TRANSACTION_KEY (Transaction Key)
    • Optionally create the config file: config/authorizenet.php

Usage

  • Within Laravel 5, instantiate using the API key in the constructor: $authorizeNet = new Codylewis\AuthorizeNet\AuthorizeNet($loginId, $transactionKey)
  • AuthorizeNet::authorizeCreditCard($order) attempts authorize cards with provided information, returns response
  • AuthorizeNet::capturePreviouslyAuthorizedCreditcard($transactionId, $amount) attempts to capture previously authorized credit card

Keywords

laravel

FAQs

Package last updated on 21 Nov 2017

Related posts