Skip to content

[DASH-1635] Expose Apple Pay (web) domain registration logic#41

Merged
radar merged 3 commits intofatzebra:masterfrom
AV-room:task/dash-1635-fatzebra-gem-applepay-utilities
Mar 4, 2024
Merged

[DASH-1635] Expose Apple Pay (web) domain registration logic#41
radar merged 3 commits intofatzebra:masterfrom
AV-room:task/dash-1635-fatzebra-gem-applepay-utilities

Conversation

@AV-room
Copy link

@AV-room AV-room commented Mar 4, 2024

Adds API Resource FatZebra::Utilities::ApplePay::Domains

@AV-room AV-room changed the title WIP - [DASH-1635] Expose Apple Pay (web) domain registration logic [DASH-1635] Expose Apple Pay (web) domain registration logic Mar 4, 2024
#
# @return [FatZebra::Utilities::ApplePay::Domains] response
def register!(domain, params = {})
response = request(:post, path(domain), params)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The gateway endpoints don't seem to validate the given domain in any way. Should I add that validation here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apple will happily decline any invalid value

#
# @return [FatZebra::Utilities::ApplePay::Domains] response
def register!(domain, params = {})
response = request(:post, path(domain), params)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apple will happily decline any invalid value

@radar radar merged commit 4a8885b into fatzebra:master Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants