lib/offsite_payments/integrations/coinbase.rb
# Acknowledge the transaction to Coinbase. This method has to be called after a new
# apc arrives. Coinbase will verify that all the information we received are correct
# and will return a ok or a fail.
Acknowledge the transaction to Coinbase. This method has to be called after a new
apc arrives. Coinbase will verify that all the information we received are correct
and will return a ok or a fail.
Acknowledge the transaction to Coinbase . This method has to be called after a new apc arrives . Coinbase will verify that all the information we received are correct and will return a ok or a fail .
def acknowledge(authcode = {})
          uri = URI.parse(Coinbase.notification_confirmation_url % transaction_id)
          response = Coinbase.do_request(uri, @options[:credential1], @options[:credential2])
          return false if response.nil?
          posted_order = @params
          parse(response)
          return false unless @params
          %w(id custom total_native status).all? { |param| posted_order[param] == @params[param] }
        end
def acknowledge ( authcode = { } ) uri = URI . parse ( Coinbase . notification_confirmation_url % transaction_id ) response = Coinbase . do_request ( uri , @options [ :credential1 ] , @options [ :credential2 ] ) return false if response . nil? posted_order = @params parse ( response ) return false unless @params %w( id custom total_native status ) . all? { | param | posted_order [ param ] == @params [ param ] } end
Acknowledge the transaction to Coinbase.
Acknowledge the transaction to Coinbase .
authcode
<not_specific>