module Adyen::Matchers

Public Instance Methods

assert_adyen_payment_form(subject, checks = {}) click to toggle source
   # File lib/adyen/matchers.rb
77 def assert_adyen_payment_form(subject, checks = {})
78   default_checks = {:merchant_sig => :anything, :payment_amount => :anything, :currency_code => :anything, :skin_code => :anything }
79   assert Adyen::Matchers::XPathPaymentFormCheck.check(subject, default_checks.merge(checks)), 'No Adyen payment form found'
80 end
assert_adyen_recurring_payment_form(subject, checks = {}) click to toggle source
   # File lib/adyen/matchers.rb
82 def assert_adyen_recurring_payment_form(subject, checks = {})
83   recurring_checks = { :recurring => true, :shopper_email => :anything, :shopper_reference => :anything }
84   assert_adyen_payment_form(subject, recurring_checks.merge(checks))
85 end
assert_adyen_single_payment_form(subject, checks = {}) click to toggle source
   # File lib/adyen/matchers.rb
87 def assert_adyen_single_payment_form(subject, checks = {})
88   recurring_checks = { :recurring => false }
89   assert_adyen_payment_form(subject, recurring_checks.merge(checks))
90 end
have_adyen_payment_form(checks = {}) click to toggle source
   # File lib/adyen/matchers.rb
62 def have_adyen_payment_form(checks = {})
63   default_checks = {:merchant_sig => :anything, :payment_amount => :anything, :currency_code => :anything, :skin_code => :anything }
64   HaveAdyenPaymentForm.new(default_checks.merge(checks))
65 end
have_adyen_recurring_payment_form(checks = {}) click to toggle source
   # File lib/adyen/matchers.rb
67 def have_adyen_recurring_payment_form(checks = {})
68   recurring_checks = { :recurring => true, :shopper_email => :anything, :shopper_reference => :anything }
69   have_adyen_payment_form(recurring_checks.merge(checks))
70 end
have_adyen_single_payment_form(checks = {}) click to toggle source
   # File lib/adyen/matchers.rb
72 def have_adyen_single_payment_form(checks = {})
73   recurring_checks = { :recurring => false }
74   have_adyen_payment_form(recurring_checks.merge(checks))
75 end