Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
muthuswamyopn authored Dec 22, 2023
1 parent ea20a55 commit 23e738c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require "omise"
Omise.api_key = "skey_test_xxxxxxxxxxxxxxxxxxx"
```

After you have implemented [Omise.js](https://www.omise.co/omise-js) on your frontend you can charge the card by passing the token generated by Omise.js into the `card` attribute.
After you have implemented [Omise.js](https://docs.opn.ooo/omise-js) on your frontend, you can charge the card by passing the token generated by Omise.js into the `card` attribute.

```ruby
# Charge 1000.00 THB
Expand All @@ -51,12 +51,12 @@ else
end
```

You can check the complete documentation at [omise.co/docs](https://omise.co/docs).
You can check the complete [documentation](https://docs.opn.ooo/).

### API version

In case you want to enforce API version the application use, you can specify it
by setting the `api_version`. The version specified by this settings will override
To enforce the API version that the application must use, specify it
by setting `api_version`. The version specified by this settings will override
the version setting in your account. This is useful if you have multiple
environments with different API versions (e.g. development on the latest but
production on the older version).
Expand All @@ -65,13 +65,13 @@ production on the older version).
Omise.api_version = "2019-05-29"
```

It is highly recommended to set this version to the current version you're using.
It is highly recommended to set this version to the current version that you are using.

### Logging

To enable logging you can set `Omise.logger` with a Ruby logger. All HTTP requests and responses will be logged.
To enable logging, you can set `Omise.logger` with a Ruby logger. All HTTP requests and responses will be logged.

To disable logging, just configure `Omise.logger` to `nil`. Default is disabled.
To disable logging, configure `Omise.logger` to `nil`. Default is disabled.

An example configuring Rails logger:

Expand Down

0 comments on commit 23e738c

Please sign in to comment.