Module: Bcash::Api::VerifyReturn

Included in:
Client
Defined in:
lib/bcash/api/verify_return.rb

Constant Summary collapse

VERIFY_URL =
'https://www.bcash.com.br/checkout/verify/'

Instance Method Summary collapse

Instance Method Details

#verify_return(data = {}) ⇒ Object



4
5
6
7
8
# 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