m1ke / nmi
NMI (Network Merchants International) 支付网关的API实现
dev-master
2014-11-05 14:52 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-09-13 20:55:50 UTC
README
是NMI (Network Merchants International) 支付网关的实现
三步
目前唯一的实现。请参阅 example.php
获取使用信息,主要暴露了两种方法
// 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']);