From 3c27ec1752e45cd953c1448bc0c63fd7fd4a148b Mon Sep 17 00:00:00 2001 From: tyler-techcombine Date: Mon, 24 Mar 2025 13:58:32 +0700 Subject: [PATCH] omise rebranding --- README.md | 10 +++++----- src/test/java/co/omise/requests/TokenRequestTest.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2a381084..09558fc4 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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() @@ -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 diff --git a/src/test/java/co/omise/requests/TokenRequestTest.java b/src/test/java/co/omise/requests/TokenRequestTest.java index cce4a91e..94b2ed08 100644 --- a/src/test/java/co/omise/requests/TokenRequestTest.java +++ b/src/test/java/co/omise/requests/TokenRequestTest.java @@ -36,7 +36,7 @@ public void testCreate() throws IOException, OmiseException { .securityCode("123") .city("Bangkok") .postalCode("10240") - .email("email@opn.ooo") + .email("email@omise.co") ) .build(); @@ -44,7 +44,7 @@ public void testCreate() throws IOException, OmiseException { 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());