registerApplePayDomain method

Future<RegisterDomainResponseStatus> registerApplePayDomain({
  1. required String domainName,
  2. String? authToken,
})

Activates a domain for use with Apple Pay on the Web and Square.

A validation is performed on this domain by Apple to ensure that it is properly set up as an Apple Pay enabled domain.

This endpoint provides an easy way for platform developers to bulk activate Apple Pay on the Web with Square for merchants using their platform.

To learn more about Web Apple Pay, see Add the Apple Pay on the Web Button.

Implementation

Future<RegisterDomainResponseStatus> registerApplePayDomain({
  required String domainName,
  String? authToken,
}) async {
  return _paymentService.registerApplePayDomain(domainName: domainName, authToken: authToken);
}