pesamoni_ruby 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/DefaultApi.md +256 -44
- data/lib/pesamoni_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 882fb8e62310774840e817c99adc81393741be564169ef0efec8eb64344f9a21
|
4
|
+
data.tar.gz: b29d3ef6832e361e916b80b4993e21fd499106eb3e04a174b8a362aace3620a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c94e7b1324e81fc47e0b9c5ad51440a97ddd005189ffc5ed49d8766d01f8fda164cc3c176a0ccf1e992c24ef6267b39dab630be149b51378336a7519eb8c1f
|
7
|
+
data.tar.gz: cbf41987e1497ed630d33df6730a169fc4f9c0c63355fd3bdbb45e043959786f73a4c0c0ca804cfd05290981f561c10e62340108fe00f596a9c50da621c04559
|
data/docs/DefaultApi.md
CHANGED
@@ -1,52 +1,233 @@
|
|
1
|
-
# Pesamoni
|
1
|
+
# Pesamoni Ruby library
|
2
2
|
|
3
|
-
|
3
|
+
The Pesamoni Pesaway gem provides integration access to Pesamoni services. You can view API features by clicking the link https://pesamoni.com/developers#features-intro.
|
4
4
|
|
5
|
-
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**transactions_post**](DefaultApi.md#transactions_post) | **POST** /transactions |
|
5
|
+
## Installation
|
8
6
|
|
7
|
+
```ruby
|
8
|
+
gem install pesamoni_ruby
|
9
|
+
```
|
10
|
+
|
11
|
+
Or add to your Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'pesamoni_ruby'
|
15
|
+
```
|
9
16
|
|
10
|
-
|
11
|
-
> InlineResponse200 transactions_post(method, opts)
|
17
|
+
And then execute:
|
12
18
|
|
19
|
+
$ bundle
|
13
20
|
|
21
|
+
## Quick Start Example
|
14
22
|
|
15
|
-
|
23
|
+
The SDK needs to be instantiated using your API username and API password, which you can get from your [Pesamoni business account](https://pesamoni.com/business/dash).
|
24
|
+
|
25
|
+
You can register a new Pesamoni business account [Here](https://pesamoni.com/businesses/sign_up) or Sign in [Here](https://pesamoni.com/businesses/sign_in)
|
16
26
|
|
17
|
-
### Example
|
18
27
|
```ruby
|
19
|
-
#
|
28
|
+
# Load the gem
|
20
29
|
require 'pesamoni_ruby'
|
21
|
-
# setup authorization
|
22
|
-
Pesamoni.configure do |config|
|
23
|
-
# Configure API key authorization: apipassword
|
24
|
-
config.api_key['apipassword'] = 'YOUR API KEY'
|
25
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
-
#config.api_key_prefix['apipassword'] = 'Bearer'
|
27
30
|
|
31
|
+
# Setup authorization
|
32
|
+
Pesamoni.configure do |config|
|
33
|
+
# Configure API key authorization: apipassword
|
28
34
|
# Configure API key authorization: apiusername
|
29
35
|
config.api_key['apiusername'] = 'YOUR API KEY'
|
30
36
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
31
37
|
#config.api_key_prefix['apiusername'] = 'Bearer'
|
38
|
+
config.api_key['apipassword'] = 'YOUR API KEY'
|
39
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
40
|
+
#config.api_key_prefix['apipassword'] = 'Bearer'
|
32
41
|
end
|
33
42
|
|
34
|
-
api_instance =
|
43
|
+
api_instance = Pesamoni::DefaultApi.new
|
44
|
+
|
45
|
+
```
|
35
46
|
|
36
|
-
|
47
|
+
### Accepting funds from mobile subscriber
|
48
|
+
```ruby
|
49
|
+
# you can either use method acreceive or acreceivekeac as explained below
|
50
|
+
# method acreceive
|
51
|
+
# This method enables you receive funds from a mobile subscriber in your registered native currency on the Pesamoni platform. If for instance your account is registered in currency UGX and you request money from a Kenyan number e.g 254712346789, a Pesamoni exchange rate will automatically be applied and money deposited into your Pesamoni wallet in your default currency
|
52
|
+
# method acreceivekeac
|
53
|
+
# You can have two native currencies on your Pesamoni account on request. If you would like to deposit funds from a mobile subscriber to your Kenyan Pesamoni wallet account then this is the method you use.
|
54
|
+
# example
|
55
|
+
method = 'acreceive'
|
37
56
|
|
38
57
|
opts = {
|
39
58
|
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
40
59
|
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
60
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
61
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
62
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
63
|
+
}
|
64
|
+
|
65
|
+
begin
|
66
|
+
result = api_instance.transactions_post(method, opts)
|
67
|
+
p result
|
68
|
+
rescue Pesamoni::ApiError => e
|
69
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
73
|
+
### Sending funds to a mobile subscriber
|
74
|
+
|
75
|
+
```ruby
|
76
|
+
# you can either use method acreceive or acreceivekeac as explained below
|
77
|
+
# acsend
|
78
|
+
# This method enables you send funds to a mobile subscriber in your registered native currency on the Pesamoni platform. If for instance your account is registered in currency UGX and you send money to a kenyan number e.g 254712346789, a Pesamoni exchange rate will automatically be applied and the equivalent exchange amount deducted from your Pesamoni wallet in your default currency
|
79
|
+
# acsendkeac
|
80
|
+
# You can have two native currencies on your Pesamoni account on request. If you would like to send funds from your Pesamoni wallet to a mobile subscriber from your Kenyan Pesamoni wallet account then this is the method you use.
|
81
|
+
|
82
|
+
method = 'acsend'
|
83
|
+
|
84
|
+
opts = {
|
85
|
+
amount: 'amount_example', # String | Enter the amount you would like to execute the above method for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
86
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
87
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
88
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
89
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
90
|
+
}
|
91
|
+
|
92
|
+
begin
|
93
|
+
result = api_instance.transactions_post(method, opts)
|
94
|
+
p result
|
95
|
+
rescue Pesamoni::ApiError => e
|
96
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Accepting Card Payments e.g VISA/MASTERCARD
|
101
|
+
|
102
|
+
```ruby
|
103
|
+
|
104
|
+
method = 'acsend'
|
105
|
+
|
106
|
+
opts = {
|
107
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
41
108
|
holdername: 'holdername_example', # String | Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
42
109
|
cardnumber: 'cardnumber_example', # String | Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
43
110
|
cvv: 'cvv_example', # String | Enter the Visa/MasterCard cvv<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
44
111
|
exp: 'exp_example', # String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
45
112
|
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
113
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
114
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
115
|
+
}
|
116
|
+
|
117
|
+
begin
|
118
|
+
result = api_instance.transactions_post(method, opts)
|
119
|
+
p result
|
120
|
+
rescue Pesamoni::ApiError => e
|
121
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
### Bank transfers
|
128
|
+
|
129
|
+
```ruby
|
130
|
+
# you can either use method acsendbank or acsendbankeac as explained below
|
131
|
+
# acsendbank
|
132
|
+
# This method enables you send funds to a users bank account. A Pesamoni exchange rate will automatically be applied and the equivalent exchange amount deposited to your bank account dependent on your default currency.
|
133
|
+
# acsendbankeac
|
134
|
+
# You can have two native currencies on your Pesamoni account on request. If you would like to send funds from your Pesamoni wallet to a mobile subscriber from your Kenyan Pesamoni wallet account then this is the method you use.
|
135
|
+
|
136
|
+
method = 'acsendbank'
|
137
|
+
|
138
|
+
opts = {
|
139
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
140
|
+
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
46
141
|
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this transaction<p style=\"color:red\">This method applies for request method <b>paybills</b></p>
|
47
142
|
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
48
143
|
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
49
144
|
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
145
|
+
}
|
146
|
+
|
147
|
+
begin
|
148
|
+
result = api_instance.transactions_post(method, opts)
|
149
|
+
p result
|
150
|
+
rescue Pesamoni::ApiError => e
|
151
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
152
|
+
end
|
153
|
+
```
|
154
|
+
|
155
|
+
### Sending Airtime to a mobile subsriber
|
156
|
+
|
157
|
+
```ruby
|
158
|
+
method = 'sendairtime'
|
159
|
+
|
160
|
+
opts = {
|
161
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
162
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
163
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
164
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
165
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
166
|
+
}
|
167
|
+
|
168
|
+
begin
|
169
|
+
result = api_instance.transactions_post(method, opts)
|
170
|
+
p result
|
171
|
+
rescue Pesamoni::ApiError => e
|
172
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
173
|
+
end
|
174
|
+
```
|
175
|
+
### Sending to a Pesamoni users wallet
|
176
|
+
|
177
|
+
```ruby
|
178
|
+
method = 'pesab2c'
|
179
|
+
|
180
|
+
opts = {
|
181
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
182
|
+
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this transaction<p style=\"color:red\">This method applies for request method <b>paybills</b></p>
|
183
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
184
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
185
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
186
|
+
}
|
187
|
+
|
188
|
+
begin
|
189
|
+
result = api_instance.transactions_post(method, opts)
|
190
|
+
p result
|
191
|
+
rescue Pesamoni::ApiError => e
|
192
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
193
|
+
end
|
194
|
+
|
195
|
+
```
|
196
|
+
|
197
|
+
### Accepting funds from a Pesamoni user
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
method = 'pesac2b'
|
201
|
+
|
202
|
+
opts = {
|
203
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
204
|
+
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this transaction<p style=\"color:red\">This method applies for request method <b>paybills</b></p>
|
205
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
206
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
207
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
208
|
+
}
|
209
|
+
|
210
|
+
begin
|
211
|
+
result = api_instance.transactions_post(method, opts)
|
212
|
+
p result
|
213
|
+
rescue Pesamoni::ApiError => e
|
214
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
215
|
+
end
|
216
|
+
|
217
|
+
```
|
218
|
+
|
219
|
+
### Paying Utility Bills
|
220
|
+
|
221
|
+
```ruby
|
222
|
+
method = 'paybills'
|
223
|
+
|
224
|
+
opts = {
|
225
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
226
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
227
|
+
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
228
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
229
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
230
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
50
231
|
bouquet: 'bouquet_example', # String | Enter the bouquet or package you would like to pay for<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
51
232
|
payoption: 'payoption_example', # String | Enter your prefered payment option<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
52
233
|
meternumber: 'meternumber_example' # String | Enter the meter number for the intended payment<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
@@ -55,43 +236,74 @@ opts = {
|
|
55
236
|
begin
|
56
237
|
result = api_instance.transactions_post(method, opts)
|
57
238
|
p result
|
58
|
-
rescue
|
239
|
+
rescue Pesamoni::ApiError => e
|
59
240
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
60
241
|
end
|
61
242
|
```
|
62
243
|
|
63
|
-
###
|
244
|
+
### Checking transaction status
|
245
|
+
|
246
|
+
```ruby
|
247
|
+
method = 'transactionstatus'
|
248
|
+
|
249
|
+
opts = {
|
250
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
251
|
+
}
|
252
|
+
|
253
|
+
begin
|
254
|
+
result = api_instance.transactions_post(method, opts)
|
255
|
+
p result
|
256
|
+
rescue Pesamoni::ApiError => e
|
257
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
258
|
+
end
|
259
|
+
```
|
260
|
+
|
261
|
+
### Checking your Pesamoni Business Wallet Balance
|
262
|
+
|
263
|
+
```ruby
|
264
|
+
method = 'acbalance'
|
265
|
+
|
266
|
+
opts = {
|
267
|
+
# No parameters are required here
|
268
|
+
}
|
269
|
+
```
|
270
|
+
|
271
|
+
### Sending SMS to a mobile subscriber
|
272
|
+
|
273
|
+
```ruby
|
274
|
+
|
275
|
+
opts = {
|
276
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
277
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
278
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
279
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
280
|
+
message: 'message_example'
|
281
|
+
# String | Enter your message <p style=\"color:red\">This method applies for request methods <b>sendsms</b></p>
|
282
|
+
}
|
283
|
+
|
284
|
+
begin
|
285
|
+
result = api_instance.transactions_post(method, opts)
|
286
|
+
p result
|
287
|
+
rescue Pesamoni::ApiError => e
|
288
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
289
|
+
end
|
290
|
+
```
|
64
291
|
|
65
|
-
|
66
|
-
------------- | ------------- | ------------- | -------------
|
67
|
-
**method** | **String**| Enter a request method. To check for request methods <a href=''>click here</a> |
|
68
|
-
**amount** | **String**| Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p> | [optional]
|
69
|
-
**mobile** | **String**| Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p> | [optional]
|
70
|
-
**holdername** | **String**| Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p> | [optional]
|
71
|
-
**cardnumber** | **String**| Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p> | [optional]
|
72
|
-
**cvv** | **String**| Enter the Visa/MasterCard cvv<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p> | [optional]
|
73
|
-
**exp** | **String**| Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p> | [optional]
|
74
|
-
**currency** | **String**| Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p> | [optional]
|
75
|
-
**account** | **String**| Enter the Pesamoni account you would like to use for this transaction<p style=\"color:red\">This method applies for request method <b>paybills</b></p> | [optional]
|
76
|
-
**reference** | **String**| Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p> | [optional]
|
77
|
-
**genericmsg** | **String**| Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p> | [optional]
|
78
|
-
**token** | **String**| Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p> | [optional]
|
79
|
-
**bouquet** | **String**| Enter the bouquet or package you would like to pay for<p style=\"color:red\">This method applies for request methods <b>paybills</b></p> | [optional]
|
80
|
-
**payoption** | **String**| Enter your prefered payment option<p style=\"color:red\">This method applies for request methods <b>paybills</b></p> | [optional]
|
81
|
-
**meternumber** | **String**| Enter the meter number for the intended payment<p style=\"color:red\">This method applies for request methods <b>paybills</b></p> | [optional]
|
292
|
+
## Documentation for API Endpoints
|
82
293
|
|
83
|
-
|
294
|
+
All Endpoint URIs are relative to https://pesamoni.com/api/live/v1/transactions
|
84
295
|
|
85
|
-
|
296
|
+
## Development
|
86
297
|
|
87
|
-
|
298
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
88
299
|
|
89
|
-
|
300
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
90
301
|
|
91
|
-
|
302
|
+
## Contributing
|
92
303
|
|
93
|
-
|
94
|
-
- **Accept**: Not defined
|
304
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Pesamoni.
|
95
305
|
|
306
|
+
## License
|
96
307
|
|
308
|
+
The gem is available as open source under the terms of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
|
97
309
|
|