Sha256: 8719bc38d393b1df902fe5d576ae172bd1f8944c622382777f5a177eb1497699
Contents?: true
Size: 820 Bytes
Versions: 13
Compression:
Stored size: 820 Bytes
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module WirecardCheckoutPage class Return < ActiveMerchant::Billing::Integrations::Return include Common def initialize(postdata, options = {}) @params = parse(postdata) @options = options verify_response(@params, options[:secret]) end def success? @paymentstate == 'SUCCESS' end def cancelled? @paymentstate == 'CANCEL' end def pending? @paymentstate == 'PENDING' end def method_missing(method_id, *args) return params[method_id.to_s] if params.has_key?(method_id.to_s) end end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems