Constructor
new PayPal(options)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
module:braintree/paypal~createOptions | see paypal.create |
- Source:
Methods
teardown(errback) → {void}
Cleanly tear down anything set up by create
Parameters:
| Name | Type | Description |
|---|---|---|
errback |
errorCallback | An errback |
- Source:
Returns:
- Type
- void
tokenize(errback) → {PayPal~tokenizeReturn}
Launch the PayPal login flow, returning a nonce payload
Parameters:
| Name | Type | Description |
|---|---|---|
errback |
errback | The second argument, |
- Source:
Returns:
A handle to close the PayPal checkout frame
Type Definitions
tokenizePayload
Type:
- object
Properties:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nonce |
string | The payment method nonce |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type |
string | Always |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
details |
object | Additional PayPal account details Properties
|
- Source:
tokenizeReturn
Type:
- object
Properties:
| Name | Type | Description |
|---|---|---|
close |
function | A handle to close the PayPal checkout flow |
- Source: