m1ke/nmi

An API implementation for the NMI (Network Merchants International) payment gateway

Maintainers

Details

github.com/M1ke/nmi

Source

Issues

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/m1ke/nmi

dev-master 2014-11-05 14:52 UTC

This package is auto-updated.

Last update: 2025-09-13 23:06:07 UTC


README

An implementation of the NMI (Network Merchants International) payment gateway

3-Step

Currently the only implementation. See example.php for information on how to use, essentially two main methods are exposed:

// creates an object, provide API key and optional redirect URL
$nmi=new Nmi3Step(NMI_KEY);

// returns a submission url as step 1, send a numeric amount to charge
$url=$nmi->get_url($amount);

// Sends the payment with a provided token. Returns a payment result or throws an exception
$payment=$nmi->submit_payment($_GET['token-id']);