Apple pay not showing on mobile safari on checkout with payment link

Hi,

I’ve enabled apple pay but it’s not appearing on the iphone using safari web browser.

It’s enabled in the payment link.

     $quick_pay = new \Square\Models\QuickPay(
        $plan_friendly_name,
        $price_money,
        $location_id
     );

     $accepted_payment_methods = new \Square\Models\AcceptedPaymentMethods();
     $accepted_payment_methods->setApplePay(true);
     $accepted_payment_methods->setGooglePay(true);

     $checkout_options = new \Square\Models\CheckoutOptions();
     $checkout_options->setSubscriptionPlanId($plan_id);
     $checkout_options->setAskForShippingAddress(false);
     $checkout_options->setAcceptedPaymentMethods($accepted_payment_methods);

     $body = new \Square\Models\CreatePaymentLinkRequest();
     $body->setIdempotencyKey(guidv4($customer_company));
     $body->setDescription($customer_company);
     $body->setQuickPay($quick_pay);
     $body->setCheckoutOptions($checkout_options);
     $body->setPrePopulatedData($pre_populated_data);

     $api_response = $client->getCheckoutApi()->createPaymentLink($body);

Regards,
dmxit

Do you have an example link? :slightly_smiling_face:

Try this.

https://square.link/u/7vvcsRO3

Oh, this is for a subscription. You can’t save a card on file with Apple Pay and Google pay which is necessary for subscriptions and that’s why it’s not showing. :slightly_smiling_face:

Ah, that makes sense.

Thanks for looking into this.