Initialize the SDK
To initialize the SDK, call the.showPaymentSheet() method on the SDK to open the payment sheet
to prompt the buyer to pay.
Replace the
[GR4VY_ID] with your instance identifier and [TOKEN] with the JWT created in step 2.
Additional options can be provided when launching the SDK.The instance ID is the unique identifier for the deployment of the system and is included in every API call.
Together with the environment (sandbox or production) it is used to connect to the right APIs, as well as dashboard.
Handle events
Once launched, the SDK sends events when a transaction was created and for some failures. To handle these events, add a new event listener to the SDK.Learn more about the events triggered by the React Native SDK in the events guide.