Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from NAXAM/drop-in-v6.3.0
Browse files Browse the repository at this point in the history
Drop in v6.3.0
  • Loading branch information
tuyen-vuduc authored Oct 27, 2022
2 parents f80cc88 + 73c6103 commit c4cc96a
Show file tree
Hide file tree
Showing 194 changed files with 2,212 additions and 30,382 deletions.
52 changes: 19 additions & 33 deletions README.2.md → BINDING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# Xamarin.Android binding libraries for Braintree Android SDK

Naxam creates and maintains Xamarin.Android bindings for Braintree Android SDK, including:

- Android SDK
- Core
- Google-Payment
- PayPal OneTouch
- PayPal DataCollector
- Browser Switch
- DropIn UI
Naxam creates and maintains Xamarin.Android bindings for Braintree Drop-In library for Android, including:

- [drop-in](https://mvnrepository.com/artifact/com.braintreepayments.api/drop-in)
- [braintree-core](https://mvnrepository.com/artifact/com.braintreepayments.api/braintree-core)
- [card](https://mvnrepository.com/artifact/com.braintreepayments.api/card)
- [google-pay](https://mvnrepository.com/artifact/com.braintreepayments.api/google-pay)
- [paypal](https://mvnrepository.com/artifact/com.braintreepayments.api/paypal)
- [three-d-secure](https://mvnrepository.com/artifact/com.braintreepayments.api/three-d-secure)
- [union-pay](https://mvnrepository.com/artifact/com.braintreepayments.api/union-pay)
- [venmo](https://mvnrepository.com/artifact/com.braintreepayments.api/venmo)
- [data-collector](https://mvnrepository.com/artifact/com.braintreepayments.api/data-collector)
- [shared-utils](https://mvnrepository.com/artifact/com.braintreepayments.api/shared-utils)
- [browser-switch](https://mvnrepository.com/artifact/com.braintreepayments.api/browser-switch)
- [card-form](https://mvnrepository.com/artifact/com.braintreepayments/card-form)
- [cardinalmobilesdk](https://cardinaldocs.atlassian.net/wiki/spaces/CMSDK/pages/1998914459/Setting+up+CardinalMobileSDK+-+Android)

## Building

Expand Down Expand Up @@ -48,27 +54,13 @@ You may want to consider passing `--verbosity diagnostic` (or `-Verbosity diagno
**Mac**:

```
sh ./build.sh --target=binderate && sh ./build.sh --target=libs
```

Optionally run:

```
sh ./build.sh --target=clean
```

before the build.

**Windows:**

```
./build.ps1 --target=binderate ; ./build.ps1 --target=libs
dotnet cake --target=binderate && dotnet cake --target=libs
```

Optionally run:

```
./build.ps1 --target=clean
dotnet cake --target=clean
```

before the build.
Expand All @@ -78,18 +70,12 @@ To build nuget packages, samples and API diff:
**Mac**:

```
sh ./build.sh --target=nuget && sh ./build.sh --target=samples && sh ./build.sh --target=diff
```

**Windows:**

```
./build.ps1 --target=nuget ; ./build.ps1 --target=samples ; ./build.ps1 --target=diff
dotnet cake --target=nuget && dotnet cake --target=samples && dotnet cake --target=diff
```

### Working in Visual Studio / Xamarin Studio

Before the `.sln` files will compile in Visual Studio or Xamarin Studio, the external dependencies need to be downloaded. This can be done by running the `build.sh` or `build.ps1` with the target `externals`. After the externals are setup, the `.sln` files should compile in an IDE.
Before the `.sln` files will compile in Visual Studio or Xamarin Studio, the external dependencies need to be downloaded. This can be done by running the `dotnet cake --target=externals`. After the externals are setup, the `.sln` files should compile in an IDE.

### Issues
- [CardinalMobileSDK issue](https://developers.braintreepayments.com/guides/3d-secure/client-side/android/v3)
6 changes: 3 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Naxam is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may require or install dependencies which are governed by additional licenses.
tuyen-vuduc is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may require or install dependencies which are governed by additional licenses.

This component depends on Braintree Payments SDK for Android, which is subject to the terms of Braintree Payments Software Development Kit License Agreement

Xamarin.Android binding library for Braintree Payments SDK for Android

MIT License

Copyright (c) 2018 NAXAM CO., LTD
Copyright (c) 2022 tuyen-vuduc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -26,4 +26,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

20170608
20220918
79 changes: 50 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,70 @@
<img src="./art/repo_header.png" alt="BrainTree for Xamarin.Android" width="728" />

# BrainTree for Xamarin.Android

A Xamarin.Android binding library for [BrainTree Android](https://mvnrepository.com/artifact/com.braintreepayments.api/braintree) library.

## About
This project is maintained by Naxam Co.,Ltd.<br>
We specialize in developing mobile applications using Xamarin and native technology stack.<br>
A Xamarin.Android binding library for [BrainTree DropIn Android](https://mvnrepository.com/artifact/com.braintreepayments.api/drop-in) library.

**Looking for developers for your project?**<br>

<a href="mailto:tuyen@naxam.net">
<img src="https://github.com/NAXAM/naxam.github.io/blob/master/assets/img/hire_button.png?raw=true" height="40"></a> <br>
> The library used to be under the name of `Naxam.BraintreeDropIn.Droid`. Naxam is no longer in business for years hence I remove the trademark from the name and hope it more neutral for the community to contribute.
## Installation

```
Install-Package Naxam.BrainTree.Droid
Install-Package BraintreePayments.API.DropIn.Droid
```

## Usage

This library is created to be a part of BraintreePayments libraries.
This project is to provide C# libraries for corresponding libraries in Java/Kotlin, however, the APIs are exactly the same.

Plz follow official guide from BraintreePayment [here](https://github.com/braintree/braintree_android/blob/master/README.md).
Here are snippets which could be found in [MainActivity](./samples/DropInQs/MainActivity.cs) in the demo project.
### Set up
```c#
dropInRequest = new DropInRequest();
dropInRequest.PayPalRequest = new PayPalVaultRequest();

## License
var googlePayRequest = new GooglePayRequest();
googlePayRequest.TransactionInfo = TransactionInfo.NewBuilder()
.SetTotalPrice("10.0")
.SetTotalPriceStatus(WalletConstants.TotalPriceStatusFinal)
.SetCurrencyCode("USD")
.Build();
googlePayRequest.BillingAddressRequired = true;
dropInRequest.GooglePayRequest = googlePayRequest;

dropInRequest.VenmoRequest = new VenmoRequest(VenmoPaymentMethodUsage.MultiUse);

dropInRequest.ThreeDSecureRequest = new ThreeDSecureRequest
{
Amount = "10.0"
};

dropInClient = new DropInClient(this, "sandbox_tmxhyf7d_dcpspy2brwdjr3qn");
dropInClient.SetListener(this);
```

BrainTree binding library for Android is released under the MIT license.
See [LICENSE](./LICENSE) for details.
### Open it up

# Get our showcases on AppStore/PlayStore
Try our showcases to know more about our capabilities.
```c#
dropInClient.LaunchDropIn(dropInRequest);
```


Plz follow official guide from Braintree [here](https://developer.paypal.com/braintree/docs/start/hello-client) for further details.

**Known issue**

<a href="https://itunes.apple.com/us/developer/tuyen-vu/id1255432728/" >
<img src="https://github.com/NAXAM/imagepicker-android-binding/raw/master/art/apple_store.png" width="117" height="34"></a>
> AndroidManifest.xml is incorrectly configured or another app defines the same browser switch url as this app. See https://developers.braintreepayments.com/guides/client-sdk/android/#browser-switch for the correct configuration
<a href="https://play.google.com/store/apps/developer?id=NAXAM+CO.,+LTD" >
<img src="https://github.com/NAXAM/imagepicker-android-binding/raw/master/art/google_store.png" width="117" height="34"></a>
SOLUTION: Just remove special characters from your app's package name/id. like underscores and etc. ([source](https://www.appsloveworld.com/flutter/100/40/braintreebrowserswitchactivity-missing-incorrectly-configured-in-androidmanifest))

Contact us if interested.
## Maintainer
This project is maintained by [tuyen-vuduc](https://github.com/tuyen-vuduc) in his spare time and/or when requested.<br>

If you find this project is useful, please become a sponsor of the project and/or buy him a coffee.

[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/tuyen.vuduc)

## License

<a href="mailto:tuyen@naxam.net">
<img src="https://github.com/NAXAM/naxam.github.io/blob/master/assets/img/hire_button.png" height="34"></a> <br>
<br>
Braintree native libraries and its dependencies are licensed under their original owners' licenses. Please check out their main website for further information.

Follow us for the latest updates<br>[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/naxam/imagepicker-android-binding)
[![Twitter Follow](https://img.shields.io/twitter/follow/naxamco.svg?style=social)](https://twitter.com/naxamco)
Braintree binding libraries for Android is released under the MIT license.
See [LICENSE](./LICENSE) for details.
Loading

0 comments on commit c4cc96a

Please sign in to comment.