---
title: "apple-pay/generate-embed-url"
method: POST
path: "/apple-pay/generate-embed-url"
tags: ["Digital Wallet Endpoints"]
---

# apple-pay/generate-embed-url

`POST /apple-pay/generate-embed-url`

## Request

- Base URL: `https://earthnode-dev.vopay.com/api/v2`
- URL: `https://earthnode-dev.vopay.com/api/v2/apple-pay/generate-embed-url`
- Auth: none declared

This endpoint is used to generate a unique URL to embed into your application using an iFrame. End users will use this to login to their Apple account and generate a token, which can be used in the /apple-pay/charge endpoint.

## Request body `application/x-www-form-urlencoded`

- object
  - `AccountID` string, required: Your account ID
  - `Key` string, required: API key for the account
  - `Signature` string, required: Hashed signature for the request
  - `ClientAccountID` string: When provided, the Apple Pay token generated will be attached to the Client Account ID
  - `RedirectURL` string, required: URL to redirect the user to after the Apple account is connected.
  - `RedirectMethod` string: This parameter accepts InnerRedirect, OuterRedirect, and JavascriptMessage as parameter values.
  - `ClientControlled` boolean: When set to true, the Apple Pay token added will be linked to your VoPay account. Default is false.

## Response `200`

- object
  - `Success` boolean, required: true if the request was successful, false if it failed
  - `ErrorMessage` string, required: Contains a description of the error if the request failed
  - `EmbedURL` string, required: Custom generated iQ11 iframe url for users to use
  - `IframeKey` string, required: Unique key attached to the generated iFrame

---

[API](https://skmtc.dev/vopay/apis/payment-methods.md) - [All operations](https://skmtc.dev/vopay/apis/payment-methods/llms.txt) - [OpenAPI document](https://skmtc.dev/vopay/apis/payment-methods/revisions/b566c8002410?raw)
