class OffsitePayments::Integrations::Coinbase::Return
Public Class Methods
new(query_string, options = {})
click to toggle source
Calls superclass method
OffsitePayments::Return::new
# File lib/offsite_payments/integrations/coinbase.rb, line 125 def initialize(query_string, options = {}) super @notification = Notification.new(@params.to_json, options) end
Public Instance Methods
parse(query_string)
click to toggle source
# File lib/offsite_payments/integrations/coinbase.rb, line 130 def parse(query_string) parsed_hash = Rack::Utils.parse_nested_query(query_string) if native_cents = parsed_hash['order'] && parsed_hash['order']['total_native'] && parsed_hash['order']['total_native']['cents'] parsed_hash['order']['total_native']['cents'] = native_cents.to_i end parsed_hash end