pesapal 1.1.0 → 1.2.0

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: 0f47532ca078e1d0e6b8c6fb305548d86266ce79
4
- data.tar.gz: 53f602f715e320d6a71bdad0bca49d1fd68a1f75
3
+ metadata.gz: 417c91efd39cf8a739a0869680ba67e3926f924a
4
+ data.tar.gz: 28268660a0ddfc0795269c5865487762f755050e
5
5
  SHA512:
6
- metadata.gz: ab791fe5a5e3f889cbb2f40ff13aca5dc707bde0b9eb0e1db82a85d5dff0d103027a95de8d144c37081760382f41abd77649eb057a6cd46333a10e0b308e7aef
7
- data.tar.gz: 32183c04ac5bfd5faa4dd85e607d19105d7fbffb1ff897ed23b8434af64f780ae5afb1dec5fb8f95b50b8b328ac880b101677a850ce6a0e68898169363bb4fce
6
+ metadata.gz: 13dbf2a7c26cf350980808df0d384054245331d68b6dab29fc595f4f6d29b86a7eb3e69eeaa79f8353954d4c2e3726ec9f527e1c8c89180b76407fc05a5845d7
7
+ data.tar.gz: e0de54ad41503932cbe7fc5b623b64d4cf83f5a8c84534679f28e61d9e197b4af7f8e73679ba34b2c06192d2981496cd17622833fe00d48d99152c5a32f3cb4d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v1.2.0
5
+ ------
6
+
7
+ * Make a provision for different currency billing using ISO codes
8
+
9
+ v1.1.0
10
+ ------
11
+
12
+ * Add IPN listener
13
+
4
14
  v1.0.0
5
15
  ------
6
16
 
data/README.md CHANGED
@@ -10,11 +10,15 @@ can focus on what matters. _Building awesome_.
10
10
  This gem, in a nutshell, allows you to easily post an order, query payment
11
11
  status and fetch payment details.
12
12
 
13
- If you are [feeling generous and want to contribute, feel free][9].
13
+ In case you are having any issues using this gem please **_do not_** email me
14
+ directly, I'd rather you submit [issues (and even requests) here][6]. This way,
15
+ other people get to share in the conversation that would have been private and
16
+ out of their reach.
14
17
 
15
- Submit [issues and requests here][6] and [find all the releases here][12].
18
+ The gem should be [up on RubyGems.org][7], it's [accompanying RubyDoc reference
19
+ here][13] and [all the releases here][12].
16
20
 
17
- The gem should be [up on RubyGems.org][7] and it's [accompanying RubyDoc reference here][13].
21
+ If you are [feeling generous and want to contribute, feel free][9].
18
22
 
19
23
  _Ps: No 3rd party oAuth library dependencies, it handles all the oAuth flows on
20
24
  it's own so your app is one dependency less._
@@ -137,7 +141,8 @@ pesapal.order_details = { :amount => 1000,
137
141
  :first_name => 'Swaleh',
138
142
  :last_name => 'Mdoe',
139
143
  :email => 'user@example.com',
140
- :phonenumber => '+254722222222'
144
+ :phonenumber => '+254722222222',
145
+ :currency => 'KES'
141
146
  }
142
147
  ```
143
148
 
@@ -20,6 +20,7 @@ module Pesapal
20
20
  post_xml.concat "LastName=\"#{details[:last_name]}\" "
21
21
  post_xml.concat "Email=\"#{details[:email]}\" "
22
22
  post_xml.concat "PhoneNumber=\"#{details[:phonenumber]}\" "
23
+ post_xml.concat "Currency=\"#{details[:currency]}\" "
23
24
  post_xml.concat 'xmlns="http://www.pesapal.com" />'
24
25
 
25
26
  encoder = HTMLEntities.new(:xhtml1)
@@ -1,3 +1,3 @@
1
1
  module Pesapal
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pesapal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Job King'ori Maina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-14 00:00:00.000000000 Z
11
+ date: 2013-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler