# Gift Card Partial Authorization not working with Mobile Payments SDK

**URL:** <https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156>\
**Category:** Questions\
**Tags:** mobile-payments-sdk\
**Created:** [October 5, 2025, 5:13am UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156 "2025-10-05T05:13:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![WilliamC](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@WilliamC](https://developer.squareup.com/forums/u/WilliamC)\
**Post date:** [October 5, 2025, 5:13am UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/1 "2025-10-05T05:13:49Z")

</div>

Hello Square Support Team,

I’m currently using the **Square Mobile Payments SDK v2.3.0** to process payments on iOS .

My goal is to **accept partial authorization for Square Gift Cards** , so that if a customer’s gift card balance is less than the total amount, the payment can still capture the available balance (e.g., $5 out of $10 requested), and then allow the user to continue paying the remaining amount with another method.

However, in my tests:

- I have set acceptPartialAuthorization = true and autocomplete = false (as required by the documentation).

- The merchant account is **enabled for Gift Cards** and is in **production mode**.

- The payment attempt is made with a real Square Gift Card that has insufficient funds.

- My code is :  
let paymentParams = PaymentParameters(

- The request correctly includes these parameters in the API payload:

- paymentParams.acceptPartialAuthorization = true is missing in the payload

Return  
date: Sun, 05 Oct 2025 05:03:52 GMT  
content-length: 1855  
square-version: 2022-12-14  
x-frame-options: DENY  
connection: keep-alive  
content-type: application/json  
strict-transport-security: max-age=31536000

```auto
{

```

“errors”: [  
{  
“code”: “INSUFFICIENT\_FUNDS”,  
“detail”: “Authorization error: ‘INSUFFICIENT\_FUNDS’”,  
“category”: “PAYMENT\_METHOD\_ERROR”  
},  
{  
“code”: “GIFT\_CARD\_AVAILABLE\_AMOUNT”,  
“detail”: “246”,  
“category”: “PAYMENT\_METHOD\_ERROR”  
}  
],  
“payment”: {  
“id”: “nbg2OfQtQLAuBTaoOH9tUwycYt9YY”,  
“created\_at”: “2025-10-05T05:03:51.898Z”,  
“updated\_at”: “2025-10-05T05:03:51.960Z”,  
“amount\_money”: {  
“amount”: 4315,  
“currency”: “USD”  
},  
“status”: “FAILED”,  
“delay\_duration”: “PT0H1M”,  
“source\_type”: “CARD”,  
“card\_details”: {  
“status”: “FAILED”,  
“card”: {  
“card\_brand”: “SQUARE\_GIFT\_CARD”,  
“last\_4”: “8304”,  
“exp\_month”: 12,  
“exp\_year”: 2099,  
“cardholder\_name”: “SQUARE GIFT CARD”,  
“fingerprint”: “sq-1-NCGw32sN9FWsPTcgoL3Xhs\_vsK9eWEHx71ACV\_IKVRf7-ocHhm-”,  
“card\_type”: “DEBIT”,  
“prepaid\_type”: “PREPAID”,  
“bin”: “778273”  
},  
“entry\_method”: “SWIPED”,  
“auth\_result\_code”: “5”,  
“errors”: [  
{  
“code”: “INSUFFICIENT\_FUNDS”,  
“detail”: “Authorization error: ‘INSUFFICIENT\_FUNDS’”,  
“category”: “PAYMENT\_METHOD\_ERROR”  
}  
],  
“device\_details”: {  
“device\_id”: “DEVICE\_VENDOR\_ID:–4E4C-A273-F8EDC83E132C”,  
“device\_name”: “iPhone”,  
“device\_installation\_id”: “DEVICE\_VENDOR\_ID:-9338-4E4C-A273-F8EDC83E132C”  
},  
“card\_payment\_timeline”: {  
“authorized\_at”: “2025-10-05T05:03:51.960Z”  
}  
},  
“location\_id”: “”,  
“order\_id”: “”,  
“total\_money”: {  
“amount”: 4315,  
“currency”: “USD”  
},  
“approved\_money”: {  
“amount”: 0,  
“currency”: “USD”  
},  
“delay\_action”: “COMPLETE”,  
“delayed\_until”: “2025-10-05T05:04:51.898Z”,  
“device\_details”: {  
“device\_id”: “DEVICE\_VENDOR\_ID:91319BD7-9338–A273-”,  
“device\_name”: “iPhone”,  
“device\_installation\_id”: “DEVICE\_VENDOR\_ID:-9338-4E4C-A273-F8EDC83E132C”  
},  
“application\_details”: {  
“square\_product”: “SQUARE\_POS”,  
“application\_id”: “-”  
},  
“version\_token”: “”  
}  
}

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 5, 2025, 5:14am UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/2 "2025-10-05T05:14:08Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Take a Payment](https://developer.squareup.com/docs/mobile-payments-sdk/ios/take-payments)**
>
> Learn how to use the Mobile Payments SDK for iOS to take a payment with a Square Reader or Square Stand.

> **[Partial Payment Authorizations](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/partial-payments-with-gift-cards)**
>
> Learn how partial payments work when a gift card is a payment source in a CreatePayment request.

> **Additional Documentation**
>
> [Build on iOS](https://developer.squareup.com/docs/mobile-payments-sdk/ios)  
> [Gift Card Payments](https://developer.squareup.com/docs/in-app-payments-sdk/cookbook/giftcards)  
> [Tap to Pay on iPhone](https://developer.squareup.com/docs/mobile-payments-sdk/ios/tap-to-pay)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 6, 2025, 4:57pm UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/3 "2025-10-06T16:57:58Z")

</div>

If you remove `delayAction` does it work correctly? 🙂

---

<div class="post-metadata">

**Author:** ![WilliamC](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@WilliamC](https://developer.squareup.com/forums/u/WilliamC)\
**Post date:** [October 6, 2025, 9:37pm UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/4 "2025-10-06T21:37:13Z")

</div>

HI Bryan ,

i have just tried that , if i remove delayAction, and the result is still the same , INSUFFICIENT\_FUNDS notice is showing .

{  
“card\_present\_options”: “[redacted]”,  
“device\_details”: “[redacted]”,  
“revenue\_association\_tags”: “[redacted]”,  
“source\_id”: “[redacted]”,  
“peripheral\_metadata”: “[redacted]”,  
“autocomplete”: false,  
“amount\_money”: {  
“currency”: “USD”,  
“amount”: 246  
},  
“geo\_location”: “[redacted]”,  
“idempotency\_key”: “63B783E5-B357-4EB2-9B0C-6F0BD9698105”,  
“delay\_action”: “CANCEL”,  
“location\_id”: “LM4PJ9VA1W6TF”,  
“delay\_duration”: “PT0H1M”  
}

date: Mon, 06 Oct 2025 21:35:13 GMT  
content-length: 1749  
square-version: 2022-12-14  
x-frame-options: DENY  
connection: keep-alive  
content-type: application/json  
strict-transport-security: max-age=31536000

```
{

```

“errors”: [  
{  
“code”: “INVALID\_ACCOUNT”,  
“detail”: “Authorization error: ‘INVALID\_ACCOUNT’”,  
“category”: “PAYMENT\_METHOD\_ERROR”  
}  
],  
“payment”: {  
“id”: “Ln3XuGrlmcgmXhlTrKmhwEKapR9YY”,  
“created\_at”: “2025-10-06T21:35:13.469Z”,  
“updated\_at”: “2025-10-06T21:35:13.524Z”,  
“amount\_money”: {  
“amount”: 246,  
“currency”: “USD”  
},  
“status”: “FAILED”,  
“delay\_duration”: “PT0H1M”,  
“source\_type”: “CARD”,  
“card\_details”: {  
“status”: “FAILED”,  
“card”: {  
“card\_brand”: “SQUARE\_GIFT\_CARD”,  
“last\_4”: “5662”,  
“exp\_month”: 12,  
“exp\_year”: 2099,  
“cardholder\_name”: “SQUARE GIFT CARD”,  
“fingerprint”: “sq-1-Q\_NYfZqZY2OMzw\_9bjdPmVBlpJOHJ28JW22JPj2U8unxvW6GfmW5UOn7g0OYGkjIMg”,  
“card\_type”: “DEBIT”,  
“prepaid\_type”: “PREPAID”,  
“bin”: “778273”  
},  
“entry\_method”: “SWIPED”,  
“auth\_result\_code”: “2”,  
“errors”: [  
{  
“code”: “INVALID\_ACCOUNT”,  
“detail”: “Authorization error: ‘INVALID\_ACCOUNT’”,  
“category”: “PAYMENT\_METHOD\_ERROR”  
}  
],  
“device\_details”: {  
“device\_id”: “DEVICE\_VENDOR\_ID:91319BD7-9338-4E4C-A273-F8EDC83E132C”,  
“device\_name”: “iPhone”,  
“device\_installation\_id”: “DEVICE\_VENDOR\_ID:91319BD7-9338-4E4C-A273-F8EDC83E132C”  
},  
“card\_payment\_timeline”: {  
“authorized\_at”: “2025-10-06T21:35:13.524Z”  
}  
},  
“location\_id”: “”,  
“order\_id”: “YvvPJoTYRw2b3KdAsqpGkWw4CBJZY”,  
“total\_money”: {  
“amount”: 246,  
“currency”: “USD”  
},  
“approved\_money”: {  
“amount”: 0,  
“currency”: “USD”  
},  
“delay\_action”: “CANCEL”,  
“delayed\_until”: “2025-10-06T21:36:13.469Z”,  
“device\_details”: {  
“device\_id”: “DEVICE\_VENDOR\_ID:-9338-4E4C-A273-F8EDC83E132C”,  
“device\_name”: “iPhone”,  
“device\_installation\_id”: “DEVICE\_VENDOR\_ID:-9338-4E4C-A273-F8EDC83E132C”  
},  
“application\_details”: {  
“square\_product”: “SQUARE\_POS”,  
“application\_id”: “sq0idp–EKbDQ”  
},  
“version\_token”: “du5il7XdHDEDdEWvPsla6N4ckR7NNpeyYLQCjgjSrlV6o”  
}  
}

---

<div class="post-metadata">

**Author:** ![WilliamC](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@WilliamC](https://developer.squareup.com/forums/u/WilliamC)\
**Post date:** [October 7, 2025, 10:52pm UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/5 "2025-10-07T22:52:26Z")

</div>

Hi Bryan,

have you got any idea that cause this issue? any solution for it ? Thanks 😬

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 8, 2025, 12:41am UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/6 "2025-10-08T00:41:22Z")

</div>

The team is looking into this. 🙂

---

<div class="post-metadata">

**Author:** ![WilliamC](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@WilliamC](https://developer.squareup.com/forums/u/WilliamC)\
**Post date:** [October 13, 2025, 10:43pm UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/8 "2025-10-13T22:43:49Z")

</div>

HI BRYAN ,  
i want to reach out to see if there is any update from your team , THANKS

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 14, 2025, 4:26pm UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/9 "2025-10-14T16:26:32Z")

</div>

According to the team the issue has to do with the tip. It’s only possible to add a tip to a gift card payment if the gift card balance is sufficient to pay the order amount and tip amount combined. Otherwise, Square returns an INSUFFICIENT\_FUNDS error. 🙂

---

<div class="post-metadata">

**Author:** ![WilliamC](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@WilliamC](https://developer.squareup.com/forums/u/WilliamC)\
**Post date:** [October 16, 2025, 8:22pm UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/10 "2025-10-16T20:22:23Z")

</div>

```auto
Hi Bryan, i did try with no-tip call, but it turn out the same errors response.

{
  "autocomplete": false,
  "delay_duration": "PT0H1M",
  "card_present_options": "[redacted]",
  "source_id": "[redacted]",
  "idempotency_key": "F72E8576-F0F0-4F11-8115-D88C0FE9BF23",
  "revenue_association_tags": "[redacted]",
  "location_id": " *******",
  "amount_money": {
    "amount": 4425,
    "currency": "USD"
  },
  "delay_action": "CANCEL",
  "device_details": "[redacted]",
  "peripheral_metadata": "[redacted]",
  "geo_location": "[redacted]"
}

RESPONSE : 
{
  "errors": [
    {
      "code": "INSUFFICIENT_FUNDS",
      "detail": "Authorization error: 'INSUFFICIENT_FUNDS'",
      "category": "PAYMENT_METHOD_ERROR"
    },
    {
      "code": "GIFT_CARD_AVAILABLE_AMOUNT",
      "detail": "427",
      "category": "PAYMENT_METHOD_ERROR"
    }
  ],
  "payment": {
    "id": "JCPgiNdpMWQ4JEb6cywAz19CGpLZY",
    "created_at": "2025-10-16T20:13:56.938Z",
    "updated_at": "2025-10-16T20:13:57.006Z",
    "amount_money": {
      "amount": 4425,
      "currency": "USD"
    },
    "status": "FAILED",
    "delay_duration": "PT0H1M",
    "source_type": "CARD",
    "card_details": {
      "status": "FAILED",
      "card": {
        "card_brand": "SQUARE_GIFT_CARD",
        "last_4": "6357",
        "exp_month": 12,
        "exp_year": 2099,
        "cardholder_name": "SQUARE GIFT CARD",
        "fingerprint": "sq-1-5PuEkW0dD1aPK42Vz2HOm763X2MB9HhHP_IoLjkbRuF-IrZNL9kymdT8UADI4xljOw",
        "card_type": "DEBIT",
        "prepaid_type": "PREPAID",
        "bin": "778273"
      },
      "entry_method": "SWIPED",
      "auth_result_code": "5",
      "errors": [
        {
          "code": "INSUFFICIENT_FUNDS",
          "detail": "Authorization error: 'INSUFFICIENT_FUNDS'",
          "category": "PAYMENT_METHOD_ERROR"
        }
      ],
      "device_details": {
        "device_id": "DEVICE_VENDOR_ID: ***** -9338-4E4C-A273-F8EDC83E132C",
        "device_name": "iPhone",
        "device_installation_id": "DEVICE_VENDOR_ID: ***** -9338-4E4C-A273-F8EDC83E132C"
      },
      "card_payment_timeline": {
        "authorized_at": "2025-10-16T20:13:57.006Z"
      }
    },
    "location_id": " *******",
    "order_id": "hOfl1Txu0tHQM5HaWyg5CR06PBSZY",
    "total_money": {
      "amount": 4425,
      "currency": "USD"
    },
    "approved_money": {
      "amount": 0,
      "currency": "USD"
    },
    "delay_action": "COMPLETE",
    "delayed_until": "2025-10-16T20:14:56.938Z",
    "device_details": {
      "device_id": "DEVICE_VENDOR_ID: ***** -9338-4E4C-A273-F8EDC83E132C",
      "device_name": "iPhone",
      "device_installation_id": "DEVICE_VENDOR_ID: **** -9338-4E4C-A273-F8EDC83E132C"
    },
    "application_details": {
      "square_product": "SQUARE_POS",
      "application_id": "sq0idp-***-EKbDQ"
    },
    "version_token": "mKrnGUFcBASGAGMUVT4JhXmR69ND19z2JYoEcGOzGRr6o"
  }
}

```

---

<div class="post-metadata">

**Author:** ![WilliamC](https://avatars.discourse-cdn.com/v4/letter/w/ce7236/32.png) [@WilliamC](https://developer.squareup.com/forums/u/WilliamC)\
**Post date:** [October 30, 2025, 12:29am UTC](https://developer.squareup.com/forums/t/gift-card-partial-authorization-not-working-with-mobile-payments-sdk/24156/11 "2025-10-30T00:29:31Z")

</div>

Hi Bryan , i still looking a solutions of the Gift Card Payment issue , please advise, thx much
