pesapal 1.1.0 → 1.2.0
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/CHANGELOG.md +10 -0
- data/README.md +9 -4
- data/lib/pesapal/merchant/post.rb +1 -0
- data/lib/pesapal/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: 417c91efd39cf8a739a0869680ba67e3926f924a
|
|
4
|
+
data.tar.gz: 28268660a0ddfc0795269c5865487762f755050e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13dbf2a7c26cf350980808df0d384054245331d68b6dab29fc595f4f6d29b86a7eb3e69eeaa79f8353954d4c2e3726ec9f527e1c8c89180b76407fc05a5845d7
|
|
7
|
+
data.tar.gz: e0de54ad41503932cbe7fc5b623b64d4cf83f5a8c84534679f28e61d9e197b4af7f8e73679ba34b2c06192d2981496cd17622833fe00d48d99152c5a32f3cb4d
|
data/CHANGELOG.md
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
data/lib/pesapal/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2013-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|