# Frans Gift Card overview

Frans Gift Card features:

1/ Setup

Enable module Frans:GiftCard.  
Go to Config -&gt; Sales -&gt; Square Gift Cards to configure environment and token

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/wAkimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/wAkimage.png)

  
Go to Admin -&gt; Sales -&gt; Square Gift Cards

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/image.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/image.png)

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/hzFimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/hzFimage.png)

  
1/ Order placement:  
\- Applying or removing a gift card immediately recalculates and persists the quote total instead of waiting for the  
item update button  
\- Stripe charges only the remaining amount after the gift card deduction  
\- Gift card is redeemed through Square when the order is placed, and the balance is deducted correctly.

\- Some frequent Square Gift card error messages:  
\+ an invalid card number  
\+ inactive card  
\+ empty balance  
\+ $0 order  
\+ different currency  
\+ Square unreachable

2/ Refund:  
\- If an order with a gift card receives a credit memo, the refunded gift card amount is added back to the Square gift card.

**How to create a test gift card in sandbox:**

\- There's no button for this in the sandbox dashboard, so we use the API Explorer: https://developer.squareup.com/explorer/square

1/ Part A - Create the card

1\. Log in to developer.squareup.com and open this link:  
 https://developer.squareup.com/explorer/square/gift-cards-api/create-gift-card

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/WjFimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/WjFimage.png)

2\. Click "Select" in the token box -&gt; pick "Sandbox" -&gt; click "Default Test Account".

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/NC8image.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/NC8image.png)

3\. Fill the form:  
\- idempotency\_key: click "Generate"  
\- gift\_card: click "+ Add" and set type = DIGITAL  
\- location\_id: (please generate a location ID for your square business and paste it here), for example: LZNB28AZNN5ZB

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/q0timage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/q0timage.png)

4\. Click "Run request" (top right).

5\. In the Response box, copy 2 values:  
\- "id" (starts with gftc:) -&gt; needed for Part B  
\- "gan" (the card number) -&gt; this is what you type in Magento

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/fcwimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/fcwimage.png)

The card is created, but it is still PENDING with $0. Do Part B to put money on it.

2/ Part B - Put money on the card

1\. At the top, change the first dropdown to "Gift Card Activities" and the second one to "Create gift card activity".

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/IZcimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/IZcimage.png)

2\. Select the same token again (Sandbox -&gt; Default Test Account).

3\. Fill the form:  
\- idempotency\_key: click "Generate"  
\- gift\_card\_activity -&gt; type: ACTIVATE  
\- location\_id: LZNB28AZNN5ZB  
\- gift\_card\_id: the gftc:... id from Part A  
\- activate\_activity\_details -&gt; amount\_money: amount 5000 (5000 cent = $50). Make sure to choose **currency**: USD   
\- activate\_activity\_details -&gt; buyer\_payment\_instrument\_ids: test-payment

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/kUXimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/kUXimage.png)

**How to use a gift card:**

\- During admin checkout; admin can type a gift card number (16-digit alphanumeric such as 7783329946460061) , and click the apply ( → ) button

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/Sokimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/Sokimage.png)

\* The card needs to be ACTIVE and have some balance left.  
\* Gift cards with Pending, Deactivated, or No Balance status will not work, even if the card number is correct.

  
\- After gift card is applied; amount is knocked off in the Total section:

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/4zyimage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/4zyimage.png)

After order is placed, Gift card amount is deducted, please go to Admin → Sales → Square Gift Cards to check new balance:

[![image.png](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/scaled-1680-/3mximage.png)](https://frdocs.socalappsolutions.com/uploads/images/gallery/2026-10/3mximage.png)