Constructor
new SEPA(options)
Do not use this constructor directly. Use braintree-web.sepa.create instead.
Parameters:
Name | Type | Description |
---|---|---|
options |
object |
see sepa.create |
- Source:
Methods
tokenize(options, callbackopt) → {Promise.<(tokenizePayload|error)>}
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
All options for intiating the SEPA payment flow. Properties
|
|||||||||||||||||||||||||||||
callback |
callback |
<optional> |
The first argument is an error object, where the second is a tokenizePayload |
- Source:
Example
button.addEventListener('click', function () {
var tokenizeInputs = {
accountHolderName: "some-accnt-holder-name",
customerId: "a-customer-id",
iban: "a-full-iban",
mandateType: "ONE_OFF",
countryCode: "LI",
merchantAccountId: "a-merchant-account-id"
}
sepaInstance.tokenize(tokenizeInputs).then(function (payload) {
// Submit payload.nonce to your server
}).catch(function(tokenizationErr) {
// Handle errors in the flow
})
})
Type Definitions
tokenizePayload
SEPA tokenize payload.
Properties:
Name | Type | Description |
---|---|---|
nonce |
string |
The payment nonce. |
ibanLastFour |
string |
The last four digits of the customer's IBAN. |
mandateType |
string |
The specified mandateType used. |
customerId |
string |
The provided customer id. |
- Source: