> For the complete documentation index, see [llms.txt](https://docs.galaxypay.vn/upc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.galaxypay.vn/upc/payment-gateway/appendix/payment-hubs/apple-pay-validation.md).

# Apple Pay Validation

Step 1: Include script into your web page.

```
<script type="text/javascript" src="https://uat-stc.galaxypay.vn/scripts/ApplePay/ApplePayValidation.js"></script>
```

Step 2: Execute Script & Show Apple Pay method

```
<script type="text/javascript">
    if (isApplePayAvailable()) {
        // Show Apple Pay button. 
        // Then, when user click on button, processing payment & redirect to Galaxy Pay
        showApplePayMethod();
    }
</script>
```
