README.md in pesapal-1.2.1 vs README.md in pesapal-1.2.2
- old
+ new
@@ -114,18 +114,18 @@
should have it already in place with some default values. Feel free to change
them appropriately.
```yaml
development:
- callback_url: 'http://0.0.0.0:3000/pesapal/callback'
- consumer_key: '<YOUR_CONSUMER_KEY>'
- consumer_secret: '<YOUR_CONSUMER_SECRET>'
+ callback_url: 'http://0.0.0.0:3000/pesapal/callback'
+ consumer_key: '<YOUR_CONSUMER_KEY>'
+ consumer_secret: '<YOUR_CONSUMER_SECRET>'
production:
- callback_url: 'http://1.2.3.4:3000/pesapal/callback'
- consumer_key: '<YOUR_CONSUMER_KEY>'
- consumer_secret: '<YOUR_CONSUMER_SECRET>'
+ callback_url: 'http://1.2.3.4:3000/pesapal/callback'
+ consumer_key: '<YOUR_CONSUMER_KEY>'
+ consumer_secret: '<YOUR_CONSUMER_SECRET>'
```
_Ps: Immediately after initializing the Pesapal object, some people might find
it peculiar that the `pesapal.config` is an empty hash i.e. `{}`. Don't worry.
If you have set up the `pesapal.yml` correctly, any attempt to run any of the
@@ -143,10 +143,10 @@
```ruby
#set order details
pesapal.order_details = { :amount => 1000,
:description => 'this is the transaction description',
:type => 'MERCHANT',
- :reference => 808-707-606,
+ :reference => '808-707-606',
:first_name => 'Swaleh',
:last_name => 'Mdoe',
:email => 'user@example.com',
:phonenumber => '+254722222222',
:currency => 'KES'