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
|
|||||||||||||||||||||
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);
});