Constructor
new PayPal(options)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:braintree-web/paypal~createOptions | see paypal.create |
- Source:
Methods
teardown(callbackopt) → {void}
Cleanly tear down anything set up by create.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
callback |
callback |
<optional> |
Called once teardown is complete. No data is returned if teardown completes successfully. |
- Source:
tokenize(callback) → {PayPal~tokenizeReturn}
Launches the PayPal login flow and returns a nonce payload.
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
callback | The second argument, |
- Source:
Type Definitions
tokenizePayload :object
Properties:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nonce |
string | The payment method nonce. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
details |
object | Additional PayPal account details. Properties
|
- Source:
tokenizeReturn :object
Properties:
| Name | Type | Description |
|---|---|---|
close |
function | A handle to close the PayPal checkout flow. |
- Source: