Connect Cakto

Send your Cakto sales, renewals, refunds and chargebacks to Clakta over a webhook, and credit each sale to the visitor who made it.

Cakto sends your sales, renewals, refunds and chargebacks to Clakta through one webhook: Clakta gives you a URL and a secret, and you paste both into Cakto.

Connect

  1. Go to Project settings → Sales platforms.
  2. Choose Cakto, name the connection, and click Create connection. Clakta generates a webhook URL and a secret. Copy both.
  3. In Cakto, create a new webhook. Paste the URL into its URL field and the secret into its Secret field.
  4. Select every product you sell, and enable the six events below.
  5. Save the webhook in Cakto, then click Finish in Clakta.

The connection is usable the moment it is created (the card reads Added straight away) and sales start arriving once the webhook is saved on Cakto's side.

Events to select

EventWhat it does in Clakta
Compra aprovadaRecords the sale.
Compra recusadaRecords a declined purchase.
ReembolsoMarks the order refunded.
ChargebackMarks the order refunded.
Assinatura renovadaRecords each renewal as its own sale.
Renovação de assinatura recusadaRecords a renewal that failed.

Extra events are harmless: anything Clakta does not handle is acknowledged and ignored. But leave Assinatura renovada out and you only ever see the first payment of a subscription, because a renewal never fires Compra aprovada.

Turn on the Clakta script

To credit each sale to the visit that brought it, install the Clakta script on the pages that link to your Cakto checkout. The script adds the visitor's session to the checkout on its own, so there is nothing else to set up. Projects in privacy-friendly mode don't send this session.

If you build the checkout in your own code

For a checkout the script can't see, such as a redirect from your server, add the session to the link yourself:

clakta.decorateCaktoUrl(url) does the same job.

Troubleshooting

Related articles