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:
7 posts - 3 participants