Submit a ticket My Tickets
Login  Sign up
Open navigation

PagSeguro Payment Gateway

Through this article, you will learn how to connect the PagSeguro payment gateway to your school and which payment methods are offered to your future students after setting it up.

How to set up PagSeguro as your payment gateway

1. Navigate to Settings → Financial →  Currency and select  Brazilian Real.

2. In a second tab in your browser, open your PagSeguro account page and navigate to Minha Conta → Preferências → Integrações → Gerar Token. Copy the respective API token.

3. Navigate to the Payment Gateway page, in your LearnWorlds school (Settings → Financial → Payment Gateway), select the PagSeguro gateway, and paste the copied API token, as well as the Pagseguro account email into the respective fields.

If you would like to sell your courses with PayPal as well, you can refer to this article PayPal Payment Gateway and have both payment gateways enabled in your school. 

Payment Process

These are the steps that your users need to follow to complete their purchase. 

1. The user navigates to the Payment page and selects to pay with the Pagseguro gateway:

2. When the user selects Continue with pagseguro a pop-up window will open, where the user can find information about their transaction.

In that window, the email field is auto-completed with the user’s email which can be also replaced. If the mail is not already registered in Pagseguro, the user is requested to enter their information.

3. The user will need to select a payment method, among Credit Card, Boleto or others by clicking on Todas as formas de pagamento (to see all the payment methods available by Pagseguro).

4. Conclude payment. 

Payment Options

Credit Card: The user enters their credit card info and selects a way to pay e.g. the whole amount or installments. These options have been already set by the admin in the PagSeguro system.

In the end, the system grants access to the product(s) and generates an invoice for the transaction.

Boleto: Boleto is created in PagSeguro. When the user takes the Boleto code, then they can postpone the payment for about 3 days, and pay later using that code.

In that case, the transaction will be in Awaiting Payment state and found in the Sales → Awaiting payments as shown below.

When the product will be paid the system will automatically give access to the user and will issue the respective invoice.

In case the payment eventually is not completed then the transaction would be moved from Awaiting Payments to Canceled Sales.

As mentioned above, there are more payment methods available in Pagseguro (by clicking on Todas as formas de pagamento.)

Online Debit (TEF)

Deposit account

...or Balance Insurance.

To sum up, the PagSeguro payment gateway supports the following paying methods:

  • Credit Card:  the payment is processed immediately or within a few hours, depending on your risk rating.

  • Boleto: This type of payment is usually confirmed one to two days after the ticket-boleto payment. The ticket maturity is 3 days.

  • Online Debit (TEF): This type of payment is usually confirmed within a few hours.

  • Balance Insurance: The buyer had sufficient balance in his Pagseguro account and paid in full for the transaction using their balance.

  • Deposit account: The transaction will be confirmed only after the completion of this process, which can take from 2 to 13 business days.


  • You can find out more on how to create Promotions (Coupons), here
  • The Sandbox option needs to be deactivated when the school goes live, to avoid paid course access without payment since, when in sandbox mode, no credit cards will actually be processed. This mode is offered only to test the payment flow & generate sample invoices.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.