Permalink
Browse files

Forgot to supply a default vendor tx code.

  • Loading branch information...
1 parent 1e64ed2 commit 6c3a3d7470b5d2b5475d1bb3c5f3834c03bfef32 @mathie committed Apr 25, 2010
Showing with 8 additions and 3 deletions.
  1. +4 −0 TODO
  2. +1 −1 lib/sage_pay.rb
  3. +1 −0 lib/sage_pay/server.rb
  4. +2 −2 spec/sage_pay_spec.rb
View
4 TODO
@@ -0,0 +1,4 @@
+# TODO
+
+* validates_associated to make sure the billing and delivery address are valid.
+* Create a basket class to encapsulate the format of a basket.
View
@@ -7,7 +7,7 @@
require 'uuid'
module SagePay
- VERSION = '0.2.8'
+ VERSION = '0.2.8.1'
end
require 'validatable-ext'
View
@@ -62,6 +62,7 @@ def self.abort(attributes = {})
def self.refund(attributes = {})
defaults = {
+ :vendor_tx_code => TransactionCode.random,
}.merge(default_options)
SagePay::Server::Refund.new(defaults.merge(attributes))
View
@@ -1,7 +1,7 @@
require 'spec_helper'
describe SagePay do
- it "should be version 0.2.8" do
- SagePay::VERSION.should == '0.2.8'
+ it "should be version 0.2.8.1" do
+ SagePay::VERSION.should == '0.2.8.1'
end
end

0 comments on commit 6c3a3d7

Please sign in to comment.