Members
(static) VERSION :string
The current version of the SDK, i.e. 3.85.3
.
- Source:
Methods
(static) create(options, callbackopt) → {Promise|void}
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Creation options: Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
callback |
callback |
<optional> |
The second argument, |
- Source:
Examples
braintree.venmo.create({
client: clientInstance
}).then(function (venmoInstance) {
// venmoInstance is ready to be used.
}).catch(function (createErr) {
console.error('Error creating Venmo instance', createErr);
});
Allow desktop flow to be used
braintree.venmo.create({
client: clientInstance,
}).then(function (venmoInstance) {
// venmoInstance is ready to be used.
}).catch(function (createErr) {
console.error('Error creating Venmo instance', createErr);
});
(static) isBrowserSupported(optionsopt) → {boolean}
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
browser support options: Properties
|
- Source:
Examples
if (braintree.venmo.isBrowserSupported()) {
// set up Venmo
}
Explicitly require browser support returning to the same tab
if (braintree.venmo.isBrowserSupported({
allowNewBrowserTab: false
})) {
// set up Venmo
}
Explicitly set webviews as disallowed browsers
if (braintree.venmo.isBrowserSupported({
allowWebviews: false
})) {
// set up Venmo
}