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

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());
}