Class: SpreeStripe::ApplePayDomainVerificationController

Inherits:
Spree::StoreController
  • Object
show all
Defined in:
app/controllers/spree_stripe/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_stripe/apple_pay_domain_verification_controller.rb', line 3

def show
  gateway = SpreeStripe::Gateway.last

  raise ActiveRecord::RecordNotFound if gateway.nil? || !gateway.apple_domain_association_file_content

  render plain: gateway.apple_domain_association_file_content
end