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 |
errback |
<optional> |
Called once teardown is complete. No data is returned if teardown completes successfully. |
- Source:
tokenize(callback) → {PayPal~tokenizeReturn}
Launch the PayPal login flow, returning a nonce payload
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
errback | 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: