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.
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
- Script tag
- Data-attrs
- React
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
Payloads
In React
How it relates to the API
A debt or subscription created withautopay: 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.
