# Apple Pay Not working

**URL:** <https://forum.modmore.com/t/apple-pay-not-working/2545>\
**Category:** Commerce\
**Created:** [May 13, 2024, 9:29pm UTC](https://forum.modmore.com/t/apple-pay-not-working/2545 "2024-05-13T21:29:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyjones](https://forum.modmore.com/letter_avatar_proxy/v4/letter/a/ecae2f/32.png) [@andyjones](https://forum.modmore.com/u/andyjones)\
**Post date:** [May 13, 2024, 9:29pm UTC](https://forum.modmore.com/t/apple-pay-not-working/2545/1 "2024-05-13T21:29:40Z")

</div>

Hi All,

I’m almost there and ready to go live - but the payment options is killing me!  
I signed up for a Braintree sandbox account for testing - because it says that Apple Pay can be enabled.  
But I cannot get it to work.

Has anyone got it working?

I enabled it in Braintree, and added the domain it’s on, but not sure if I have to get a certificate using an Apple Developer account? Or is that just for use with apps?

I know this question isn’t directly linked in Commerce, but wondered if anyone has successfully set it up?

Thanks  
Andy

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [May 15, 2024, 1:25pm UTC](https://forum.modmore.com/t/apple-pay-not-working/2545/2 "2024-05-15T13:25:46Z")

</div>

As I don’t personally have Apple Pay I’ve never been able to fully test this A-Z, but these instructions should work: [Configuration | JavaScript - Braintree Developer Documentation](https://developer.paypal.com/braintree/docs/guides/apple-pay/configuration/javascript/v3)

In addition, a slight tweak to the templates is needed.

Copy the frontend/gateways/braintree/dropin\_v3.twig template from the default to your own themes directory, and around line 39 (after `vaultManager`), add this:

```auto
                vaultManager: {% if vault_manager %}true{% else %}false{% endif %}, 
// add a comma and the end of the line above
// then add the applePay configuration
                applePay: {
                    displayName: 'My Store',
                    paymentRequest: {
                        total: {
                            label: 'My Store',
                            amount: '{{ amount_formatted }}'
                        },
                        requiredBillingContactFields: ["postalAddress"]
                    }
                }

```

See also: [Setup And Integration | JavaScript - Braintree Developer Documentation](https://developer.paypal.com/braintree/docs/guides/drop-in/setup-and-integration/javascript/v3/#apple-pay)

---

<div class="post-metadata">

**Author:** ![andyjones](https://forum.modmore.com/letter_avatar_proxy/v4/letter/a/ecae2f/32.png) [@andyjones](https://forum.modmore.com/u/andyjones)\
**Post date:** [May 17, 2024, 8:34am UTC](https://forum.modmore.com/t/apple-pay-not-working/2545/3 "2024-05-17T08:34:28Z")

</div>

Thanks. I had issues creating this as my apple Id wasn’t valid to be a developer account somehow.  
Anyway - I tried Stripe, and they have Apple Pay enabled out of the box, so went with that if anyone else is curious!

Thanks  
Andy
