lib/getnet_api/payment.rb in getnet_api-0.1.1 vs lib/getnet_api/payment.rb in getnet_api-0.1.2
- old
+ new
@@ -80,12 +80,12 @@
order: self.order.to_request,
customer: self.customer.to_request(:payment),
}
if type == :boleto
- payment.merge!({"boleto": obj.to_request,})
+ payment.merge!({"boleto" => obj.to_request,})
elsif :credit
- payment.merge!({"credit": obj.to_request,})
+ payment.merge!({"credit" => obj.to_request,})
end
return payment
end