samurai 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,8 +14,7 @@ class Samurai::PaymentMethod < Samurai::Base
14
14
 
15
15
  # Alias for `payment_method_token`
16
16
  def token
17
- self.payment_method_token
18
- # self.attributes["payment_method_token"]
17
+ self.attributes["payment_method_token"]
19
18
  end
20
19
 
21
20
  # Retains the payment method on `api.samurai.feefighters.com`. Retain a payment method if
@@ -1,3 +1,3 @@
1
1
  module Samurai
2
- VERSION = "0.2.19".freeze
2
+ VERSION = "0.2.20".freeze
3
3
  end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe "PaymentMethod actions" do
4
+
5
+ it "should create a new PaymentMethod using S2S endpoint" do
6
+ p = Samurai::PaymentMethod.create(
7
+ :city => "Chicago",
8
+ :zip => "53211",
9
+ :expiry_month => 03,
10
+ :cvv => "123",
11
+ :card_number => "4111111111111111",
12
+ :address_1 => "1240 W Monroe #1",
13
+ :address_2 => "",
14
+ :last_name => "harper",
15
+ :expiry_year => "2015",
16
+ :first_name => "sean",
17
+ :state => "IL")
18
+ end
19
+
20
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: samurai
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.19
5
+ version: 0.2.20
6
6
  platform: ruby
7
7
  authors:
8
8
  - Graeme Rouse
@@ -16,6 +16,7 @@ default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activeresource
19
+ prerelease: false
19
20
  requirement: &id001 !ruby/object:Gem::Requirement
20
21
  none: false
21
22
  requirements:
@@ -23,10 +24,10 @@ dependencies:
23
24
  - !ruby/object:Gem::Version
24
25
  version: 2.2.2
25
26
  type: :runtime
26
- prerelease: false
27
27
  version_requirements: *id001
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
+ prerelease: false
30
31
  requirement: &id002 !ruby/object:Gem::Requirement
31
32
  none: false
32
33
  requirements:
@@ -34,10 +35,10 @@ dependencies:
34
35
  - !ruby/object:Gem::Version
35
36
  version: 1.0.0
36
37
  type: :development
37
- prerelease: false
38
38
  version_requirements: *id002
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rspec
41
+ prerelease: false
41
42
  requirement: &id003 !ruby/object:Gem::Requirement
42
43
  none: false
43
44
  requirements:
@@ -45,10 +46,10 @@ dependencies:
45
46
  - !ruby/object:Gem::Version
46
47
  version: 2.6.0
47
48
  type: :development
48
- prerelease: false
49
49
  version_requirements: *id003
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: fakeweb
52
+ prerelease: false
52
53
  requirement: &id004 !ruby/object:Gem::Requirement
53
54
  none: false
54
55
  requirements:
@@ -56,10 +57,10 @@ dependencies:
56
57
  - !ruby/object:Gem::Version
57
58
  version: "0"
58
59
  type: :development
59
- prerelease: false
60
60
  version_requirements: *id004
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: ruby-debug19
63
+ prerelease: false
63
64
  requirement: &id005 !ruby/object:Gem::Requirement
64
65
  none: false
65
66
  requirements:
@@ -67,7 +68,6 @@ dependencies:
67
68
  - !ruby/object:Gem::Version
68
69
  version: "0"
69
70
  type: :development
70
- prerelease: false
71
71
  version_requirements: *id005
72
72
  description: If you are an online merchant and using samurai.feefighters.com, this gem will make your life easy. Integrate with the samurai.feefighters.com portal and process transaction.
73
73
  email:
@@ -106,6 +106,7 @@ files:
106
106
  - samurai.gemspec
107
107
  - spec/lib/authorization_spec.rb
108
108
  - spec/lib/generate_docs_spec.rb.bak
109
+ - spec/lib/payment_method_spec.rb
109
110
  - spec/lib/processor_spec.rb
110
111
  - spec/lib/purchase_spec.rb
111
112
  - spec/spec_helper.rb
@@ -127,9 +128,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
128
  requirements:
128
129
  - - ">="
129
130
  - !ruby/object:Gem::Version
130
- hash: 2600934991802428395
131
- segments:
132
- - 0
133
131
  version: "0"
134
132
  required_rubygems_version: !ruby/object:Gem::Requirement
135
133
  none: false