Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 98f9924

Browse files
committed
update moip call, new version dont use more MoIP::Client.query is just MoIP.query
1 parent dd5943f commit 98f9924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/catarse_moip/processors/moip.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def initialize(backer)
3232
end
3333

3434
def update_backer
35-
pagamento = ::MoIP::Client.query(@backer.payment_token)["Autorizacao"]["Pagamento"]
35+
pagamento = ::MoIP.query(@backer.payment_token)["Autorizacao"]["Pagamento"]
3636
pagamento = pagamento.first unless pagamento.respond_to?(:key)
3737
@backer.update_attributes({
3838
:payment_id => pagamento["CodigoMoIP"],

0 commit comments

Comments
 (0)