The Mandate object

Description

Mangopay relies on the Mandate object to authorize direct debits to be collected from a user’s bank account on behalf of platforms.

The direct debit scheme of the Mandate is determined automatically by the Typeof the Bank Account: IBAN for the SEPA scheme and GB for the Bacs scheme.

Once created, the Mandate’s RedirectURL hosts a form that the user must confirm to authorize payments.

Attributes

Scheme
string

The scheme of the mandate, which is available once the mandate is submitted. The value can be one of the following: 

  • BACS – Covers payments in the UK, in GBP only.
  • SEPA – Covers payments in the EU.
BankAccountId
stringRequired

The unique identifier of the bank account.

Warning: The Bank Account Type must be IBAN for the SEPA scheme and GB for the Bacs scheme.

BankReference
string

The banking reference for the Mandate.

Culture
string

Allowed values: One of the supported languages in the ISO 639-1 format: DE, EN, FR, NL

Default value: FR

The language in which the Bancontact payment page is to be displayed.

DocumentURL
string

The URL at which the mandate document can be downloaded.

ReturnURL
stringRequired

Max. length: 255 characters
The URL to which the user is returned after the payment, whether the transaction is successful or not.

RedirectURL
string

The URL to which to redirect the user to complete the payment.

Caution: This variable URL is specific to each payment. You must rely on the returned URL in full (host, path, and queries) and not hardcode any part of it.

Id
string

The unique identifier of the object.

CreationDate
Unix timestamp

The date and time at which the object was created.

Status
string

Returned values: CREATED, SUBMITTED, ACTIVE, FAILED, EXPIRED

The status of the mandate:

  • CREATED – The mandate has been generated but not yet confirmed.
  • SUBMITTED – The mandate has been confirmed and sent to the user’s bank, and can be used to request a direct debit pay-in.
  • ACTIVE – The mandate has been accepted by the user’s bank or successfully used to process a direct debit direct pay-in. Further pay-ins can be requested.
  • FAILED – The mandate has been canceled or otherwise failed, and can no longer be used for payments.
  • EXPIRED – No payment has been made against the mandate in the last 24 months. It can no longer be used for payments.
UserId
stringRequired

The unique identifier of the user the card belongs to.

ExecutionType
string

Returned values: WEB

The execution type of the mandate.

Tag
string

Custom data that can be added to this object.
In the case of the Card Registration, this parameter can be used to facilitate the link between the User object and its equivalent on your platform for instance. This value will be inherited by the Card object Tag parameter and will not be editable.

ResultCode
string

The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.

ResultMessage
string

The explanation of the result code.