# 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.galaxypay.vn/upc/payment-gateway/appendix/payment-hubs/apple-pay-validation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
