Configure the element with setAttribute — the element observes the
buttonstyle, type, and locale attributes via attributeChangedCallback
and does not expose DOM property setters for them. See
Apple's documentation
for the supported values of each attribute.
The
<apple-pay-button>custom element, defined and rendered by Apple's Apple Pay JS SDK (not the PayPal SDK). Load Apple's script alongside the PayPal SDK for the element to be registered: