braintree-web/paypal

Members

(static) VERSION :string

The current version of the SDK, i.e. 3.0.0-beta.12.

Source:

Methods

(static) create(options, callback) → {void}

Parameters:
Name Type Description
options object

Creation options:

Properties
Name Type Description
client Client

A Client instance.

callback callback

The second argument, data, is the PayPal instance.

Source:
Example
braintree.paypal.create(
  client: clientInstance
}, function (createErr, paypalInstance) {
  if (createErr) {
    // Handle any creation errors here
  }
}