chenwenzi / cn-pay
A CN Payment By PHP
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chenwenzi/cn-pay
Requires
- php: ^7.2 || ^8.0
- guzzlehttp/guzzle: ^7.0
README
Installation
Install via Composer
composer require chenwenzi/cn-pay
Getting started
<php? require_once('vendor/autoload.php');
This library need your payment secret
$pay = new PaymentService( [], //$payConfig [], //$payParams ); ## Version Guidance |Version | PHP Version | |--------|------------------| |^1.0 | >= 7.2 | ## Available API * send * notify
pay.
$pay->send(); // return result
notify.
$pay->notify(); // return result