Class: Spree::ApplePayDomainVerificationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/controllers/spree/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 'lib/controllers/spree/apple_pay_domain_verification_controller.rb', line 3

def show
  gateway = Spree::Gateway::StripeApplePayGateway.active.last

  raise ActiveRecord::RecordNotFound unless gateway

  render plain: gateway.preferred_domain_verification_certificate
end