Preview changes locally to update your docs
order_id
as an argument, allowing you to handle and log information about failed transactions.fail_handle
, it receives the order_id
as an argument.order_id
as an argument.order_id
received when creating the order, success and failed callback functions, and an events callback for logging events.order_id
is mandatory, while the other parameters (success
, failed
, and events
) are optional.open()
method is called on the Paytring instance, which opens the Paytring Iframe for the user to complete the payment.response.order_id
with the actual order id obtained from your order creation process. The provided callbacks (fail_handle
, success_handle
, and event_happen
) allow you to customize how your application handles different aspects of the payment process.payment.success
), failed transactions (payment.failed
), and the user closing the iframe before completing the transaction (payment.close
).
Param | Datatype | Sample Value |
---|---|---|
order_id | string | 488659548274428965 |
receipt_id | string | TXN01071200893 |
hash | string | ceb38f5bfba8ba190754d6cadd7af58b845406010b01aa297e10b145ca45da8f9eb1632d814158d0e88c15cc78ccc8e0a8661ae93c8a7f2356432e2b25fada65 |