Class: CloudPayments::Namespaces::ApplePay
- Inherits:
-
Base
- Object
- Base
- CloudPayments::Namespaces::ApplePay
show all
- Defined in:
- lib/cloud_payments/namespaces/apple_pay.rb
Constant Summary
collapse
- ValidationUrlMissing =
Class.new(StandardError)
Instance Attribute Summary
Attributes inherited from Base
#client, #parent_path
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #request
Class Method Details
.resource_name ⇒ Object
7
8
9
|
# File 'lib/cloud_payments/namespaces/apple_pay.rb', line 7
def self.resource_name
'applepay'
end
|
Instance Method Details
#start_session(attributes) ⇒ Object
11
12
13
14
15
|
# File 'lib/cloud_payments/namespaces/apple_pay.rb', line 11
def start_session(attributes)
validation_url = attributes.fetch(:validation_url) { raise ValidationUrlMissing.new('validation_url is required') }
request(:startsession, { "ValidationUrl" => validation_url })
end
|