Class: SpreeAdyen::ApplePayDomainVerificationController

Inherits:
Spree::BaseController
  • Object
show all
Defined in:
app/controllers/spree_adyen/apple_pay_domain_verification_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject

Raises:

  • (ActiveRecord::RecordNotFound)


3
4
5
6
7
8
9
# File 'app/controllers/spree_adyen/apple_pay_domain_verification_controller.rb', line 3

def show
  gateway = current_store.adyen_gateway

  raise ActiveRecord::RecordNotFound if gateway.nil? || !gateway.apple_developer_merchantid_domain_association.attached?

  render plain: gateway.apple_domain_association_file_content
end