Skip to content

Apple Wallet action

Show a wallet action only when your backend has confirmed ownership and eligibility for the wallet page. This example is an ordinary text link, not Apple’s official badge artwork or native provisioning UI.

export function WalletContinuation({ approvedWalletUrl }) {
// Your backend checks the HTTPS origin, customer, and first-card eligibility.
if (!approvedWalletUrl) {
return <p>Apple Wallet is currently unavailable for this card.</p>;
}
return (
<a
href={approvedWalletUrl}
target="_blank"
rel="noopener noreferrer"
referrerPolicy="no-referrer"
>
Continue to Apple Wallet
</a>
);
}

Request the approved URL on demand through your authenticated application route, then render the continuation link. This avoids assuming a browser will allow a new window opened after an asynchronous request. Keep the URL in memory only and clear it when leaving the flow.

Use the system browser for a native application handoff; see Swift and React Native. A successful browser launch is not successful wallet addition.

If you use official Apple Wallet branding, obtain the approved assets and follow the applicable brand requirements for your product. The API does not supply button artwork, a native provisioning SDK, or a Google Wallet alternative.