This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from NAXAM/drop-in-v6.3.0
Drop in v6.3.0
- Loading branch information
Showing
194 changed files
with
2,212 additions
and
30,382 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,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. | ||
|
||
[](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>[](https://twitter.com/intent/tweet?text=https://github.com/naxam/imagepicker-android-binding) | ||
[](https://twitter.com/naxamco) | ||
Braintree binding libraries for Android is released under the MIT license. | ||
See [LICENSE](./LICENSE) for details. |
Oops, something went wrong.