Help Center
Language
Language
Language
Theme

Perfect Pay

Connect Perfect Pay to your Cademí: the product or plan code, the portal token and the webhook with all events.

Connect Perfect Pay to your Cademí so each approved purchase gives the student access on its own. You need the product code (or the plan code), the token of your Perfect Pay portal and a webhook pointing to Cademí.

1. Create the delivery in Cademí

  1. In the Cademí dashboard, open Sales → Deliveries and add a delivery.
  2. In Select a Gateway, pick Perfect Pay.
  3. In Delivery Name, enter a name that helps you recognize it later.
  4. In Sales Mode, choose One-time sale or Subscription, matching the product on Perfect Pay.
  5. The Gateway connection section shows the Product or Plan Code and Token fields and the Postback URL.

Keep the delivery open: you come back to it in the next steps.

2. Find the product or plan code

  1. In the Perfect Pay dashboard, open Produtos → Meus Produtos (Products > My products) in the side menu.
  2. To use the whole product, pick the product in the list and copy its code (usually eight digits).
  3. To use a specific plan, copy the plan code.
  4. Paste the value into Product or Plan Code in the Cademí delivery.

Repeat for each product you sell through Perfect Pay and deliver through Cademí.

3. Copy the token

If you already registered your Perfect Pay token in another delivery, pick it in Use an already registered token and go to step 4.

  1. In the Perfect Pay dashboard, open Ferramentas (Tools) in the side menu and click Postback - Webhook.
  2. Copy the Token that Perfect Pay shows on that screen.
  3. Paste the token into Token in the Cademí delivery.

4. Set up the webhook

  1. Still under Ferramentas → Postback - Webhook, create a new configuration.
  2. Choose the products you deliver through Cademí.
  3. In Eventos (Events), choose Todos os Eventos (All events).
  4. In the URL field, paste the Postback URL of the delivery.
  5. Click Salvar (Save) and, in Cademí, save the delivery.

If you chose only some products: each time you start delivering a new product through Cademí, add it to this webhook configuration.

On this page