This is a migrated thread and some comments may be shown as answers.

Is there any plugin available for integrating Braintree in telerik mobile hybrid app?

3 Answers 135 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dineshkumar
Top achievements
Rank 1
dineshkumar asked on 30 Mar 2016, 12:35 PM
I want my mobile app to do payments using braintree. I have already integrated the paypal and done the transaction using sandbox accounts. But client asked us to integrate the mobile app with braintree. Is there any provision? Please suggest...

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 04 Apr 2016, 12:12 PM
Hello,

In Telerik Platform you can build mobile applications leveraging Cordova, which means you can integrate any Cordova plugins you find useful for implementing a specific scenario. There is not a verified plugin we can currently suggest though. As to working with various plugins in AppBuilder, please refer to the documentation on Import Custom Plugins

Since you develop a hybrid app you could take advantage of the existing Cordova plugins for Apple Pay. For example, have a look at the APIs these custom plugins provide:

The only caveat would be setting up a code signing entitlement file in your project. At the moment Telerik Platform doesn't provide an easy way to set them up but we will be working on improving this behavior this year.

Until then your team can still manually configure the code signing entitlements by code-signing the build product additionally with code signing entitlements using the codesign command line utility. Note that you will need a Mac environment for this purpose. Basically the steps are to:

  • build the project in Telerik Platform,
  • Get the application package .ipa file
  • Unzip the .ipa archive
  • If there is an entitlement file in it, you could export and use it to add the Apple Pay key.
  • codesign the binary with the desired entitlements (for example Apple Pay). You could use codesign to sign the binary with the correct Entitlements:

codesign -f -s "Distribution Certificate Name" -i com.example.app_bundle_id --entitlements entitlements.plist -vv /path/to/<app-name>.app/
  • zip the .ipa
This guidance on how to re-sign ios app may also be helpful.

Regards,
Dimitrina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Steph
Top achievements
Rank 1
answered on 01 Mar 2017, 07:00 AM
How could Braintree integrate with a NativeScript project?
0
Anton Dobrev
Telerik team
answered on 02 Mar 2017, 03:06 PM
@Kelson

As per the Braintree developers homepage here client-side SDKs are available for iOS, Android and Web (JavaScript). Because NativeScript applications do not support browser environment (like for example, Cordova-based apps) you will need to rely on the native iOS and SDKs and integrate them in your project.

My suggestion would be to access the Braintree Android SDK and iOS SDK and either implement the native SDKs in your application (as for example in this article) and accessing the native methods or create your plugin.

Regards,
Anton Dobrev
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
dineshkumar
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Steph
Top achievements
Rank 1
Anton Dobrev
Telerik team
Share this question
or