priority_payout_gateway 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +88 -18
- data/lib/priority_payout_gateway/api.rb +1 -1
- data/lib/priority_payout_gateway/version.rb +1 -1
- 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: 31d975aaa33d91aecb82194489028be86da41342
|
4
|
+
data.tar.gz: bce1a4db67609e441fb0547a09a0bcf77bbf1f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 294e5b7cf0d24e17d66be93df6a54d8d0ff58a48370bf3d9c2a50799c7eb8d44396d62a1cebb06542861f141a8914c9c05f922545d5529cb6cbd873695a8fa35
|
7
|
+
data.tar.gz: 924f6f7e9e68cf2e7ee31a8b88528314d82c6f4a61789a24bd829081417c4c56529ec526bf6698a4e613885546a38b18189249371dd976407261f871ac1873a3
|
data/README.md
CHANGED
@@ -31,28 +31,98 @@ PPG_PASSWORD = my_pass
|
|
31
31
|
There are three API sets:
|
32
32
|
|
33
33
|
### Transaction
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
34
|
+
Sale
|
35
|
+
```
|
36
|
+
PriorityPayoutGateway::Transaction.new.sale ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", amount: 22.30, email: "john@doe.com", country: "US"
|
37
|
+
```
|
38
|
+
|
39
|
+
Authorize
|
40
|
+
```
|
41
|
+
PriorityPayoutGateway::Transaction.new.authorize ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", amount: 22.25, email: "john@doe.com", country: "US"
|
42
|
+
```
|
43
|
+
|
44
|
+
Capture
|
45
|
+
```
|
46
|
+
PriorityPayoutGateway::Transaction.new.capture transactionid: 3261830498, amount: 22.30
|
47
|
+
```
|
48
|
+
|
49
|
+
Void
|
50
|
+
```
|
51
|
+
PriorityPayoutGateway::Transaction.new.void transactionid: 3261830498, amount: 22.30
|
52
|
+
```
|
53
|
+
|
54
|
+
Refund
|
55
|
+
```
|
56
|
+
PriorityPayoutGateway::Transaction.new.refund transactionid: 3261844010, amount: 5
|
57
|
+
```
|
58
|
+
|
59
|
+
Update
|
60
|
+
```
|
61
|
+
PriorityPayoutGateway::Transaction.new.update transactionid: 3261844010, first_name: "joe"
|
62
|
+
```
|
63
|
+
|
64
|
+
Find Implements Query Api -
|
65
|
+
```
|
66
|
+
PriorityPayoutGateway::Transaction.new.find transactionid: 3261844010
|
67
|
+
```
|
68
|
+
|
69
|
+
Credit
|
70
|
+
```
|
71
|
+
PriorityPayoutGateway::Transaction.new.credit ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", amount: 22.30, email: "john@doe.com", country: "US"
|
72
|
+
```
|
73
|
+
|
74
|
+
Validate
|
75
|
+
```
|
76
|
+
PriorityPayoutGateway::Transaction.new.validate ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", email: "john@doe.com", country: "US"
|
77
|
+
```
|
43
78
|
|
44
79
|
### Customer Vault
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
80
|
+
Create
|
81
|
+
```
|
82
|
+
PriorityPayoutGateway::CustomerVault.new.create ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe"
|
83
|
+
```
|
84
|
+
|
85
|
+
Update
|
86
|
+
```
|
87
|
+
PriorityPayoutGateway::CustomerVault.new.update customer_vault_id: 481397475, ccnumber: '4111111111111111', ccexp: "0220", first_name: "Jane", last_name: "Doe"
|
88
|
+
```
|
89
|
+
|
90
|
+
Destroy
|
91
|
+
```
|
92
|
+
PriorityPayoutGateway::CustomerVault.new.destroy customer_vault_id: 481397475
|
93
|
+
```
|
94
|
+
|
95
|
+
Find Implements Query Api -
|
96
|
+
```
|
97
|
+
PriorityPayoutGateway::CustomerVault.new.find customer_vault_id: 481397475
|
98
|
+
```
|
99
|
+
|
49
100
|
|
50
101
|
### Recurring
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
102
|
+
Create Plan
|
103
|
+
```
|
104
|
+
PriorityPayoutGateway::Recurring.new.create_plan plan_amount: 1.99, plan_name: "Test 1.99", plan_id: "test-1", month_frequency: 1, day_of_month: 1
|
105
|
+
```
|
106
|
+
|
107
|
+
Add Subscription To Plan
|
108
|
+
```
|
109
|
+
PriorityPayoutGateway::Recurring.new.add_subscription_to_plan plan_id: "test-1", customer_vault_id: 664625840
|
110
|
+
```
|
111
|
+
|
112
|
+
Add Custom Subscription
|
113
|
+
```
|
114
|
+
PriorityPayoutGateway::Recurring.new.add_custom_subscription plan_amount: 1.99, month_frequency: 1, day_of_month: 1, customer_vault_id: 664625840
|
115
|
+
```
|
116
|
+
|
117
|
+
Update Subscription
|
118
|
+
```
|
119
|
+
PriorityPayoutGateway::Recurring.new.update_subscription subscription_id: "3261766445", first_name: "John", last_name: "Doe"
|
120
|
+
```
|
121
|
+
|
122
|
+
Delete Subscription
|
123
|
+
```
|
124
|
+
PriorityPayoutGateway::Recurring.new.delete_subscription subscription_id: "3261766445"
|
125
|
+
```
|
56
126
|
|
57
127
|
|
58
128
|
## Development
|
@@ -137,7 +137,7 @@ module PriorityPayoutGateway
|
|
137
137
|
query[:sec_code] = options[:sec_code] # 'PPD', 'WEB', 'TEL', or 'CCD'
|
138
138
|
|
139
139
|
# Optional order fields
|
140
|
-
query[:
|
140
|
+
query[:orderid] = options[:orderid]
|
141
141
|
query[:order_description] = options[:order_description]
|
142
142
|
query[:order_date] = options[:order_date]
|
143
143
|
query[:ponumber] = options[:ponumber]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: priority_payout_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|