lib/moiper/payment.rb in moiper-0.1.0 vs lib/moiper/payment.rb in moiper-0.1.1

- old
+ new

@@ -33,17 +33,17 @@ def to_xml builder = Nokogiri::XML::Builder.new(:encoding => "UTF-8") do |xml| xml.EnviarInstrucao { xml.InstrucaoUnica { xml.Razao description - xml.IdProprio id + xml.IdProprio id if id xml.Valores { xml.Valor price, :moeda => "BRL" } - xml.URLNotificacao notification_url - xml.URLRetorno return_url + xml.URLNotificacao notification_url if notification_url + xml.URLRetorno return_url if return_url } } end builder.to_xml