Methods
injectQrCode(base64Data, container) → {HTMLImageElement}
Injects a QR code image into a specified container element.
Parameters:
| Name | Type | Description |
|---|---|---|
base64Data |
string |
The base64 encoded QR code image data. |
container |
string | HTMLElement |
A CSS selector string or HTML element to inject the QR code into. |
Throws:
-
Throws an error if the container is invalid or base64 data is invalid.
- Type
- BraintreeError
Modal()
We should not ever really use the Modal. Modals are like popups, but the key difference is that the customer can't actually verify it's app domain and thus secure/valid. Old PP sdk (./src/paypal) uses this to get info from webviews (e.g. facebook).
Type Definitions
callback(erropt, nullable, dataopt, nullable) → {void}
The Node.js-style callback pattern used throughout the SDK.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
err |
BraintreeError |
<optional> <nullable> |
|
data |
any |
<optional> <nullable> |
The successful result of the asynchronous function call (if data exists). |