# PurchasePath

extends [Object](https://d.android.com/reference/java/lang/Object.html)

## Class Overview

Purchase Path response object that can be started to send the user to the partner application or embedded web view.

## Summary

| Nested Classes |
| --- |
| interface | [PurchasePath.Listener](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.Listener.html) |  |

| Fields |
| --- |
| protected<br> <br> final<br> AppAction | [appAction](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.html#appAction) |  |

| Public Methods |
| --- |
| Uri | [getAttributedUrl](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.html#getAttributedUrl())() |
| [String](https://d.android.com/reference/java/lang/String.html) | [getAttributionToken](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.html#getAttributionToken())() |
| void | [start](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.html#start(Context,%20com.usebutton.sdk.purchasepath.PurchasePath.Listener))(Context context, [PurchasePath.Listener](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.Listener.html) listener)<br> <br> <br>Starts the Purchase Path flow. |
| void | [start](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.html#start(Context))(Context context) |

## Fields

#### protected     final   AppAction    appAction

## Public Methods

#### public           Uri  getAttributedUrl()

#### public           [String](https://d.android.com/reference/java/lang/String.html)getAttributionToken()

#### public           void  start(Context context, [PurchasePath.Listener](https://building.usebutton.com/button-android/latest/reference/com/usebutton/sdk/purchasepath/PurchasePath.Listener.html) listener)

Starts the Purchase Path flow. User will be redirected to the Button embedded web view or the corresponding partner application.

##### Parameters

| context | the context used to start any new `Activity` in the checkout flow. |
| listener | the listener `PurchasePath.Listener` |

#### public           void  start(Context context)

##### See Also

- `start(Context, Listener)`
