Home

markdown notes

Braintree

Resources and tools for developers to integrate Braintree’s global payments platform.

table of contents

Pretext

Yes, PayPal acquired Braintree in September 2013 for approximately $800 million. The acquisition, made while PayPal was part of eBay Inc., was intended to help both companies innovate and grow in the mobile and online payments space. Braintree continues to operate as a separate service within PayPal and includes the popular mobile payment app, Venmo, which Braintree had acquired earlier. 

Paypal

result.isSuccess();
// true

Transaction transaction = result.getTarget();
transaction.getStatus();
// Transaction.Status.AUTHORIZED

Transaction transaction = result.getTarget();
transaction.getPaymentInstrumentType().equals(PaymentInstrumentType.PAYPAL_ACCOUNT);
// false
transaction.getPaymentInstrumentType().equals(PaymentInstrumentType.CREDIT_CARD);
// true

STEPS