# Apple Pay not appearing for Payment Link created via API

**URL:** <https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768>\
**Category:** Questions\
**Tags:** checkout-api\
**Created:** [April 3, 2025, 5:24pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768 "2025-04-03T17:24:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![clubsandwich-dev](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@clubsandwich-dev](https://developer.squareup.com/forums/u/clubsandwich-dev)\
**Post date:** [April 3, 2025, 5:24pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/1 "2025-04-03T17:24:13Z")

</div>

I’ve created a Payment Link via the Create Payment Link API with `applePay` and `googlePay` set to true in `acceptedPaymentMethods`, but only Google Pay shows in checkout.

Here’s how I’m using the API using the Node.js SDK:

```auto
const { paymentLink } = await client.checkout.paymentLinks.create({
    order: {
      lineItems: cartItems.map((item) => ({
        catalogObjectId: item.variationId,
        quantity: '1',
        modifiers: item.modifierIds.map((id) => ({ catalogObjectId: id })),
      })),
      locationId: locations.locations[0].id,
    },
    checkoutOptions: {
      redirectUrl,
      acceptedPaymentMethods: {
        applePay: true,
        googlePay: true,
      },
    },
  })

```

I am testing on a Safari browser. If I create a Payment Link through the Square Dashboard, Apple Pay _does_ appear as an option.

Here’s a Payment Link created through the API:

> **[Companion](https://checkout.square.site/merchant/MLNHBENQ6CGZE/order/uw6nhidPWl1nI26FwjmfGsiCASCZY)**

Here’s a payment link for the same merchant created through the UI:

> **[Ham Mayo Tomato Lettuce (HTML) Sandwich - Companion](https://checkout.square.site/merchant/MLNHBENQ6CGZE/checkout/VDO5AQYB5KBRPNAF5CO2GMVY)**
>
> description

---

<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:** [April 3, 2025, 5:24pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/2 "2025-04-03T17:24:28Z")

</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:

> **[Quick Pay Checkout](https://developer.squareup.com/docs/checkout-api/quick-pay-checkout)**
>
> Learn how to create a Square-hosted quick pay checkout page by only specifying the name and price (without having to specify the Order object).

> **[Build a Payment Integration and Take Payments Online](https://developer.squareup.com/docs/online-payment-options)**
>
> Learn about Square online payment solutions, identify APIs and SDKs that best suit your development goals, and build a payment integration.

> **Additional Documentation**
>
> [Checkout API](https://developer.squareup.com/docs/checkout-api)  
> [Checkout API](https://developer.squareup.com/docs/checkout-api-overview)  
> [Guidelines and Limitations](https://developer.squareup.com/docs/checkout-api/guidelines-and-limitations)

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:** ![clubsandwich-dev](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@clubsandwich-dev](https://developer.squareup.com/forums/u/clubsandwich-dev)\
**Post date:** [April 3, 2025, 6:46pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/3 "2025-04-03T18:46:04Z")

</div>

Yep, I followed the Checkout API instructions. Would appreciate a reply from a real person 🙂

---

<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:** [April 3, 2025, 8:29pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/4 "2025-04-03T20:29:00Z")

</div>

Are you in a Safari browser? Apple Pay only works in Safari on a device that supports paying with Apple Pay. 🙂

---

<div class="post-metadata">

**Author:** ![clubsandwich-dev](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@clubsandwich-dev](https://developer.squareup.com/forums/u/clubsandwich-dev)\
**Post date:** [April 3, 2025, 9:18pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/5 "2025-04-03T21:18:34Z")

</div>

Yes, I am using Safari. I’m confused because I can see Apple Pay in the payment link created through the Dashboard, but I cannot see Apple Pay in the link created thru the API with `applePay` enabled in `acceptedPaymentMethods`.

---

<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:** [April 4, 2025, 2:04am UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/6 "2025-04-04T02:04:33Z")

</div>

What’s your application\_id? 🙂

---

<div class="post-metadata">

**Author:** ![clubsandwich-dev](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@clubsandwich-dev](https://developer.squareup.com/forums/u/clubsandwich-dev)\
**Post date:** [April 4, 2025, 2:37am UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/7 "2025-04-04T02:37:58Z")

</div>

sq0idp-S97ZYOUN0eH9z2xn17Dmqw

Thanks for looking into it!

---

<div class="post-metadata">

**Author:** ![clubsandwich-dev](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@clubsandwich-dev](https://developer.squareup.com/forums/u/clubsandwich-dev)\
**Post date:** [April 8, 2025, 5:45pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/8 "2025-04-08T17:45:49Z")

</div>

Hi, checking back in on this. Any idea why Apple Pay would appear when I’m using the UI to create Payment Links, but not when I create using the API?

---

<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:** [April 8, 2025, 5:47pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/9 "2025-04-08T17:47:57Z")

</div>

The team is currently looking into this. 🙂

---

<div class="post-metadata">

**Author:** ![clubsandwich-dev](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@clubsandwich-dev](https://developer.squareup.com/forums/u/clubsandwich-dev)\
**Post date:** [April 8, 2025, 5:53pm UTC](https://developer.squareup.com/forums/t/apple-pay-not-appearing-for-payment-link-created-via-api/21768/10 "2025-04-08T17:53:42Z")

</div>

Great to hear! Thanks
