Apple Pay not appearing for Payment Link created via API

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:

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:

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

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

Additional Documentation

Checkout API
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.

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

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

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.

What’s your application_id? :slight_smile:

sq0idp-S97ZYOUN0eH9z2xn17Dmqw

Thanks for looking into it!

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?

The team is currently looking into this. :slight_smile:

Great to hear! Thanks