IApplePayApi applePayApi = client.ApplePayApi;
ApplePayApi
Activates a domain for use with Web Apple Pay and Square. A validation will be performed on this domain by Apple to ensure is it properly set up as an Apple Pay enabled domain.
This endpoint provides an easy way for platform developers to bulk activate Web Apple Pay with Square for merchants using their platform.
To learn more about Apple Pay on Web see the Apple Pay section in the Square Payment Form Walkthrough.
RegisterDomainAsync(Models.RegisterDomainRequest body)
Parameter | Type | Tags | Description |
---|---|---|---|
body |
Models.RegisterDomainRequest |
Body, Required | An object containing the fields to POST for the request. See the corresponding object definition for field details. |
Task<Models.RegisterDomainResponse>
var body = new RegisterDomainRequest.Builder(
"example.com")
.Build();
try
{
RegisterDomainResponse result = await applePayApi.RegisterDomainAsync(body);
}
catch (ApiException e){};