Article

Localizing Apple Pay Buttons

Set the language of an Apple Pay button.

Overview

You can set the language of Apple Pay buttons by setting the -webkit-locale CSS property or the lang HTML attribute. For example, to display the Buy with Apple Pay button with the text in French, you can use code like this:

<button lang="fr" style="-webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy;"></button>

Localization applies to all Apple Pay buttons with text, including Set up Apple Pay, Buy with Apple Pay, and Donate with Apple Pay.

Localizing Apple Pay buttons is available starting in macOS 10.12.1 and iOS 10.1.

See Also

Apple Pay Buttons

Displaying Apple Pay Buttons

Use CSS templates to display Apple Pay buttons in Safari.

Choosing Button Appearance

Choose a button color and size to suit your webpage.