proxypay 0.1.8 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46197a68ddc393acbb36ea650f779f234e108c8b
4
- data.tar.gz: f08dc15e9f23861fd0ba0a45355ede676638fd6f
3
+ metadata.gz: 84da202c215d66d3871e191eb0a1ead3924a81cf
4
+ data.tar.gz: 4eb61628abb3c43b97ba87b9274d55203633268d
5
5
  SHA512:
6
- metadata.gz: 5f3cd97f4ffdb5220173feceda72921eb309ade4c9cc2810623c0100c100e0692fd619c1ec8e8f985959d47c6e2145ce47636eefcb466281ed334d9ce1bfef76
7
- data.tar.gz: 12f494f5e1f3ee11bc852d99944c675490ff53b36fb24962d11b4ec369d0b061b6489471dab2d256f1f8fb8649835a79829c42a3a8f3cd0b6f31477e21b85bfa
6
+ metadata.gz: 332874d31b499eedfde04910d6eb909caae1b4e0a4ec0969f4d4e392ccdffd0dd3976b21fe5ed125c39657705f9ca0090654f531276062d4adfeea8cad3a431b
7
+ data.tar.gz: b2cd27e3a75c3b940168d28ca7373047e7d79e196af87df2a13f5e4a705f504be4b5cf872ae192fb5e4184df0917db4648c1a1b898829272dc8d0ef6eb067287
data/README.md CHANGED
@@ -63,7 +63,7 @@ Proxypay.new_payment("OcSLBANU4tjRi9gfW5VUcMqkvzL")
63
63
 
64
64
  ## Acknowledge a payment by passing his ID for an specific API KEY
65
65
  api_key = "OcSLBANU4tjRi9gfW5VUcMqkvzLOcSLBANU4tjRi9gfW5VUcMqkvzL"
66
- Proxypay.new_payment("OcSLBANU4tjRi9gfW5VUcMqkvzL", api_key)
66
+ Proxypay.other_new_payment("OcSLBANU4tjRi9gfW5VUcMqkvzL", api_key)
67
67
 
68
68
  ## Acknowledge multiple payments by passing and array of ID's
69
69
  ids = ["OcSLBANU4tjRi9gfW5VUcMqkvzL", "EcJLBANU4trUi8gfM6MOcMqkvzH","VxELBANU4tjRi9gfW5VUcMqkvzZ"]
@@ -72,7 +72,7 @@ Proxypay.new_payments(ids)
72
72
 
73
73
  ## Help and Docs
74
74
  - [ProxyPay API](https://developer.proxypay.co.ao)
75
- - [RDOC](http://www.rubydoc.info/gems/proxypay/0.1.8)
75
+ - [RDOC](http://www.rubydoc.info/gems/proxypay/0.1.9)
76
76
 
77
77
  ## Development
78
78
  - You can fork the project
@@ -1,3 +1,3 @@
1
1
  module Proxypay
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
data/lib/proxypay.rb CHANGED
@@ -55,7 +55,13 @@ module Proxypay
55
55
  end
56
56
 
57
57
  # Acknowledge a payment by submitting his ID
58
- def self.new_payment(id, api_key)
58
+ def self.new_payment(id)
59
+ options = {:basic_auth => authenticate}
60
+ delete("/events/payments/#{id}", options).parsed_response
61
+ end
62
+
63
+ # Acknowledge a payment by submitting his ID and the API KEY
64
+ def self.other_new_payment(id, api_key)
59
65
  auth = {
60
66
  username:"api",
61
67
  password:"#{api_key}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxypay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Maziano