> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating transactions

With the SDK ready, it's time to create a transaction.

## Open the payment sheet

To open the payment sheet call the `.launch()` method on the SDK.

```java theme={"system"}
gr4vySDK.launch(
    context = this,
    token = "[TOKEN]",
    amount = 1299,
    currency = "AUD",
    country = "AU"
)
```

<Warning>
  Replace the `[TOKEN]` with the JWT created in step 2. Additional
  [options](/guides/payments/android/options) can be provided when launching the SDK.
</Warning>

## Handle SDK events

The `Gr4vyResultHandler` requires you to handle the events emitted by the SDKs as follows.

```java theme={"system"}
override fun onGr4vyResult(result: Gr4vyResult) {
  when(result) {
    is Gr4vyResult.GeneralError -> startActivity(Intent(this, FailureActivity::class.java))
    is Gr4vyResult.TransactionCreated -> startActivity(Intent(this, SuccessActivity::class.java))
    is Gr4vyResult.TransactionFailed -> startActivity(Intent(this, FailureActivity::class.java))
  }
}
```

<Info>
  Learn more about the events triggered by the Android SDK in the [events](/guides/payments/android/events) guide.
</Info>
