braintree-web/unionpay

This module allows you to accept UnionPay payments. It is currently in beta and is subject to change.

Source:

Members

(static) VERSION :string

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

Source:

Methods

(static) create(options, callbackopt) → {Promise|void}

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.

callback callback <optional>

The second argument, data, is the UnionPay instance. If no callback is provided, create returns a promise that resolves with the UnionPay instance.

Source:
Example
braintree.unionpay.create({ client: clientInstance }, function (createErr, unionpayInstance) {
  if (createErr) {
    console.error(createErr);
    return;
  }
  // ...
});