Skip to content

Commit

Permalink
chore: bump up version and refactor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-hector committed Aug 13, 2024
1 parent 8bd4e01 commit 30a0145
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 24 deletions.
16 changes: 8 additions & 8 deletions GUIDE-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ Airwallex Android SDK 支持Android API 21及以上版本。
```groovy
dependencies {
// It's required
implementation 'io.github.airwallex:payment:5.0.2'
implementation 'io.github.airwallex:payment:5.0.3'
// Select the payment method you want to support.
implementation 'io.github.airwallex:payment-card:5.0.2'
implementation 'io.github.airwallex:payment-redirect:5.0.2'
implementation 'io.github.airwallex:payment-wechat:5.0.2'
implementation 'io.github.airwallex:payment-googlepay:5.0.2'
implementation 'io.github.airwallex:payment-card:5.0.3'
implementation 'io.github.airwallex:payment-redirect:5.0.3'
implementation 'io.github.airwallex:payment-wechat:5.0.3'
implementation 'io.github.airwallex:payment-googlepay:5.0.3'
}
```

Expand Down Expand Up @@ -271,11 +271,11 @@ Airwallex Android SDK 支持Android API 21及以上版本。
```groovy
dependencies {
// It's required
implementation 'io.github.airwallex:payment-components-core:5.0.2'
implementation 'io.github.airwallex:payment-components-core:5.0.3'
// Select the payment method you want to support.
implementation 'io.github.airwallex:payment-card:5.0.2'
implementation 'io.github.airwallex:payment-googlepay:5.0.2'
implementation 'io.github.airwallex:payment-card:5.0.3'
implementation 'io.github.airwallex:payment-googlepay:5.0.3'
}
```

Expand Down
16 changes: 8 additions & 8 deletions GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ To install the SDK, in your app-level `build.gradle`, add the following:
```groovy
dependencies {
// It's required
implementation 'io.github.airwallex:payment:5.0.2'
implementation 'io.github.airwallex:payment:5.0.3'
// Select the payment method you want to support.
implementation 'io.github.airwallex:payment-card:5.0.2'
implementation 'io.github.airwallex:payment-redirect:5.0.2'
implementation 'io.github.airwallex:payment-wechat:5.0.2'
implementation 'io.github.airwallex:payment-googlepay:5.0.2'
implementation 'io.github.airwallex:payment-card:5.0.3'
implementation 'io.github.airwallex:payment-redirect:5.0.3'
implementation 'io.github.airwallex:payment-wechat:5.0.3'
implementation 'io.github.airwallex:payment-googlepay:5.0.3'
}
```

Expand Down Expand Up @@ -275,11 +275,11 @@ To install the SDK, in your app-level `build.gradle`, add the following:
```groovy
dependencies {
// It's required
implementation 'io.github.airwallex:payment-components-core:5.0.2'
implementation 'io.github.airwallex:payment-components-core:5.0.3'
// Select the payment method you want to support.
implementation 'io.github.airwallex:payment-card:5.0.2'
implementation 'io.github.airwallex:payment-googlepay:5.0.2'
implementation 'io.github.airwallex:payment-card:5.0.3'
implementation 'io.github.airwallex:payment-googlepay:5.0.3'
}
```

Expand Down
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Airwallx Android SDK 可以很方便得在你的Android用用中添加支付功
`build.gradle`中添加以下依赖
```groovy
dependencies {
implementation 'io.github.airwallex:payment:5.0.2'
implementation 'io.github.airwallex:payment:5.0.3'
}
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The Components are available through [Maven Central](https://repo1.maven.org/mav
Add the dependency in your `build.gradle`.
```groovy
dependencies {
implementation 'io.github.airwallex:payment:5.0.2'
implementation 'io.github.airwallex:payment:5.0.3'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tasks.register('clean', Delete) {
}

// Update the version field when a new version is released
version = '5.0.2'
version = '5.0.3'

ext {
compileSdkVersion = 34
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ data class GooglePayOptions(
val shippingAddressParameters: ShippingAddressParameters? = null,

/**
* Setting skipIsReadyToPay to true will skip the IsReadyToPay check before invoking Google Pay.
* On certain models from brands like Xiaomi and Honor, the IsReadyToPay check always returns false, which can block Google Pay.
* Skipping this check will directly invoke the payment process.
* Setting skipReadinessCheck to true will skip the IsReadyToPay check before invoking Google Pay.
* @see [IsReadyToPay](https://developers.google.com/pay/api/android/reference/client#isReadyToPay)
* On certain models from brands like Xiaomi and Honor, IsReadyToPay always returns false, which can block Google Pay.
* Skipping this check will try to launch Google Pay sheet directly.
* We advise you to carefully consider whether to skip this step.
*/
val skipIsReadyToPay: Boolean? = false
val skipReadinessCheck: Boolean? = false
) : Parcelable

@Parcelize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class GooglePayComponentProvider : ActionComponentProvider<GooglePayComponent> {
AirwallexLogger.error("GooglePayComponentProvider requestIsReadyToPay: resultCode = $resultCode")
return false
}
val skipIsReadyToPay = session.googlePayOptions?.skipIsReadyToPay ?: false
val skipIsReadyToPay = options.skipReadinessCheck == true
AirwallexLogger.info("GooglePayComponentProvider requestIsReadyToPay: skipIsReadyToPay = $skipIsReadyToPay")
if (skipIsReadyToPay) return true
val request = IsReadyToPayRequest.fromJson(isReadyToPayJson.toString())
Expand Down

0 comments on commit 30a0145

Please sign in to comment.