Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[![Maven Central][5]][6] [![Github Actions][0]][1]

`omise-java` provides a set of Java bindings to the [Opn Payments REST API][2]. Please contact
[support@opn.ooo][3] if you have any questions regarding this
`omise-java` provides a set of Java bindings to the [Omise REST API][2]. Please contact
[support@omise.co][3] if you have any questions regarding this
library and the functionality it provides.

## Security Warning
Expand Down Expand Up @@ -110,7 +110,7 @@ omise-java-4.0.0-all.jar

## Usage

Obtain a set of API keys from the [Opn Payments Dashboard][8] and create a `Client` object:
Obtain a set of API keys from the [Omise Dashboard][8] and create a `Client` object:

```java
Client client = new Client.Builder()
Expand Down Expand Up @@ -154,8 +154,8 @@ On February 23, 2023, we started redirecting users from search.maven.org to cent

[0]: https://github.com/omise/omise-java/workflows/Java%20CI%20with%20Gradle/badge.svg
[1]: https://github.com/omise/omise-java/actions
[2]: https://docs.opn.ooo/
[3]: mailto:support@opn.ooo
[2]: https://docs.omise.co/
[3]: mailto:support@omise.co
[4]: https://github.com/omise/omise-android
[5]: https://img.shields.io/maven-central/v/co.omise/omise-java.svg?style=flat-square
[6]: https://central.sonatype.com/artifact/co.omise/omise-java/4.2.0/versions
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/co/omise/requests/TokenRequestTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public void testCreate() throws IOException, OmiseException {
.securityCode("123")
.city("Bangkok")
.postalCode("10240")
.email("email@opn.ooo")
.email("email@omise.co")
)
.build();

Token token = getTestRequester().sendRequest(request);

assertRequested("POST", "/tokens", 200);
assertVaultRequest();
assertRequestBody("{\"card\":{\"city\":\"Bangkok\",\"country\":null,\"name\":\"JOHN DOE\",\"number\":\"4242424242424242\",\"state\":null,\"street1\":null,\"street2\":null,\"email\":\"email@opn.ooo\",\"expiration_month\":3,\"expiration_year\":2026,\"phone_number\":null,\"postal_code\":\"10240\",\"security_code\":\"123\"}}");
assertRequestBody("{\"card\":{\"city\":\"Bangkok\",\"country\":null,\"name\":\"JOHN DOE\",\"number\":\"4242424242424242\",\"state\":null,\"street1\":null,\"street2\":null,\"email\":\"email@omise.co\",\"expiration_month\":3,\"expiration_year\":2026,\"phone_number\":null,\"postal_code\":\"10240\",\"security_code\":\"123\"}}");

assertEquals(TOKEN_ID, token.getId());
assertFalse(token.isLiveMode());
Expand Down