> 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/psdk-latest/psdk-user-guide-and-training/psdk-user-guide/payment_functions/semi-integrated-payments/using-gift-cards.md).

# Using Gift Cards

Gift card operations are performed when the customer wants to use a gift card or when it is the required method of payment.

### Identifying a gift card payment <a href="#identifying-a-gift-card-payment" id="identifying-a-gift-card-payment"></a>

Upon receipt of the payment completed event, to identify a gift card payment, we need to check Payment.getPaymentType() == Payment.PaymentType.STORED\_VALUE and Payment.getStoredValueCardInformation().getCardType() == CardType.GIFT\_CARD.

### Performing other gift card actions <a href="#performing-other-gift-card-actions" id="performing-other-gift-card-actions"></a>

To perform gift card specific operations, use [TransactionManager.activateStoredValueCard(payment)](https://docs.verifone.com/psdk-api-latest/android-java/index/transactionmanager#activatestoredvaluecard-payment) [TransactionManager.loadStoredValueCard(payment)](https://docs.verifone.com/psdk-api-latest/android-java/index/transactionmanager#loadstoredvaluecard-payment), [TransactionManager.unloadStoredValueCard(payment) ](https://docs.verifone.com/psdk-api-latest/android-java/index/transactionmanager#unloadstoredvaluecard-payment)and [TransactionManager.getStoredValueCardBalance(cardinformation)](https://docs.verifone.com/psdk-api-latest/android-java/index/transactionmanager#getstoredvaluecardbalance-storedvaluecardinformation)

### Starting a gift card only payment <a href="#starting-a-gift-card-only-payment" id="starting-a-gift-card-only-payment"></a>

To require a gift card to be used, use [Payment.setRequestedPaymentType](https://docs.verifone.com/psdk-api-latest/android-java/index/payment#setrequestedpaymenttype-paymenttype)([PaymentType.STORED\_VALUE](https://docs.verifone.com/psdk-api-latest/android-java/index/paymenttype)), then set a [StoredValueCardInformation](https://docs.verifone.com/psdk-api-latest/android-java/index/storedvaluecardinformation) with [CardType](https://docs.verifone.com/psdk-api-latest/android-java/index/cardtype) as [CardType.GIFT\_CARD ](https://docs.verifone.com/psdk-api-latest/android-java/index/cardtype)on the payment object, before sending it for start payment.

{% hint style="info" %}
**See also**

* [StoredValueCardInformation](https://docs.verifone.com/psdk-api-latest/android-java/index/storedvaluecardinformation)
* [CardType](https://docs.verifone.com/psdk-api-latest/android-java/index/cardtype)
* [PaymentType](https://docs.verifone.com/psdk-api-latest/android-java/index/paymenttype)
  {% endhint %}

***

{% columns %}
{% column width="25%" %}

<figure><img src="/files/9ezXRridnCaI1awLr3X9" alt="" width="150"><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="25%" %}

{% endcolumn %}

{% column width="16.66666666666666%" %}
**Version:**\
**Date:**
{% endcolumn %}

{% column width="33.333333333333336%" %} <code class="expression">space.vars.psdk\_version</code>\ <code class="expression">space.vars.psdk\_date</code>
{% endcolumn %}
{% endcolumns %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verifone.com/psdk-latest/psdk-user-guide-and-training/psdk-user-guide/payment_functions/semi-integrated-payments/using-gift-cards.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
