Module: Adyen::Matchers
- Defined in:
- lib/adyen/matchers.rb
Defined Under Namespace
Modules: XPathPaymentFormCheck
Classes: HaveAdyenPaymentForm
Instance Method Summary
collapse
Instance Method Details
88
89
90
91
|
# File 'lib/adyen/matchers.rb', line 88
def assert_adyen_payment_form(subject, checks = {})
default_checks = {:merchant_sig => :anything, :payment_amount => :anything, :currency_code => :anything, :skin_code => :anything }
assert Adyen::Matchers::XPathPaymentFormCheck.check(subject, default_checks.merge(checks)), 'No Adyen payment form found'
end
|
93
94
95
96
|
# File 'lib/adyen/matchers.rb', line 93
def assert_adyen_recurring_payment_form(subject, checks = {})
recurring_checks = { :recurring => true, :shopper_email => :anything, :shopper_reference => :anything }
assert_adyen_payment_form(subject, recurring_checks.merge(checks))
end
|
98
99
100
101
|
# File 'lib/adyen/matchers.rb', line 98
def assert_adyen_single_payment_form(subject, checks = {})
recurring_checks = { :recurring => false }
assert_adyen_payment_form(subject, recurring_checks.merge(checks))
end
|
73
74
75
76
|
# File 'lib/adyen/matchers.rb', line 73
def have_adyen_payment_form(checks = {})
default_checks = {:merchant_sig => :anything, :payment_amount => :anything, :currency_code => :anything, :skin_code => :anything }
HaveAdyenPaymentForm.new(default_checks.merge(checks))
end
|
78
79
80
81
|
# File 'lib/adyen/matchers.rb', line 78
def have_adyen_recurring_payment_form(checks = {})
recurring_checks = { :recurring => true, :shopper_email => :anything, :shopper_reference => :anything }
have_adyen_payment_form(recurring_checks.merge(checks))
end
|
83
84
85
86
|
# File 'lib/adyen/matchers.rb', line 83
def have_adyen_single_payment_form(checks = {})
recurring_checks = { :recurring => false }
have_adyen_payment_form(recurring_checks.merge(checks))
end
|