tje3d / payment
Payment
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tje3d/payment
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3
This package is not auto-updated.
Last update: 2025-10-03 07:22:42 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()); }