Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
484 changed files
with
28,840 additions
and
28,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Gemfile.lock | ||
travis-ci/accounts.json | ||
pkg | ||
Gemfile.lock | ||
pkg | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` | ||
|
Oops, something went wrong.