verifi 0.0.1 → 0.0.2
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/HISTORY.txt +5 -0
- data/README.txt +32 -0
- metadata +3 -3
data/HISTORY.txt
CHANGED
data/README.txt
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
Overview:
|
2
|
+
You can use this gem to access Verifi.com's hosted payment page API for creating and reading payment requests.
|
3
|
+
|
4
|
+
Installation:
|
5
|
+
|
6
|
+
sudo gem install verifi
|
7
|
+
|
8
|
+
Usage:
|
9
|
+
|
10
|
+
require 'verifi'
|
11
|
+
|
12
|
+
verifi = Verifi::Client.new YOUR_API_KEY, YOUR_SECRET_KEY
|
13
|
+
|
14
|
+
payment_params = {
|
15
|
+
:amount => '123.00',
|
16
|
+
:currency => 'USD',
|
17
|
+
:orderid => '123',
|
18
|
+
:return_url => 'http://yoursite.com/order_complete',
|
19
|
+
:cancel_url => 'http://yoursite.com/continue_shopping',
|
20
|
+
:failure_url => 'http://yoursite.com/order_failure',
|
21
|
+
:request_type => 'sale'
|
22
|
+
}
|
23
|
+
|
24
|
+
#Creating a payment request:
|
25
|
+
payment_request = verifi.create_payment_request payment_params
|
26
|
+
|
27
|
+
puts "just made payment request with pay_key: #{payment_request['pay_key']}"
|
28
|
+
|
29
|
+
#Reading the payment request:
|
30
|
+
|
31
|
+
fetched_payment_request = verifi.read_payment_request payment_request['pay_key']
|
32
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: verifi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthew Wilson
|