module Bcash::Api::VerifyReturn

Constants

VERIFY_URL

Public Instance Methods

verify_return(data={}) click to toggle source
# File lib/bcash/api/verify_return.rb, line 4
def verify_return(data={})
  assert_valid_keys(data,:transacao, :status, :cod_status, :valor_original, :valor_loja, :token)
  response = HTTParty.post VERIFY_URL, body: data
  Bcash::Api::VerifyReturnResponse.new(response)
end