Skip to content

PSN driver for the Omnipay PHP payment processing library

License

Notifications You must be signed in to change notification settings

aravindpanicker/omnipay-psn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnipay: PSN

PSN driver for the Omnipay PHP payment processing library

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Dummy support for Omnipay.

Installation

Omnipay is installed via Composer. To install, simply require league/omnipay and apanicker/omnipay-psn with Composer:

composer require league/omnipay apanicker/omnipay-psn

Basic Usage

The following gateways are provided by this package:

  • PaymentServiceNetwork

In order to use this driver, you need to acquire the test accountId from PSN. You can set the testMode parameter to true if you want to run the driver in sandbox mode.

use Omnipay\Omnipay;

$gateway = Omnipay::create('PaymentServiceNetwork');

$gateway->initialize([
    'accountId' => 'RXXXXXX',
    'testMode' => false
]);

$formData = [
    'PayerName' => 'John Doe',
    'Address' => '2310  Elliot Avenue',
    'City' => 'Seattle',
    'State' => 'WA',
    'Zip' => '98115',
    'Email' => '[email protected]',
    'Payment_Amount' => '150.00',
    'Customer_Number' => 'C12112'
];

$response = $gateway->purchase($formData)->send();

if($response->isRedirect()) {
    $response->redirect();
}

For general usage instructions, please see the main Omnipay repository.

Support

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

About

PSN driver for the Omnipay PHP payment processing library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages