# Braintree (PayPal) cn1lib

DevFeed: [Braintree (PayPal) cn1lib](<https://devfeed.tech/articles/braintree-paypal-cn1lib-19223.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/braintree-paypal-cn1lib/>)

Author: Shai Almog

Published: 2017-05-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Mobile](<https://devfeed.tech/topics/mobile.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [mobile](<https://devfeed.tech/tags/mobile.md>), [payment](<https://devfeed.tech/tags/payment.md>), [payments](<https://devfeed.tech/tags/payments.md>), [paypal](<https://devfeed.tech/tags/paypal.md>)

## AI overview

The article introduces a Codename One Braintree cn1lib for accepting credit-card payments in mobile apps. It explains that Braintree, a PayPal company, supports payments for physical goods and services rather than in-app virtual goods, and that purchase pricing and token generation rely on server-side logic.

## Source excerpt

As part of the bootcamp we wrote a couple of cn1libs and the first one is the Braintree cn1lib which allows us to do credit card payments within an app. If you aren't familiar with Braintree it's a PayPal company that provides payment integration for mobile devices. Notice that this differs from In App Purchase which targets "virtual goods". This is useful for things like paying for physical goods and services e.g. paying for a taxi.