# The paths of a sale, from click to payment

> Flowcharts of every path a sale can take — card, boleto and PIX, with and without Moodle — so you know what happens in each case.

## What you will get

A picture of what happens to a sale in each situation — who does what, what
EduPay does on its own and where each path ends. Use it to understand a case
before acting, or to explain to your team how billing moves along.

## How to read it

Each block below groups similar situations. **Click a button to see the
situation**; only that one shows. When a step is a question, the diamond opens
one path per answer, side by side.

The colours tell you who acts: the student, the school, EduPay on its own, the
receiving account (where the money comes in) or the class environment. The
legend sits at the bottom of each block.

## 1. How the sale starts

```fluxo
caso catalogo: Through the online sale (catalog)
inicio: The student opens the course page in the catalog and clicks to enroll
aluno: Enters their email or CPF
decisao: Is there a record with that email or CPF?
- No
  aluno: Fills in the registration and creates a password
- Yes
  aluno: Logs in with their password
aluno: Chooses the payment method — only the ones the plan accepts and the receiving account can charge show up
sistema: Creates the enrollment and the installments, all in the chosen method
sistema: Issues the first charges: the card link, or the boleto and PIX for whatever is due within the lead time — the enrollment fee included
fim-ok: Enrollment **Awaiting payment** — or **Awaiting contract**, when the course has a contract to sign

caso painel: By the school (panel)
inicio: Someone at the school opens **Contracts › Enrollments** and clicks **New Enrollment**
escola: Chooses the course, plan and payment method — only the methods the plan accepts and the receiving account can charge
decisao: One student or the whole cohort?
- One student
  sistema: Creates the enrollment, the contract (when there is a template) and the installments
  sistema: Issues right away what is already due to go out
- The whole cohort
  sistema: Creates one enrollment per student; anyone already in the course is skipped
  espera: a few moments
  sistema: Issues each enrollment's charges
aulas: With the cohort linked to Moodle, the student gets access straight away
fim-ok: Enrollments created, each student with their own billing email

grupo: When the sale does not happen

caso bloqueio-vigente: Already enrolled in the course
inicio: The student who already has a record confirms the purchase
sistema: Finds an enrollment of theirs, still active, in the same course
fim-alerta: Goes back to the course page with the notice **You already have an active enrollment in this course.**

caso bloqueio-forma: No payment method available
inicio: The course plan accepts methods the receiving account cannot charge — PIX without PIX enabled, for example
sistema: Removes from the list the methods the account cannot charge
fim-erro: With no method left, the page shows **No payment method is available for this course right now.** and the sale does not happen

caso bloqueio-escola: School suspended on EduPay
inicio: The school's EduPay account is suspended for a late subscription payment
sistema: Closes the catalog sale
aluno: Existing students can still log in to the portal to see their installments and pay
fim-alerta: No new sales until the subscription is paid
```

## 2. Credit card

```fluxo
caso cartao: Card payment
inicio: The card enrollment is created — the installment falls due in 3 days
sistema: Creates the payment and sends **a single email** to the student; the enrollment fee, when there is one, goes in the same email
aluno: Opens the portal and clicks **Pay with card**
aluno: Enters the card and chooses to pay in full or in instalments
decisao: Does the student's bank approve?
- Yes
  espera: within minutes
  sistema: Settles the installment — **Paid in 3x via card**
  sistema: Sends the payment confirmed email and notifies the owner
  fim-ok: Installment **Paid**
- No
  pagamento: Declines — limit, details or a block
  sistema: The installment stays **Open**; only the student sees why
  fim-alerta: The student can try again, with another card, until the due date

caso cartao-expirou: Payment page expired
inicio: The student opens the payment page and does not finish
espera: 24 hours
pagamento: The payment page expires
aluno: Goes back to the portal — or to the email button — and clicks **Pay with card**
sistema: Opens a new payment page; the old one no longer takes payments
fim-ok: The student pays as usual, with nothing for the school to do

caso cartao-prazo: Did not pay in time
inicio: The card installment falls due 3 days after the enrollment
sistema: On the night after the due date, the installment becomes **Overdue**; the student gets the overdue notice and the owner, the overdue summary
decisao: Do they pay after the due date?
- Yes
  aluno: Pays with **Pay with card**
  sistema: Settles the installment
  fim-ok: Installment **Paid**; with Moodle, suspended access comes back
- No
  espera: the overdue days set in Settings
  aulas: With Moodle, access to classes is suspended
  fim-erro: Installment **Overdue**; later on, it may go to protest

grupo: After payment

caso cartao-estorno: Refund
inicio: The school refunds the payment through the receiving account
decisao: Was the whole amount refunded?
- Yes
  sistema: Undoes the settlement: the installment goes back to **Open**
  sistema: A **Completed** enrollment goes back to **Awaiting payment**
  fim-alerta: The installment can be paid again
- No, only part
  sistema: The installment stays **Paid**
  fim-ok: The difference only shows in the receiving account's statement

caso cartao-contestacao: Card chargeback
inicio: The cardholder disputes the purchase with their bank
pagamento: Notifies the school and gives a deadline to respond, in the receiving account itself
sistema: While the dispute is open, the installment stays **Paid**
decisao: How did it end?
- The school won
  fim-ok: The money stays with the school; the installment stays **Paid**
- The school lost
  sistema: It counts as a full refund
  fim-alerta: The installment goes back to **Open**
```

## 3. Boleto

```fluxo
caso boleto: Boleto payment
inicio: The boleto installment reaches the configured lead time — the enrollment fee goes out at enrollment
sistema: Issues the boleto, valid until the due date, and emails it to the student
sistema: Three days before the due date, sends the reminder
decisao: Does the student pay by the due date?
- Yes
  aluno: Pays with the barcode or through **View boleto**
  espera: the bank confirms on the next business day
  sistema: Settles the installment with the date the student paid
  fim-ok: Installment **Paid**
- No
  sistema: That night, the installment becomes **Overdue** and the overdue notice goes out
  espera: one business day
  sistema: Issues a new boleto, valid for 3 days, and emails it
  sistema: Repeats while the installment has been overdue for up to 7 days
  fim-alerta: After that, the school issues the **2nd Copy**, with the plan's late fee and interest

caso boleto-ultimo-dia: Paid on the last day
inicio: The student pays the boleto on its due date
sistema: That night, the installment becomes **Overdue** and the overdue notice goes out — the bank has not confirmed yet
sistema: Sees the boleto has expired, but waits for the confirmation: it does not issue a new boleto to someone who may have paid
espera: the next business day
pagamento: Confirms the payment
sistema: Settles the installment with the date the student paid
fim-ok: Installment **Paid**, with no duplicate boleto

grupo: When something gets stuck

caso boleto-falha: Issuing failed
inicio: It is time to issue the boleto
pagamento: Refuses to issue it — for example, the student's record is missing the CPF or a full address
sistema: Sends the school owner the failure email, with the installment and the reason
escola: Fixes the student's record
decisao: Is the school in a hurry?
- No
  sistema: Tries again the next night — even after the due date, for up to 7 days
- Yes
  escola: Uses **Issue Boleto** in the installment menu
fim-ok: Boleto issued and sent to the student

caso boleto-valido: Cancel or replace a boleto that is still valid
inicio: The school tries **Cancel Charge** or the **2nd Copy** for a boleto that is still valid
sistema: Refuses and shows the date it is valid until — a boleto cannot be cancelled before its due date
decisao: Does the student pay by that date?
- Yes
  sistema: Settles the installment as usual
  fim-ok: Installment **Paid**
- No
  escola: After the date, cancels the charge or issues the 2nd copy
  fim-ok: Charge replaced

caso boleto-dobro: Paid twice
inicio: The school recorded the payment with **Mark as Paid**, and the student also paid the boleto
sistema: The manual settlement still stands; the installment is not paid off twice
fim-alerta: The money came in twice: check the receiving account's statement and agree the refund with the student
```

## 4. PIX

```fluxo
caso pix: PIX payment
inicio: The PIX installment reaches the configured lead time — the enrollment fee goes out at enrollment
sistema: Creates the PIX code, valid until 23:59 on the due date, and emails it
decisao: Does the student pay by the due date?
- Yes
  aluno: Pays with the QR code or the copy-and-paste code
  espera: within minutes
  sistema: Settles the installment and sends the confirmation emails
  fim-ok: Installment **Paid**
- No
  sistema: That night, the installment becomes **Overdue** and the overdue notice goes out
  sistema: Creates a new code, valid for 3 days, and emails it
  sistema: Repeats while the installment has been overdue for up to 7 days
  fim-alerta: After that, the school issues the **2nd Copy**

caso pix-indisponivel: PIX not enabled on the account
inicio: The plan accepts PIX, but the receiving account does not have PIX enabled
sistema: Does not offer PIX in the catalog and does not save a new PIX enrollment from the panel
decisao: Are there already installments in PIX?
- No
  fim-ok: Sales continue with the plan's other methods
- Yes
  aluno: Sees **Awaiting issuance** in the portal
  escola: On each installment with no charge, uses **Change to Bank slip** or **Change to Credit card**
  fim-ok: The charge goes out in the new method
```

## 5. Access to classes

```fluxo
grupo: With Moodle

caso aulas-entrada: When access is granted
inicio: The student is enrolled in a course whose cohort is linked to Moodle
decisao: Who made the enrollment?
- The school, from the panel
  aulas: The student joins the cohort and gets access straight away, even before paying
- The student, through the catalog
  sistema: Waits for the first payment — a free course grants it straight away
  aluno: Pays the first charge, or the school records it with **Mark as Paid**
  aulas: The student joins the cohort and gets access
fim-ok: Access granted

caso aulas-atraso: Late payment and access coming back
inicio: An installment becomes **Overdue**
espera: the overdue days set in Settings
aulas: Access to the class environment is suspended
decisao: Does the student pay what is overdue?
- Yes
  sistema: With nothing overdue left, asks for the access to come back
  fim-ok: Access restored
- No
  fim-erro: Still no access; the installment stays **Overdue**

caso aulas-cancelamento: Enrollment cancelled by the school
inicio: The school owner cancels the enrollment
aulas: The student leaves the cohort and loses access
fim-alerta: Access removed

grupo: Without Moodle

caso aulas-sem: Without the integration
inicio: The school does not use the Moodle integration, or the cohort has no linked Moodle cohort
sistema: Handles only the financial side: enrollment, contract, charges and settlements
fim-alerta: Access to classes is granted and blocked by the school, outside EduPay
```

## 6. Cancellations and the school's situation

```fluxo
grupo: Cancellations

caso cancela-cobranca: The school cancels a charge
inicio: The owner chooses **Cancel Charge** in the installment menu
decisao: What kind of charge is it?
- PIX or card link
  sistema: Cancels it on the spot
- Boleto
  sistema: Cancels only after the boleto's due date; before that, refuses and shows the date
sistema: The installment gets the **Charge cancelled on dd/mm/yyyy** badge, and the routine does not issue it again
aluno: In the portal, sees **Billing suspended by the institution**
escola: To charge again, issues it again from the menu or uses **Change to…**
fim-alerta: Until then, the installment is still owed, with no charge

caso cancela-matricula: The school cancels the enrollment
inicio: The owner cancels the enrollment
decisao: Is the termination penalty switched on?
- No
  sistema: Open and overdue installments become **Cancelled**
- Yes
  sistema: The ones not yet due become **Cancelled**; the overdue ones, **Outstanding debt**
  sistema: If the school applies the penalty, creates its installments
sistema: Cancels PIX and card links of the cancelled installments; a boleto that is still valid can be paid until it expires, and the screen warns you
aulas: With Moodle, the student loses access
fim-alerta: Enrollment **Cancelled**, and the student gets the notice

caso cancela-contrato: Contract not signed in time
inicio: The contract stays pending until the signing deadline ends
sistema: The daily routine marks the contract as **Expired**
decisao: Is automatic cancellation switched on?
- Yes
  sistema: Cancels the enrollment and its charges, as in a cancellation made by the school
  fim-alerta: Enrollment **Cancelled**, and the student gets the notice
- No
  sistema: The enrollment and its charges stay as they are
  fim-alerta: The school decides: regenerate the contract or cancel the enrollment

caso paga-apos-cancelar: Student pays after the cancellation
inicio: The student pays a still-valid boleto from a cancelled enrollment
sistema: Records the payment: the installment now shows **Paid**
sistema: The enrollment stays **Cancelled**, and access to classes does not come back
fim-alerta: The school decides whether to refund the money, through the receiving account

grupo: The school's situation on EduPay

caso escola-em-dia: Subscription up to date
inicio: The school's EduPay subscription is up to date
fim-ok: Everything works: sales, charges, notices, reminders, access to classes and protest

caso escola-atrasada: Subscription payment late
inicio: The school's EduPay subscription payment is late
sistema: Billing the students carries on: issuing, notices and reminders
decisao: Was the school's account suspended?
- No
  fim-ok: For the students, nothing changes
- Yes
  aluno: The portal opens only its financial part: log in, see the enrollment, pay, see the contract and the profile
  sistema: The catalog sale and the shortcut to classes in the portal are closed
  fim-alerta: Everything goes back to normal once the subscription is paid

caso escola-encerrada: Subscription ended
inicio: The school's subscription is cancelled and the paid period ends
sistema: EduPay stops charging on the school's behalf: no issuing, overdue notice, reminder, suspension in the class environment or protest
aluno: The student portal is closed
pagamento: Charges already issued can still be paid
sistema: Payments that come in are still recorded
fim-erro: No new charge goes out
```

## If something goes wrong

> [erro]
> **The buttons do not show and every situation is stacked.** The browser did
> not load the interactive part of the page. The content is the same: scroll
> down to see each situation.
>
> **What I see in my school does not match the drawing.** The flows show the
> general rule. Check the lead time and the overdue days in the Billing tab of
> **Settings**, and the enabled methods in **Accepted payment methods** — they
> are what change each school's deadlines and methods.


---

https://edupay.estudiosite.com/en/ajuda/day-to-day/sales-and-billing-flows
2026-10-12
