lib/paykassa.rb in paykassa-0.1.31 vs lib/paykassa.rb in paykassa-0.1.32
- old
+ new
@@ -66,11 +66,11 @@
url = order[:data][:url]
end
def confirm_order(hash:)
result = @paykassa_order.confirm_order(hash)
raise StandardError.new(result[:message]) if result[:error]
- order_id = res[:data][:order_id]
- amount = res[:data][:amount]
+ order_id = result[:data][:order_id]
+ amount = result[:data][:amount]
{order_id: order_id, amount: amount}
end
end
end