tje3d/payment

There is no license information available for the latest version (1.0) of this package.

Payment

Maintainers

Details

github.com/tje3d/Payment

Source

Issues

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/tje3d/payment

1.0 2018-02-10 21:43 UTC

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