activemerchant 1.35.0 → 1.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +4 -0
- data/lib/active_merchant/billing/gateways/mercury.rb +7 -8
- data/lib/active_merchant/billing/gateways/stripe.rb +1 -0
- data/lib/active_merchant/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/CHANGELOG
    CHANGED
    
    
| @@ -80,6 +80,7 @@ module ActiveMerchant #:nodoc: | |
| 80 80 | 
             
                          xml.tag! "PartialAuth", "Allow"
         | 
| 81 81 | 
             
                        end
         | 
| 82 82 | 
             
                        add_invoice(xml, options[:order_id], nil, options)
         | 
| 83 | 
            +
                        add_reference(xml, "RecordNumberRequested")
         | 
| 83 84 | 
             
                        add_customer_data(xml, options)
         | 
| 84 85 | 
             
                        add_amount(xml, money, options)
         | 
| 85 86 | 
             
                        add_credit_card(xml, credit_card, action)
         | 
| @@ -98,12 +99,12 @@ module ActiveMerchant #:nodoc: | |
| 98 99 | 
             
                    xml.tag! "TStream" do
         | 
| 99 100 | 
             
                      xml.tag! "Transaction" do
         | 
| 100 101 | 
             
                        xml.tag! 'TranType', 'Credit'
         | 
| 101 | 
            -
                        xml.tag! 'TranCode', (@use_tokenization ? (action + "ByRecordNo") : action)
         | 
| 102 102 | 
             
                        if action == 'PreAuthCapture'
         | 
| 103 103 | 
             
                          xml.tag! "PartialAuth", "Allow"
         | 
| 104 104 | 
             
                        end
         | 
| 105 | 
            +
                        xml.tag! 'TranCode', (@use_tokenization ? (action + "ByRecordNo") : action)
         | 
| 105 106 | 
             
                        add_invoice(xml, invoice_no, ref_no, options)
         | 
| 106 | 
            -
                        add_reference(xml, record_no) | 
| 107 | 
            +
                        add_reference(xml, record_no)
         | 
| 107 108 | 
             
                        add_customer_data(xml, options)
         | 
| 108 109 | 
             
                        add_amount(xml, (money || amount.to_i), options)
         | 
| 109 110 | 
             
                        add_credit_card(xml, credit_card, action) if credit_card
         | 
| @@ -127,15 +128,13 @@ module ActiveMerchant #:nodoc: | |
| 127 128 | 
             
                    xml.tag! 'RefNo', (ref_no || invoice_no)
         | 
| 128 129 | 
             
                    xml.tag! 'OperatorID', options[:merchant] if options[:merchant]
         | 
| 129 130 | 
             
                    xml.tag! 'Memo', options[:description] if options[:description]
         | 
| 130 | 
            -
                    if @use_tokenization
         | 
| 131 | 
            -
                      xml.tag! 'Frequency', "OneTime"
         | 
| 132 | 
            -
                      xml.tag! 'RecordNo', "RecordNumberRequested"
         | 
| 133 | 
            -
                    end
         | 
| 134 131 | 
             
                  end
         | 
| 135 132 |  | 
| 136 133 | 
             
                  def add_reference(xml, record_no)
         | 
| 137 | 
            -
                     | 
| 138 | 
            -
             | 
| 134 | 
            +
                    if @use_tokenization
         | 
| 135 | 
            +
                      xml.tag! "Frequency", "OneTime"
         | 
| 136 | 
            +
                      xml.tag! "RecordNo", record_no
         | 
| 137 | 
            +
                    end
         | 
| 139 138 | 
             
                  end
         | 
| 140 139 |  | 
| 141 140 | 
             
                  def add_customer_data(xml, options)
         | 
    
        metadata
    CHANGED
    
    | @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            name: activemerchant
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 4 | 
             
              prerelease: 
         | 
| 5 | 
            -
              version: 1.35. | 
| 5 | 
            +
              version: 1.35.1
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| 8 8 | 
             
            - Tobias Luetke
         | 
| @@ -37,7 +37,7 @@ cert_chain: | |
| 37 37 | 
             
              Z1BvU1BxN25rK3MyRlFVQko5VVpGSzFsZ016aG8vNGZaZ3pKd2J1K2NPOFNO
         | 
| 38 38 | 
             
              dWFMUy9iagpoUGFTVHlWVTB5Q1Nudz09Ci0tLS0tRU5EIENFUlRJRklDQVRF
         | 
| 39 39 | 
             
              LS0tLS0K
         | 
| 40 | 
            -
            date: 2013-07- | 
| 40 | 
            +
            date: 2013-07-22 00:00:00.000000000 Z
         | 
| 41 41 | 
             
            dependencies:
         | 
| 42 42 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 43 43 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
    
        metadata.gz.sig
    CHANGED
    
    | Binary file |