diff --git a/README.md b/README.md index 73deeba2e..ffef0a16a 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,18 @@ -# Omise Android SDK +# Opn Payments Android SDK [![](https://img.shields.io/maven-central/v/co.omise/omise-android.svg?style=flat-square)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22co.omise%22%20AND%20a%3A%22omise-android%22) [![](https://img.shields.io/badge/email-support-yellow.svg?style=flat-square)](mailto:support@omise.co) [![Android CI](https://github.com/omise/omise-android/workflows/Android%20CI/badge.svg)](https://github.com/omise/omise-android/actions) -Omise is a payment service provider currently operating in Thailand. Omise provides a set of clean APIs +Opn Payments is a payment service provider currently operating in Thailand. Opn Payments provides a set of clean APIs that help merchants of any size accept credit cards online. -Omise Android SDK provides Android bindings for the Omise [Token](https://www.omise.co/tokens-api) +Opn Payments Android SDK provides Android bindings for the Opn Payments [Token](https://www.omise.co/tokens-api) and [Source](https://www.omise.co/sources-api) API as well as components for entering credit card information. ## Requirements -* Public key. [Register for an Omise account](https://dashboard.omise.co/signup) to obtain your API keys. +* Public key. [Register for an Opn Payments account](https://dashboard.omise.co/signup) to obtain your API keys. * Android 5.0+ (API 21) target or higher. * Android Studio and Gradle build system. @@ -29,7 +29,7 @@ having to go through your server. ## Installation -Add the following line to your project's build.gradle file inside the `dependencies` +Add the following line to your project's `build.gradle` file inside the `dependencies` block: ```gradle @@ -67,7 +67,7 @@ private fun showCreditCardForm() { } ``` -Replace the string `pkey_test_123` with the public key obtained from your Omise dashboard. +Replace the string `pkey_test_123` with the public key obtained from your Opn Payments dashboard. After the end-user completes entering credit card information, the activity result callback will be called, handle it like so: @@ -93,9 +93,9 @@ resulting `Intent` with the following code: * `data.getStringExtra(OmiseActivity.EXTRA_TOKEN)` - The string ID of the token. Use this if you only needs the ID and not the card data. * `data.getParcelableExtra(OmiseActivity.EXTRA_TOKEN_OBJECT)` - The full `Token` - object returned from the Omise API. + object returned from the Opn Payments API. * `data.getParcelableExtra(OmiseActivity.EXTRA_CARD_OBJECT)` - The `Card` object - which is part of the `Token` object returned from the Omise API. + which is part of the `Token` object returned from the Opn Payments API. ### Custom Credit Card Form @@ -175,10 +175,10 @@ thread and will call listener methods on the thread that initially calls the `se method. ### Payment Creator activity -Another way to use the Omise Android SDK is to integrate the `PaymentCreatorActivity` +Another way to use the Opn Payments Android SDK is to integrate the `PaymentCreatorActivity` to allow users to create a payment source from the list of sources available for the account. -To use it, first declare the availability of the activity in your AndroidManifest.xml file as follows: +To use it, first declare the availability of the activity in your `AndroidManifest.xml` file as follows: ```xml