sage_pay 0.2.6.2 → 0.2.7
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/CHANGELOG.md +4 -0
 - data/lib/sage_pay/server/abort.rb +34 -0
 - data/lib/sage_pay.rb +2 -1
 - data/sage_pay.gemspec +2 -1
 - data/spec/sage_pay_spec.rb +2 -2
 - metadata +3 -3
 
    
        data/CHANGELOG.md
    CHANGED
    
    
| 
         @@ -0,0 +1,34 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            module SagePay
         
     | 
| 
      
 2 
     | 
    
         
            +
              module Server
         
     | 
| 
      
 3 
     | 
    
         
            +
                class Abort < Command
         
     | 
| 
      
 4 
     | 
    
         
            +
                  attr_accessor :vps_tx_id, :security_key, :tx_auth_no
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
                  validates_presence_of :vps_tx_id, :security_key, :tx_auth_no
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
                  validates_length_of :vps_tx_id,    :is => 38
         
     | 
| 
      
 9 
     | 
    
         
            +
                  validates_length_of :security_key, :is => 10
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                  validates_inclusion_of :tx_type, :allow_blank => true, :in => [ :abort ]
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                  def initialize(attributes = {})
         
     | 
| 
      
 14 
     | 
    
         
            +
                    @tx_type = :abort
         
     | 
| 
      
 15 
     | 
    
         
            +
                    super
         
     | 
| 
      
 16 
     | 
    
         
            +
                  end
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
                  def post_params
         
     | 
| 
      
 19 
     | 
    
         
            +
                    super.merge({
         
     | 
| 
      
 20 
     | 
    
         
            +
                      "VPSTxId" => vps_tx_id,
         
     | 
| 
      
 21 
     | 
    
         
            +
                      "SecurityKey" => security_key,
         
     | 
| 
      
 22 
     | 
    
         
            +
                      "TxAuthNo" => tx_auth_no,
         
     | 
| 
      
 23 
     | 
    
         
            +
                    })
         
     | 
| 
      
 24 
     | 
    
         
            +
                  end
         
     | 
| 
      
 25 
     | 
    
         
            +
                  def live_service
         
     | 
| 
      
 26 
     | 
    
         
            +
                    "abort"
         
     | 
| 
      
 27 
     | 
    
         
            +
                  end
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
                  def simulator_service
         
     | 
| 
      
 30 
     | 
    
         
            +
                    "VendorAbortTx"
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
                end
         
     | 
| 
      
 33 
     | 
    
         
            +
              end
         
     | 
| 
      
 34 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/sage_pay.rb
    CHANGED
    
    | 
         @@ -7,7 +7,7 @@ require 'md5' 
     | 
|
| 
       7 
7 
     | 
    
         
             
            require 'uuid'
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         
             
            module SagePay
         
     | 
| 
       10 
     | 
    
         
            -
              VERSION = '0.2. 
     | 
| 
      
 10 
     | 
    
         
            +
              VERSION = '0.2.7'
         
     | 
| 
       11 
11 
     | 
    
         
             
            end
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
13 
     | 
    
         
             
            require 'validatable-ext'
         
     | 
| 
         @@ -23,4 +23,5 @@ require 'sage_pay/server/registration_response' 
     | 
|
| 
       23 
23 
     | 
    
         
             
            require 'sage_pay/server/notification'
         
     | 
| 
       24 
24 
     | 
    
         
             
            require 'sage_pay/server/notification_response'
         
     | 
| 
       25 
25 
     | 
    
         
             
            require 'sage_pay/server/release'
         
     | 
| 
      
 26 
     | 
    
         
            +
            require 'sage_pay/server/abort'
         
     | 
| 
       26 
27 
     | 
    
         
             
            require 'sage_pay/server'
         
     | 
    
        data/sage_pay.gemspec
    CHANGED
    
    | 
         @@ -7,7 +7,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       7 
7 
     | 
    
         
             
              ## If your rubyforge_project name is different, then edit it and comment out
         
     | 
| 
       8 
8 
     | 
    
         
             
              ## the sub! line in the Rakefile
         
     | 
| 
       9 
9 
     | 
    
         
             
              s.name              = 'sage_pay'
         
     | 
| 
       10 
     | 
    
         
            -
              s.version           = '0.2. 
     | 
| 
      
 10 
     | 
    
         
            +
              s.version           = '0.2.7'
         
     | 
| 
       11 
11 
     | 
    
         
             
              s.date              = '2010-04-25'
         
     | 
| 
       12 
12 
     | 
    
         
             
              s.rubyforge_project = 'sage_pay'
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
         @@ -55,6 +55,7 @@ gateway for accepting credit card payments through your web app. 
     | 
|
| 
       55 
55 
     | 
    
         
             
                Rakefile
         
     | 
| 
       56 
56 
     | 
    
         
             
                lib/sage_pay.rb
         
     | 
| 
       57 
57 
     | 
    
         
             
                lib/sage_pay/server.rb
         
     | 
| 
      
 58 
     | 
    
         
            +
                lib/sage_pay/server/abort.rb
         
     | 
| 
       58 
59 
     | 
    
         
             
                lib/sage_pay/server/address.rb
         
     | 
| 
       59 
60 
     | 
    
         
             
                lib/sage_pay/server/command.rb
         
     | 
| 
       60 
61 
     | 
    
         
             
                lib/sage_pay/server/notification.rb
         
     | 
    
        data/spec/sage_pay_spec.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version 
     | 
|
| 
       5 
5 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 2
         
     | 
| 
       8 
     | 
    
         
            -
              -  
     | 
| 
       9 
     | 
    
         
            -
               
     | 
| 
       10 
     | 
    
         
            -
              version: 0.2.6.2
         
     | 
| 
      
 8 
     | 
    
         
            +
              - 7
         
     | 
| 
      
 9 
     | 
    
         
            +
              version: 0.2.7
         
     | 
| 
       11 
10 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
11 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
12 
     | 
    
         
             
            - Graeme Mathieson
         
     | 
| 
         @@ -77,6 +76,7 @@ files: 
     | 
|
| 
       77 
76 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       78 
77 
     | 
    
         
             
            - lib/sage_pay.rb
         
     | 
| 
       79 
78 
     | 
    
         
             
            - lib/sage_pay/server.rb
         
     | 
| 
      
 79 
     | 
    
         
            +
            - lib/sage_pay/server/abort.rb
         
     | 
| 
       80 
80 
     | 
    
         
             
            - lib/sage_pay/server/address.rb
         
     | 
| 
       81 
81 
     | 
    
         
             
            - lib/sage_pay/server/command.rb
         
     | 
| 
       82 
82 
     | 
    
         
             
            - lib/sage_pay/server/notification.rb
         
     |