Press "Enter" to skip to content

Updating Braintree to the Latest Version in Xamarin Forms

A time ago I wrote a series of articles on how to integrate Braintree Payment in Xamarin Forms, since then a few things have changed. In this article, I’m going to guide you step by step on what you need to do if you were using the Naxam.BrainTree.Droid <= v3.14.0 and/or Naxam.BraintreeCore.iOS <= 4.11.0 and you want to update it to the latest versions. 

IMPORTANT: If you are using an old version of this package is important you update it due to the Braintree SDK Deprecation policy,

Android

1. Update the Packages

Before doing anything if you haven’t updated the project to Android X is important you do that first. If you don’t know how to, I recommend you to read this article.

After that, update all the Braintree packages you are using to the latest version:

2. Small code changes

1.Instead of doing:

Do:

2.Instead of doing:

Do:

iOS

In iOS, you just must update all the Braintree related packages to the latest version and all the code should work the same.

You can check the full source code used here.

Happy Update!