SEPA

SEPA

This class represents a SEPA component produced by braintree-web.sepa.create. Instances provide methods for tokenizing SEPA payments.

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
Name Type Attributes Description
accountHolderName string <optional>

The account holder name.

customerId string <optional>

The customer's id.

iban string <optional>

The customer's International Bank Account Number.

mandateType string <optional>

Specify ONE_OFF or RECURRENT payment.

countryCode string <optional>

The customer's country code.

merchantAccountId string <optional>

The merchant's account id.

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: