venmo 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/VERSION +1 -1
- data/lib/venmo/pay.rb +4 -4
- data/venmo.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74acf94608b2b4ccb5499a02ef0c6fd507d82533
|
4
|
+
data.tar.gz: 27ac628ea3b758ceb39efc05c57bab275c497f27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b43d8516241c08251dc354ce81e7f75da75a3db7f1226df4569d14a1a6ff2a73072bb853ba0e4ba16f2a1ac8072bc67a6e574d74f19121aa63d30be4c0884ea
|
7
|
+
data.tar.gz: cda58476def12bf35677b999c691b7783b801e90a3fd0fb8d69abf35089b5d3f1f3cc9cbf31c0565fb3e6917519b4a7bac9353c2c046951915fc30ead7a5a706
|
data/README.md
CHANGED
@@ -3,6 +3,17 @@ venmo
|
|
3
3
|
|
4
4
|
Venmo API Integration
|
5
5
|
|
6
|
+
|
7
|
+
This is in super beta. Just started working on it.
|
8
|
+
|
9
|
+
Venmo.pay_by_email(email, amount, note)
|
10
|
+
|
11
|
+
Venmo.pay_by_user_id(user_id, amount, note)
|
12
|
+
|
13
|
+
Venmo.pay_by_phone_number(phone_number, amount, note)
|
14
|
+
|
15
|
+
I think these are working. Tests coming soon.
|
16
|
+
|
6
17
|
After install update these values to reflect your Environment
|
7
18
|
|
8
19
|
Venmo.configure do |c|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/venmo/pay.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
module Venmo
|
2
2
|
module Pay
|
3
3
|
def pay_by_email(email, amount, note)
|
4
|
+
# -d email= \
|
4
5
|
@send_hash= common(amount,note, { :email => email})
|
5
6
|
core_pay
|
6
|
-
# -d email= \
|
7
7
|
end
|
8
8
|
|
9
9
|
def pay_by_user_id(user_id, amount, note)
|
10
|
+
# -d user_id= \
|
10
11
|
@send_hash= common(amount,note, {:user_id => user_id})
|
11
12
|
core_pay
|
12
|
-
# -d user_id= \
|
13
13
|
end
|
14
14
|
|
15
15
|
def pay_by_phone_number(phone_number, amount, note)
|
16
|
+
# -d phone= \
|
16
17
|
@send_hash = common(amount,note, {:phone_number=> phone_number})
|
17
18
|
core_pay
|
18
|
-
# -d phone= \
|
19
19
|
end
|
20
20
|
|
21
21
|
protected
|
@@ -32,7 +32,7 @@ module Venmo
|
|
32
32
|
base_url = "curl https://api.venmo.com/payments/?"
|
33
33
|
h = @send_hash.collect{|k,v| "#{k.to_s}=#{v.respond_to?(:gsub) ? CGI::escape(v) : v}"}.join('&')
|
34
34
|
to_send = base_url + h
|
35
|
-
|
35
|
+
`#{to_send}`
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
data/venmo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "venmo"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Robert R. Meyer"]
|
12
|
-
s.date = "2013-05-
|
12
|
+
s.date = "2013-05-16"
|
13
13
|
s.description = "Gem using curl to post to Venmo payment gateway"
|
14
14
|
s.email = "Blue.Dog.Archolite@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: venmo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert R. Meyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|