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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f21b7c99c550fef447b2f0d3016c8f8984c84d5
4
- data.tar.gz: cd265b48a531064d8435275f78676e06a4f43f70
3
+ metadata.gz: 31d975aaa33d91aecb82194489028be86da41342
4
+ data.tar.gz: bce1a4db67609e441fb0547a09a0bcf77bbf1f6e
5
5
  SHA512:
6
- metadata.gz: 2bb68ec00fae4ba016f0ef44421aa9bbe52034a6c097783d52357fe41f2c33c1dc24ae112fb0ee3108e43b9c29fc24e76dd87bc6d6bea575fafae42a6e72ef57
7
- data.tar.gz: 683304821bb2e11ca9c67591f947ee522c61bd1671f014f5c4cc0acd2113c40743faa6f43553024b29728825584208825a282db33d91d45de1b02d5ba9809a11
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
- `sale` - `PriorityPayoutGateway::Transaction.new.sale ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", amount: 22.30, email: "john@doe.com", country: "US"`
35
- `authorize` - `PriorityPayoutGateway::Transaction.new.authorize ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", amount: 22.25, email: "john@doe.com", country: "US" `
36
- `capture` - `PriorityPayoutGateway::Transaction.new.capture transactionid: 3261830498, amount: 22.30 `
37
- `void` - `PriorityPayoutGateway::Transaction.new.void transactionid: 3261830498, amount: 22.30 `
38
- `refund` - `PriorityPayoutGateway::Transaction.new.refund transactionid: 3261844010, amount: 5 `
39
- `update` - `PriorityPayoutGateway::Transaction.new.update transactionid: 3261844010, first_name: "joe" `
40
- `find` - Implements Query Api - `PriorityPayoutGateway::Transaction.new.find transactionid: 3261844010 `
41
- `credit` - `PriorityPayoutGateway::Transaction.new.credit ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", amount: 22.30, email: "john@doe.com", country: "US" `
42
- `validate` - `PriorityPayoutGateway::Transaction.new.validate ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe", email: "john@doe.com", country: "US" `
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
- `create` - `PriorityPayoutGateway::CustomerVault.new.create ccnumber: '4111111111111111', ccexp: "0219", first_name: "John", last_name: "Doe"`
46
- `update` - `PriorityPayoutGateway::CustomerVault.new.update customer_vault_id: 481397475, ccnumber: '4111111111111111', ccexp: "0220", first_name: "Jane", last_name: "Doe"`
47
- `destroy` - `PriorityPayoutGateway::CustomerVault.new.destroy customer_vault_id: 481397475`
48
- `find` - Implements Query Api - `PriorityPayoutGateway::CustomerVault.new.find customer_vault_id: 481397475`
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
- `create_plan` - `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`
52
- `add_subscription_to_plan` - `PriorityPayoutGateway::Recurring.new.add_subscription_to_plan plan_id: "test-1", customer_vault_id: 664625840`
53
- `add_custom_subscription` - `PriorityPayoutGateway::Recurring.new.add_custom_subscription plan_amount: 1.99, month_frequency: 1, day_of_month: 1, customer_vault_id: 664625840`
54
- `update_subscription` - `PriorityPayoutGateway::Recurring.new.update_subscription subscription_id: "3261766445", first_name: "John", last_name: "Doe"`
55
- `delete_subscription` - `PriorityPayoutGateway::Recurring.new.delete_subscription subscription_id: "3261766445"`
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[:order_id] = options[:order_id]
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]
@@ -1,3 +1,3 @@
1
1
  module PriorityPayoutGateway
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
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.1
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-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler