Pay3 React Native SDK

Event Listeners

3min

Introduction

After completing transactions in Pay3 SDK UI, the Pay3 SDK publishes events to App.

pay3-sdk-transaction-status

This event is fired by Pay3 SDK on completion of checkout transaction triggered by checkout webview pay3.geCheckoutWebView()

Payload

  1. data (Type Object): Following keys are present in this object
    1. status (Type string): The status can have values SUCCESS or ERROR.
    2. message (Type string): User-friendly message returned after completion of the transaction.
    3. orderId (Type string): Pay3 Order ID.
    4. requestId (Type string): Unique id passed by App.
  2. error (Type Object, Optional): Following keys will be present if there is an error. Please refer to SDK Errors for reference.
    1. code (Type number): Error code.
    2. message (Type string): Error message.
index.js


Sample Event

JS