Navigation Menu

Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
shaofu88 committed Sep 25, 2019
1 parent bd6b008 commit 85fe5af
Show file tree
Hide file tree
Showing 484 changed files with 28,840 additions and 28,106 deletions.
6 changes: 3 additions & 3 deletions .gitignore
@@ -1,3 +1,3 @@
Gemfile.lock
travis-ci/accounts.json
pkg
Gemfile.lock
pkg
*.gem
18 changes: 9 additions & 9 deletions Gemfile
@@ -1,9 +1,9 @@
# frozen_string_literal: true

source 'https://rubygems.org'

group :test do
gem 'rake'
end

gemspec
# frozen_string_literal: true

source 'https://rubygems.org'

group :test do
gem 'rake'
end

gemspec
102 changes: 51 additions & 51 deletions doc/apple-pay.md
@@ -1,51 +1,51 @@
# Apple Pay

```ruby
apple_pay_api = client.apple_pay
```

## Class Name

`ApplePayApi`

## Register Domain

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
[Embedding the Square Payment Form](/payment-form/add-digital-wallets/apple-pay) guide.

```ruby
def register_domain(body:)
```

### Parameters

| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `body` | [`Register Domain Request Hash`](/doc/models/register-domain-request.md) | Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |

### Response Type

[`Register Domain Response Hash`](/doc/models/register-domain-response.md)

### Example Usage

```ruby
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
```

# Apple Pay

```ruby
apple_pay_api = client.apple_pay
```

## Class Name

`ApplePayApi`

## Register Domain

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
[Embedding the Square Payment Form](https://developer.squareup.com/docs/payment-form/add-digital-wallets/apple-pay) guide.

```ruby
def register_domain(body:)
```

### Parameters

| Parameter | Type | Tags | Description |
| --- | --- | --- | --- |
| `body` | [`Register Domain Request Hash`](/doc/models/register-domain-request.md) | Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |

### Response Type

[`Register Domain Response Hash`](/doc/models/register-domain-response.md)

### Example Usage

```ruby
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
```

0 comments on commit 85fe5af

Please sign in to comment.