NAXAM / braintree-ios-binding

Xamarin Binding Library - Braintree iOS SDK
Other
8 stars 7 forks source link
applepay braintree braintree-ios braintree-ios-sdk braintree-sdk paypal unionpay venmo xamarin xamarin-ios-binding

BrainTree for Xamarin.iOS

A Xamarin.Android binding library for Braintree DropIn iOS library.

The library used to be under the name of Naxam.BraintreeDropIn.iOS. 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

dotnet add package BraintreeDropIn.iOS --version 9.7.2.3
dotnet add package Xamarin.Swift --version 1.2.0

Usage

This project is to provide C# libraries for corresponding libraries in Swift/Objective, however, the APIs are very similar.

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

Action

private void ShowDropIn(string clientTokenOrTokenizationKey)
{
    var request = new BTDropInRequest();

    var dropIn = new BTDropInController(authorization: clientTokenOrTokenizationKey, request: request, handler: HandleDropInResult);

    PresentViewController(dropIn!, animated: true, completionHandler: null);
}

Plz follow official guide from Braintree here for further details.

Run on your machine

Maintainer

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

If you find this project is useful, 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 iOS is released under the MIT license. See LICENSE for details.