Members
(static) VERSION :string
The current version of the SDK, i.e. 3.6.3
.
- Source:
Methods
(static) create(options, callback) → {void}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
object | Creation options: Properties
|
||||||
callback |
callback | The second argument, |
- Source:
Example
braintree.paypal.create({
client: clientInstance
}, function (createErr, paypalInstance) {
if (createErr) {
if (createErr.code === 'PAYPAL_BROWSER_NOT_SUPPORTED') {
console.error('This browser is not supported.');
} else {
console.error('Error!', createErr);
}
}
});