2017 © Pedro Peláez
 

library bluesnap-php

A PHP Library for the Bluesnap api

image

ventepos/bluesnap-php

A PHP Library for the Bluesnap api

  • Thursday, December 14, 2017
  • by pmccarren
  • Repository
  • 0 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 14 Versions
  • 83 % Grown

The README.md

Bluesnap PHP Library

This (unofficial) library standardizes and simplifies working with the bluesnap api., (*1)

All the standard api documentation is applicable to this library., (*2)

View the bluesnap documentation here: https://developers.bluesnap.com/v8976-JSON/docs, (*3)

This library currently supports:, (*4)

  • CardTransactions
  • VaultedShoppers
  • Vendors
  • Subscriptions
  • Plans (Subscriptions)
  • Refunds
  • Reports

Installation

Install this package with composer, (*5)

composer require tdanielcox/bluesnap-php

Usage

Initialize the library in your class constructor, (*6)

public function __construct()
{
    $environment = 'sandbox'; // or 'production'
    \tdanielcox\Bluesnap\Bluesnap::init($environment, 'YOUR_API_KEY', 'YOUR_API_PASSWORD');
}

Create a New Transaction, (*7)

public function createTransaction()
{
    $response = \tdanielcox\Bluesnap\CardTransaction::create([
        'creditCard' => [
            'cardNumber' => '4263982640269299',
            'expirationMonth' => '02',
            'expirationYear' => '2018',
            'securityCode' => '837'
        ],
        'amount' => 10.00,
        'currency' => 'USD',
        'recurringTransaction' => 'ECOMMERCE',
        'cardTransactionType' => 'AUTH_CAPTURE',
    ]);

    if ($response->failed())
    {
        $error = $response->data;

        // handle error
    }

    $transaction = $response->data;

    return $transaction;
}

See examples for further details on using the library

License

This package is licensed under the MIT License, (*8)

The Versions

14/12 2017

dev-master

9999999-dev https://github.com/ventepos/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

by Patrick McCarren

laravel bluesnap

14/12 2017

v0.3.2

0.3.2.0 https://github.com/ventepos/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

by Patrick McCarren

laravel bluesnap

12/12 2017

v0.3.1

0.3.1.0 https://github.com/ventepos/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

by Patrick McCarren

laravel bluesnap

12/12 2017

v0.3.0

0.3.0.0 https://github.com/ventepos/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

by Patrick McCarren

12/12 2017

dev-namespace

dev-namespace https://github.com/ventepos/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

by Patrick McCarren

05/07 2017

v0.2.2

0.2.2.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

05/07 2017

v0.2.1

0.2.1.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

03/07 2017

v0.2

0.2.0.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

03/07 2017

v0.1.05

0.1.05.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

03/07 2017

v0.1.04

0.1.04.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

03/07 2017

v0.1.03

0.1.03.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

21/06 2017

v0.1.02

0.1.02.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

21/06 2017

v0.1.01

0.1.01.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires

 

21/06 2017

v0.1.0

0.1.0.0 https://github.com/tdanielcox/bluesnap-php

A PHP Library for the Bluesnap api

  Sources   Download

MIT

The Requires