Skip to main content
The autopay management view lets your end user manage their autopay enrollment embedded in your site, without entering the full portal. From there they can:

View

The methods they have enrolled: card or CLABE account.

Enroll

A new method, when they do not have one yet.

Remove

An existing method.
It uses the same SDK as the payment methods widget: same installation, same company identification options and same destroy(). The two differences are that it mounts with view: "autopay" and that it emits its own events.
Installation, entrypoints, loadTapipay() and the staging environment are identical. They are covered in Payment methods SDK.

Quick start

Just like the payment widget, you can identify your company with organization (the slug) or with companyCode. Replace organization: "acme-corp" with companyCode: "MX-S-12345" in any of the examples.

The view option

Every other option (container, organization / companyCode, identifier, environment) is the same as in the payments view. externalRequestId and selectionStrategy do not apply here: they belong to the payments view. The URL the SDK mounts is the payments view URL with /autopay appended:

Events

Privacy. Autopay events expose only the minimum: the method type (mediaType) and the last 4 digits (lastFour). The id is an opaque hash, not the internal identifier. The holder name, the full number or CLABE, the brand, the bank and tokens are never exposed.

Payloads

In React

autopayLoaded fires again every time the list changes, so you can use it as the single source for your enrolled methods counter: no need to add and subtract by hand with autopayActivated and autopayRemoved.

How it relates to the API

A debt or subscription created with autopay: true is charged through autopay, without the user picking a method on every charge. For that charge to work, the user needs an enrolled method: this screen is where they enroll it.

Payment methods and autopay

How autopay works on debts and subscriptions, and how it relates to paymentMethods.