tje3d / payment
There is no license information available for the latest version (1.0) of this package.
Payment
1.0
2018-02-10 21:43 UTC
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3
This package is not auto-updated.
Last update: 2024-12-13 03:34:29 UTC
README
...
Example
try { $transId = Payment::nextpay()->order([ 'orderId' => '1', 'amount' => '1000', 'callBackUrl' => 'http://matmag.ir', ]); Payment::nextpay()->verify([ 'orderId' => '1', 'amount' => '1000', 'transId' => $transId, ]); echo 'Successful'; } catch (ConnectionFail $e) { echo $e->getMessage(); } catch (OrderException $e) { printf('Order Error, ID: %d - Message: %s', $e->getId(), $e->getMessage()); }