priority_payout_gateway 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/README.md +36 -5
- data/lib/priority_payout_gateway/version.rb +1 -1
- data/priority_payout_gateway.gemspec +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: 4f21b7c99c550fef447b2f0d3016c8f8984c84d5
|
4
|
+
data.tar.gz: cd265b48a531064d8435275f78676e06a4f43f70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bb68ec00fae4ba016f0ef44421aa9bbe52034a6c097783d52357fe41f2c33c1dc24ae112fb0ee3108e43b9c29fc24e76dd87bc6d6bea575fafae42a6e72ef57
|
7
|
+
data.tar.gz: 683304821bb2e11ca9c67591f947ee522c61bd1671f014f5c4cc0acd2113c40743faa6f43553024b29728825584208825a282db33d91d45de1b02d5ba9809a11
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
|
1
|
+
[](https://badge.fury.io/rb/priority_payout_gateway)
|
2
2
|
|
3
|
-
|
3
|
+
# Priority Payout Gateway
|
4
4
|
|
5
|
-
|
5
|
+
This gem implements the Priority Payout Gateway (NMI) Direct Post & Query API sets as documented here: https://secure.prioritypayoutgateway.com/merchants/resources/integration/integration_portal.php
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -22,7 +22,38 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
Set your username & password in an environment variable in your application or in a `.env` file directly from the gem:
|
26
|
+
```
|
27
|
+
PPG_USERNAME = my_user
|
28
|
+
PPG_PASSWORD = my_pass
|
29
|
+
```
|
30
|
+
|
31
|
+
There are three API sets:
|
32
|
+
|
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" `
|
43
|
+
|
44
|
+
### 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`
|
49
|
+
|
50
|
+
### 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"`
|
56
|
+
|
26
57
|
|
27
58
|
## Development
|
28
59
|
|
@@ -32,7 +63,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
63
|
|
33
64
|
## Contributing
|
34
65
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
66
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/beneggett/priority_payout_gateway.
|
36
67
|
|
37
68
|
|
38
69
|
## License
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
|
14
14
|
spec.summary = %q{ Priority Payout Gateway (NMI) Api }
|
15
15
|
spec.description = %q{ Ruby wrapper for interacting with the Priority Payout Gateway. Priority Payout Gateway is a white label gateway for NMI. }
|
16
|
-
spec.homepage = "https://github.com/beneggett/
|
16
|
+
spec.homepage = "https://github.com/beneggett/priority_payout_gateway"
|
17
17
|
|
18
18
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
19
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Eggett
|
@@ -236,7 +236,7 @@ files:
|
|
236
236
|
- lib/priority_payout_gateway/transaction.rb
|
237
237
|
- lib/priority_payout_gateway/version.rb
|
238
238
|
- priority_payout_gateway.gemspec
|
239
|
-
homepage: https://github.com/beneggett/
|
239
|
+
homepage: https://github.com/beneggett/priority_payout_gateway
|
240
240
|
licenses: []
|
241
241
|
metadata:
|
242
242
|
allowed_push_host: https://rubygems.org
|