How does the PayPal Express payment method detect whether it is available?

See also: