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

# submit

When the submit method is called, the SDK will attempt to create a payment based on the raw data set in the [setRawData](/sdk/android/v2.x.x/primer-headless-checkout/raw-data-manager/setRawData) method.
If no data is set, SDK will call the [onFailed](/sdk/android/v2.x.x/primer-headless-checkout/listeners/PrimerHeadlessUniversalCheckoutListener#onfailed) method.

```kotlin KOTLIN theme={"dark"}
fun submit()
```
