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.
Files changed (3) hide show
  1. data/HISTORY.txt +5 -0
  2. data/README.txt +32 -0
  3. metadata +3 -3
@@ -1,3 +1,8 @@
1
+ == 0.0.2 2010-05-27
2
+
3
+ * 1 minor enhancement:
4
+ * Adding README.txt with basic usage
5
+
1
6
  == 0.0.1 2010-05-19
2
7
 
3
8
  * 1 major enhancement:
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew Wilson