braintree-web/payment-ready

Members

(static) VERSION :string

The current version of the SDK, i.e. 3.133.0.

Source:

Methods

(static) create(options, callbackopt) → {Promise.<PaymentReady>}

Parameters:
Name Type Attributes Description
options object

Creation options:

Properties
Name Type Attributes Description
client Client <optional>

A Client instance.

authorization string <optional>

A tokenizationKey or clientToken. Can be used in place of options.client.

debug boolean <optional>

A debug flag.

redirectUrl string <optional>

When provided, triggers full page redirect flow instead of popup flow.

callback callback <optional>

When provided, will be used instead of a promise. First argument is an error object, where the second is an instance of PaymentReady.

Source:
Examples
braintree.paymentReady.create({
  client: clientInstance
}).then(function (paymentReadyInstance) {
  // paymentReadyInstance is ready to be used.
}).catch(function (createErr) {
  console.error('Error creating PAYMENTREADY instance', createErr);
});

Creating a PAYMENTREADY component

braintree.paymentReady.create({
  client: clientInstance,
}).then(function (paymentReadyInstance) {
  // paymentReadyInstance is ready to be used.
}).catch(function (createErr) {
  console.error('Error creating PAYMENT READY instance', createErr);
});