-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b1c4e2
commit 1322cb0
Showing
22 changed files
with
430 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<ul> | ||
<li>Improve error handling, notify to observer.</li> | ||
<li>3DS2 error flows go to observer.</li> | ||
<li>Bug fixes.</li> | ||
</ul> | ||
#### Android Components (V3) | ||
Version 3.x.x is a completely new way of integrating payments using the Checkout API (payments/) with our UI Components or Drop-in. | ||
It is not compatible with the integrations of version 2.x.x, which used the SDK specific API (paymentSession/). | ||
Version 2.x.x will only receive maintenance for bug fixes, not any new features. | ||
Check the Readme page and documentation website for more information. | ||
|
||
- Create default Configuration Builders. | ||
- Add UiCustomization class to 3DS2 component. | ||
- Bug fixes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
base-v3/src/main/java/com/adyen/checkout/base/component/BaseConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2019 Adyen N.V. | ||
* | ||
* This file is open source and available under the MIT license. See the LICENSE file for more info. | ||
* | ||
* Created by caiof on 11/7/2019. | ||
*/ | ||
|
||
package com.adyen.checkout.base.component; | ||
|
||
import android.support.annotation.NonNull; | ||
|
||
import com.adyen.checkout.base.Configuration; | ||
import com.adyen.checkout.core.api.Environment; | ||
|
||
import java.util.Locale; | ||
|
||
public abstract class BaseConfiguration implements Configuration { | ||
|
||
private final Locale mShopperLocale; | ||
private final Environment mEnvironment; | ||
|
||
public BaseConfiguration(@NonNull Locale shopperLocale, @NonNull Environment environment) { | ||
mShopperLocale = shopperLocale; | ||
mEnvironment = environment; | ||
} | ||
|
||
@NonNull | ||
public Environment getEnvironment() { | ||
return mEnvironment; | ||
} | ||
|
||
@NonNull | ||
@Override | ||
public Locale getShopperLocale() { | ||
return mShopperLocale; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
base-v3/src/main/java/com/adyen/checkout/base/component/BaseConfigurationBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright (c) 2019 Adyen N.V. | ||
* | ||
* This file is open source and available under the MIT license. See the LICENSE file for more info. | ||
* | ||
* Created by caiof on 11/7/2019. | ||
*/ | ||
|
||
package com.adyen.checkout.base.component; | ||
|
||
import android.content.Context; | ||
import android.support.annotation.NonNull; | ||
|
||
import com.adyen.checkout.base.Configuration; | ||
import com.adyen.checkout.core.api.Environment; | ||
import com.adyen.checkout.core.util.LocaleUtil; | ||
|
||
import java.util.Locale; | ||
|
||
public abstract class BaseConfigurationBuilder<ConfigurationT extends Configuration> { | ||
|
||
@NonNull | ||
protected Locale mBuilderShopperLocale; | ||
|
||
@NonNull | ||
protected Environment mBuilderEnvironment; | ||
|
||
/** | ||
* Constructor that provides default values. | ||
* | ||
* @param context A Context | ||
*/ | ||
public BaseConfigurationBuilder(@NonNull Context context) { | ||
this(LocaleUtil.getLocale(context), Environment.TEST); | ||
} | ||
|
||
/** | ||
* Base constructor with the required fields. | ||
* | ||
* @param shopperLocale The Locale of the shopper. | ||
* @param environment The {@link Environment} to be used for network calls to Adyen. | ||
*/ | ||
public BaseConfigurationBuilder(@NonNull Locale shopperLocale, @NonNull Environment environment) { | ||
mBuilderShopperLocale = shopperLocale; | ||
mBuilderEnvironment = environment; | ||
} | ||
|
||
public void setShopperLocale(@NonNull Locale builderShopperLocale) { | ||
mBuilderShopperLocale = builderShopperLocale; | ||
} | ||
|
||
public void setEnvironment(@NonNull Environment builderEnvironment) { | ||
mBuilderEnvironment = builderEnvironment; | ||
} | ||
|
||
@NonNull | ||
public abstract ConfigurationT build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.