<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,8 +23,8 @@ module Handsoap
   class Service
 
     private
-    def invoke_and_parse(method_name, &amp;block)
-      response = invoke(&quot;tns:#{method_name}&quot;) do |message|
+    def invoke_and_parse(method_name, soap_action, &amp;block)
+      response = invoke(&quot;tns:#{method_name}&quot;, soap_action) do |message|
         message.add(&quot;tns:merchantId&quot;, @connection.merchant_id)
         block.call(message)
       end</diff>
      <filename>lib/braspag.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,8 @@ module Braspag
     end
 
     def encrypt(map)
-      invoke_and_parse('EncryptRequest') do |message|
+      soap_action = &quot;#{BASE_ACTION_URL}/EncryptRequest&quot;
+      invoke_and_parse('EncryptRequest', soap_action) do |message|
         message.add(&quot;tns:request&quot;) do |sub_message|
           map.each do |key, value|
             sub_message.add(&quot;tns:string&quot;, &quot;#{key}=#{value}&quot;)
@@ -26,7 +27,8 @@ module Braspag
     end
 
     def decrypt(encripted_text)
-      document = invoke_and_parse('DecryptRequest') do |message|
+      soap_action = &quot;#{BASE_ACTION_URL}/DecryptRequest&quot;
+      document = invoke_and_parse('DecryptRequest', soap_action) do |message|
         message.add(&quot;tns:cryptString&quot;, encripted_text)
       end
       convert_request_to_map document</diff>
      <filename>lib/braspag/cryptography.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,7 @@ module Braspag
     end
 
     def authorize(map)
-      document = invoke_and_parse('Authorize') do |message|
+      document = invoke_and_parse('Authorize', &quot;#{BASE_ACTION_URL}/Authorize&quot;) do |message|
         map.each do |key, value|
           message.add(&quot;tns:#{key}&quot;, &quot;#{value}&quot;)
         end
@@ -26,7 +26,7 @@ module Braspag
 
     private
     def configure_endpoint
-      self.class.endpoint :uri =&gt; &quot;#{@connection.base_url}/webservice/pagador.asmx&quot;,
+      self.class.endpoint :uri =&gt; &quot;https://homologacao.pagador.com.br/webservices/pagador/Pagador.asmx&quot;,
                           :version =&gt; 2
     end
 </diff>
      <filename>lib/braspag/pagador.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,8 @@ module Braspag
     end
 
     def create_creditcard_order(map)
-      document = invoke_and_parse('CreateCreditCardOrder') do |message|
+      soap_action = &quot;#{BASE_ACTION_URL}/CreateCreditCardOrder&quot;
+      document = invoke_and_parse('CreateCreditCardOrder', soap_action) do |message|
         map.each do |key, value|
           message.add(&quot;tns:#{key}&quot;, &quot;#{value}&quot;)
         end</diff>
      <filename>lib/braspag/recorrente.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
 
 describe Braspag::Pagador do
   before do
-    @merchant_id = &quot;{84BE7E7F-698A-6C74-F820-AE359C2A07C2}&quot;
+    @merchant_id = &quot;{12312312-123123-123-123123}&quot;
     @connection = Braspag::Connection.new(@merchant_id, :test)
     @pagador = Braspag::Pagador.new(@connection)
     response = &quot;&lt;?xml version='1.0' encoding='utf-8'?&gt;&lt;soap:Envelope xmlns:soap='http://www.w3.org/2003/05/soap-envelope' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'&gt;&lt;soap:Body&gt;&lt;AuthorizeResponse xmlns='https://www.pagador.com.br/webservice/pagador'&gt;&lt;AuthorizeResult&gt;&lt;amount&gt;1&lt;/amount&gt;&lt;authorisationNumber&gt;418270&lt;/authorisationNumber&gt;&lt;message&gt;Transaction Sucessful&lt;/message&gt;&lt;returnCode&gt;0&lt;/returnCode&gt;&lt;status&gt;1&lt;/status&gt;&lt;transactionId&gt;128199&lt;/transactionId&gt;&lt;/AuthorizeResult&gt;&lt;/AuthorizeResponse&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;&quot;
@@ -20,23 +20,16 @@ describe Braspag::Pagador do
       &lt;tns:orderId&gt;teste564&lt;/tns:orderId&gt;
       &lt;tns:customerName&gt;comprador de teste&lt;/tns:customerName&gt;
       &lt;tns:amount&gt;1,00&lt;/tns:amount&gt;
-      &lt;tns:paymentMethod&gt;18&lt;/tns:paymentMethod&gt;
-      &lt;tns:holder&gt;comprador de teste&lt;/tns:holder&gt;
-      &lt;tns:cardNumber&gt;345678901234564&lt;/tns:cardNumber&gt;
-      &lt;tns:expiration&gt;06/11&lt;/tns:expiration&gt;
-      &lt;tns:securityCode&gt;1234&lt;/tns:securityCode&gt;
-      &lt;tns:numberPayments&gt;1&lt;/tns:numberPayments&gt;
-      &lt;tns:typePayment&gt;0&lt;/tns:typePayment&gt;
     &lt;/tns:Authorize&gt;
   &lt;/env:Body&gt;
 &lt;/env:Envelope&gt;
 STRING
     response_should_contain(expected)
-    @pagador.authorize(:orderId =&gt; &quot;teste564&quot;, :customerName =&gt; &quot;comprador de teste&quot;, :amount =&gt; &quot;1,00&quot;, :paymentMethod =&gt; &quot;18&quot;, :holder =&gt; &quot;comprador de teste&quot;, :cardNumber =&gt; &quot;345678901234564&quot;, :expiration =&gt; &quot;06/11&quot;, :securityCode =&gt; &quot;1234&quot;, :numberPayments =&gt; &quot;1&quot;, :typePayment =&gt; &quot;0&quot; )
+    @pagador.authorize(:orderId =&gt; &quot;teste564&quot;, :customerName =&gt; &quot;comprador de teste&quot;, :amount =&gt; &quot;1,00&quot;)
   end
 
   it &quot;deve devolver o resoltado em um mapa&quot; do
     map = {&quot;amount&quot; =&gt;&quot;1&quot;, &quot;authorisationNumber&quot; =&gt; &quot;418270&quot;, &quot;message&quot; =&gt; &quot;Transaction Sucessful&quot;, &quot;returnCode&quot; =&gt; &quot;0&quot;, &quot;status&quot; =&gt; &quot;1&quot;, &quot;transactionId&quot; =&gt; &quot;128199&quot;}
-    @pagador.authorize(:orderId =&gt; &quot;teste564&quot;, :customerName =&gt; &quot;comprador de teste&quot;, :amount =&gt; &quot;1,00&quot;, :paymentMethod =&gt; &quot;18&quot;, :holder =&gt; &quot;comprador de teste&quot;, :cardNumber =&gt; &quot;345678901234564&quot;, :expiration =&gt; &quot;06/11&quot;, :securityCode =&gt; &quot;1234&quot;, :numberPayments =&gt; &quot;1&quot;, :typePayment =&gt; &quot;0&quot; ).should == map
+    @pagador.authorize(:orderId =&gt; &quot;teste564&quot;, :customerName =&gt; &quot;comprador de teste&quot;, :amount =&gt; &quot;1,00&quot;).should == map
   end
 end</diff>
      <filename>spec/braspag/pagador_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
 
 describe Braspag::Recorrente do
   before do
-    @merchant_id = &quot;{84BE7E7F-698A-6C74-F820-AE359C2A07C2}&quot;
+    @merchant_id = &quot;{234234-234234-234234}&quot;
     @connection = Braspag::Connection.new(@merchant_id, :test)
     @recorrente = Braspag::Recorrente.new(@connection)
     response = &quot;&lt;?xml version='1.0' encoding='utf-8'?&gt;&lt;soap:Envelope xmlns:soap='http://www.w3.org/2003/05/soap-envelope' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'&gt;&lt;soap:Body&gt;&lt;CreateCreditCardOrderResponse xmlns='https://www.pagador.com.br/webservice/recorrente'&gt;&lt;CreateCreditCardOrderResult&gt;&lt;code&gt;1&lt;/code&gt;&lt;description&gt;teste&lt;/description&gt;&lt;/CreateCreditCardOrderResult&gt;&lt;/CreateCreditCardOrderResponse&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;&quot;
@@ -20,25 +20,16 @@ describe Braspag::Recorrente do
       &lt;tns:orderId&gt;123&lt;/tns:orderId&gt;
       &lt;tns:startDate&gt;12/11/2009&lt;/tns:startDate&gt;
       &lt;tns:endDate&gt;12/12/2009&lt;/tns:endDate&gt;
-      &lt;tns:recurrenceInterval&gt;1&lt;/tns:recurrenceInterval&gt;
-      &lt;tns:amount&gt;123,45&lt;/tns:amount&gt;
-      &lt;tns:paymentMethod&gt;18&lt;/tns:paymentMethod&gt;
-      &lt;tns:holder&gt;Teste&lt;/tns:holder&gt;
-      &lt;tns:cardNumber&gt;2222&lt;/tns:cardNumber&gt;
-      &lt;tns:expirationDate&gt;12/11&lt;/tns:expirationDate&gt;
-      &lt;tns:securityCode&gt;123&lt;/tns:securityCode&gt;
-      &lt;tns:numberInstallments&gt;1&lt;/tns:numberInstallments&gt;
-      &lt;tns:paymentType&gt;0&lt;/tns:paymentType&gt;
     &lt;/tns:CreateCreditCardOrder&gt;
   &lt;/env:Body&gt;
 &lt;/env:Envelope&gt;
 STRING
     response_should_contain(expected)
-    @recorrente.create_creditcard_order(:orderId =&gt; &quot;123&quot;, :startDate =&gt; &quot;12/11/2009&quot;, :endDate =&gt; &quot;12/12/2009&quot;, :recurrenceInterval =&gt; &quot;1&quot;, :amount =&gt; &quot;123,45&quot;, :paymentMethod =&gt; &quot;18&quot;, :holder =&gt; &quot;Teste&quot;, :cardNumber =&gt; &quot;2222&quot;, :expirationDate =&gt; &quot;12/11&quot;, :securityCode =&gt; &quot;123&quot;, :numberInstallments =&gt; &quot;1&quot;, :paymentType =&gt; &quot;0&quot; )
+    @recorrente.create_creditcard_order(:orderId =&gt; &quot;123&quot;, :startDate =&gt; &quot;12/11/2009&quot;, :endDate =&gt; &quot;12/12/2009&quot;)
   end
 
   it &quot;deve devolver dados em um mapa&quot; do
     map = { &quot;code&quot; =&gt;&quot;1&quot;, &quot;description&quot; =&gt; &quot;teste&quot;}
-    @recorrente.create_creditcard_order(:orderId =&gt; &quot;123&quot;, :startDate =&gt; &quot;12/11/2009&quot;, :endDate =&gt; &quot;12/12/2009&quot;, :recurrenceInterval =&gt; &quot;1&quot;, :amount =&gt; &quot;123,45&quot;, :paymentMethod =&gt; &quot;18&quot;, :holder =&gt; &quot;Teste&quot;, :cardNumber =&gt; &quot;2222&quot;, :expirationDate =&gt; &quot;12/11&quot;, :securityCode =&gt; &quot;123&quot;, :numberInstallments =&gt; &quot;1&quot;, :paymentType =&gt; &quot;0&quot; ).should == map
+    @recorrente.create_creditcard_order(:orderId =&gt; &quot;123&quot;, :startDate =&gt; &quot;12/11/2009&quot;, :endDate =&gt; &quot;12/12/2009&quot;).should == map
   end
 end</diff>
      <filename>spec/braspag/recorrente_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>674b5452342fc7b8d40e986b44dfacbc72ee13af</id>
    </parent>
  </parents>
  <author>
    <name>Ricardo Almeida</name>
    <email>ricardo.almeida@gonow.com.br</email>
  </author>
  <url>http://github.com/gonow/braspag/commit/72a565c20693d4cc1c738547bcc6b8408236c7d4</url>
  <id>72a565c20693d4cc1c738547bcc6b8408236c7d4</id>
  <committed-date>2009-11-10T09:34:57-08:00</committed-date>
  <authored-date>2009-11-10T09:34:57-08:00</authored-date>
  <message>corrigindo url de pagador e melhorando testes</message>
  <tree>d9973075e7c90fe6256e1de5bbeb2e14e06c43e8</tree>
  <committer>
    <name>Ricardo Almeida</name>
    <email>ricardo.almeida@gonow.com.br</email>
  </committer>
</commit>
