Skip to content

Commit

Permalink
Merge pull request #92 from afterpay/release-documentation-versioning
Browse files Browse the repository at this point in the history
Update version and documentation to reflect an 1.2.0 release
  • Loading branch information
adamjcampbell authored Oct 22, 2020
2 parents 8c53720 + 57a4c2a commit 715e3fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Add `afterpay-android` to your `build.gradle` dependencies.

```gradle
dependencies {
implementation 'com.afterpay:afterpay-android:1.1.1'
implementation 'com.afterpay:afterpay-android:1.2.0'
}
```

Expand All @@ -55,15 +55,16 @@ The initial release of the SDK contains the web login and checkout process with

Each merchant has configuration specific to their account which is accessible from the `/configuration` API endpoint. This configuration is used by the SDK for rendering UI components and is applied globally using the [`Afterpay.setConfiguration`][docs-configuration] method.

The following sample demonstrates how the SDK can be configured using the data supplied by the Afterpay API.
The following sample demonstrates how the SDK can be configured using the data supplied by the Afterpay API. It is up to you to decide how to best supply the locale which will determine the terms and conditions provided and currency formatting of the SDK.

```kotlin
val configuration = api.getConfiguration()

Afterpay.setConfiguration(
minimumAmount = configuration.minimum?.amount,
maximumAmount = configuration.maximum.amount,
currency = configuration.maximum.currency
currency = configuration.maximum.currency,
locale = Locale.US
)
```

Expand Down Expand Up @@ -119,6 +120,8 @@ class ExampleActivity: Activity {
![Mint on Black pay now button][button-mint-on-black]
![White on Black pay now button][button-white-on-black]

> **NOTE:** Setting the configured locale to `Locale.UK` (`"en_GB"`) will display Clearpay assets and branding.
### Price Breakdown

The price breakdown component displays information about Afterpay instalments and handles a number of common configurations.
Expand Down Expand Up @@ -150,6 +153,8 @@ When no payment amount has been set or the merchant account configuration has no

The **Info** link at the end of the component will display a window containing more information about Afterpay for the user.

> **NOTE:** The way the configured currency is formatted and the destination for the info link is determined by the configured locale.
## Security

To limit the possibility of a man-in-the-middle attack during the checkout process, certificate pinning can be configured for the Afterpay portal. Please refer to the Android [Network Security Configuration][network-config] documentation for more information.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.afterpay
VERSION_NAME=1.1.2-SNAPSHOT
VERSION_NAME=1.2.0-SNAPSHOT

POM_URL=https://github.com/afterpay/sdk-android/
POM_SCM_URL=https://github.com/afterpay/sdk-android/
Expand Down

0 comments on commit 715e3fa

Please sign in to comment.