Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.23 KB

apple-pay.md

File metadata and controls

52 lines (34 loc) · 1.23 KB

Apple Pay

apple_pay_api = client.apple_pay

Class Name

ApplePayApi

Register Domain

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.

def register_domain(body:)

Parameters

Parameter Type Tags Description
body Register Domain Request Hash Body, Required An object containing the fields to POST for the request.

See the corresponding object definition for field details.

Response Type

Register Domain Response Hash

Example Usage

body = {}
body[:domain_name] = 'example.com'

result = apple_pay_api.register_domain(body: body)

if result.success?
  puts result.data
elsif result.error?
  warn result.errors
end