Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

nocksapp/checkout-omnipay

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnipay: Nocks

Nocks driver for the Omnipay PHP payment processing library

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Nocks support for Omnipay 3.

Installation

The Nocks Omnipay driver is installed via Composer. To install, require it:

composer require nocksapp/omnipay-nocks

Basic Usage

<?php

use Omnipay\Omnipay;

$accessToken = '';
$merchant = '';

$gateway = Omnipay::create('Nocks');
$gateway->setAccessToken($accessToken);
$gateway->setTestMode(true); // Use Nocks testmode/sandbox for testing

$response = $gateway->purchase([
	'merchant' => $merchant,
	'amount' => 10.00,
	'currency' => 'NLG',
	'sourceCurrency' => 'EUR',
	'returnUrl' => 'http://example.com/return',
	'callbackUrl' => 'http://example.com/callback',
	'paymentMethod' => 'ideal',
	'issuer' => 'ABNANL2A',
])->send();

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

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

About

Nocks driver for the Omnipay PHP payment processing library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.