Skip to content

Braintree

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

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

java
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

  • Create Customer
  • Create Instrument (save in vault on success)
  • Sale without submit for settlement
  • Perform your checks
  • Submit transaction for settlement