Skip to content

Commit

Permalink
Merge pull request #57 from omise/Change-Omise-Opn
Browse files Browse the repository at this point in the history
Change Omise to Opn Payments
  • Loading branch information
muthuswamyopn authored Dec 26, 2023
2 parents ea20a55 + 23e738c commit ee43b7c
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 ee43b7c

Please sign in to comment.