Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Xamarin Binding Library - BrainTree Android SDK

License

NotificationsYou must be signed in to change notification settings

NAXAM/braintree-android-binding

Repository files navigation

A Xamarin.Android binding library forBrainTree DropIn Android library.

The library used to be under the name ofNaxam.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 BraintreePayments.API.DropIn.Droid

Usage

This project is to provide C# libraries for corresponding libraries in Java/Kotlin, however, the APIs are exactly the same.

Here are snippets which could be found inMainActivity in the demo project.

Set up

dropInRequest=newDropInRequest();dropInRequest.PayPalRequest=newPayPalVaultRequest();vargooglePayRequest=newGooglePayRequest();googlePayRequest.TransactionInfo=TransactionInfo.NewBuilder().SetTotalPrice("10.0").SetTotalPriceStatus(WalletConstants.TotalPriceStatusFinal).SetCurrencyCode("USD").Build();googlePayRequest.BillingAddressRequired=true;dropInRequest.GooglePayRequest=googlePayRequest;dropInRequest.VenmoRequest=newVenmoRequest(VenmoPaymentMethodUsage.MultiUse);dropInRequest.ThreeDSecureRequest=newThreeDSecureRequest{Amount="10.0"};dropInClient=newDropInClient(this,"sandbox_tmxhyf7d_dcpspy2brwdjr3qn");dropInClient.SetListener(this);

Open it up

dropInClient.LaunchDropIn(dropInRequest);

Plz follow official guide from Braintreehere for further details.

Known issue

AndroidManifest.xml is incorrectly configured or another app defines the same browser switch url as this app. Seehttps://developers.braintreepayments.com/guides/client-sdk/android/#browser-switch for the correct configuration

SOLUTION: Just remove special characters from your app's package name/id. like underscores and etc. (source)

Maintainer

This project is maintained bytuyen-vuduc in his spare time and/or when requested.

If you find this project is helpful and benefit your work/business, please give it a star, become a sponsor of the project and/or buy him a coffee.

"Buy Me A Coffee"

License

Braintree native libraries and its dependencies are licensed under their original owners' licenses. Please check out their main website for further information.

Braintree binding libraries for Android is released under the MIT license.SeeLICENSE for details.

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp