> For the complete documentation index, see [llms.txt](https://docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verifone.com/alternative-payment-modules-apm/commerce-sdk-and-apm-getting-started.md).

# Commerce SDK & APM Getting Started

Commerce Applications run on Verifone payment terminals. They extend the payment flow with custom screens, business logic, and integrations. Use them for loyalty, coupons, surveys, receipt content, and APMs.

{% columns %}
{% column %}

<h4 align="center"><strong>Please login or register to gain access to the detailed material on this page.</strong></h4>
{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a><a href="https://partner-registration.verifone.com/" class="button secondary">Register for an Account</a></p>
{% endcolumn %}
{% endcolumns %}

{% stepper %}
{% step %}

### Install the SDK

<table data-header-hidden><thead><tr><th width="390.33203125" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Download the Commerce Applications SDK plugin, install and configure it in your IDE.</td><td valign="top"></td></tr></tbody></table>

{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}
{% endstep %}

{% step %}

### Create your First Project

Open Android Studio and select **Start a new Verifone project**.

{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}
{% endstep %}

{% step %}

### Run your App in the Simulator

Create and run a simulator configuration for your app. Choose a trigger and a display resolution.

{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}
{% endstep %}

{% step %}

### Test on Hardware

Export a test package, then install it on a Developer Kit.

{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}
{% endstep %}

{% step %}

### Development Guides

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><p>Plan your test setup, then explore the core development guides.</p><p>Use the tools, development, and API docs to build further.</p></td><td valign="top"><img src="https://2610287307-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F11HigXrNYxDX41X2E4Fz%2Fuploads%2FR3qEeo2WJZxdCmQGc4a4%2FKnowledge-Base.png?alt=media&amp;token=83f13c06-a8a8-4dd7-b0a2-fcefc0443fe2" alt="" data-size="original"></td></tr></tbody></table>

{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}
{% endstep %}

{% step %}

### Need help?

Use the troubleshooting guide to fix common installation, simulator, and environment issues.

{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}
{% endstep %}
{% endstepper %}

### Advanced Payment Modules (APM)

Advanced Payment Methods use QR-based payment flows on supported Verifone terminals.

{% stepper %}
{% step %}

### Roll out APMs

<table data-header-hidden><thead><tr><th width="390.33203125" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><p>Review the APM model, onboard the merchant, and integrate the POS.</p><p><br><br></p></td><td valign="top"><img src="https://2610287307-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F11HigXrNYxDX41X2E4Fz%2Fuploads%2FKOKxidD3nn54tAMg1T3K%2Fapm.png?alt=media&amp;token=f9268d58-1aee-4fc5-8a58-82b5ede32787" alt="Verifone APM services overview" data-size="original"></td></tr></tbody></table>
{% endstep %}

{% step %}
{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}

### Run APM Transactions

<table data-header-hidden><thead><tr><th width="390.33203125" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top"><p>Test the sale flow, then confirm cancellation, refund, and settlement handling.</p><p><br></p></td><td valign="top"></td></tr></tbody></table>

{% columns %}
{% column %}

{% endcolumn %}

{% column %}

<p align="right"><a href="https://identity.verifone.com/am/XUI/?realm=/alpha&#x26;authIndexType=service&#x26;authIndexValue=DocsLoginV7&#x26;goto=https://docs.verifone.com/" class="button primary" data-icon="shield-keyhole">Login</a></p>
{% endcolumn %}
{% endcolumns %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.verifone.com/alternative-payment-modules-apm/commerce-sdk-and-apm-getting-started.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
