Klevr Product Documentation logo

CIJ Marketing Event Payments with Klevr Portal

The CIJ Marketing Event payment process allows event attendees to pay online through Stripe via the Klevr Portal.

Overview

The CIJ Marketing Event payment process allows event attendees to pay online through Stripe via the Klevr Portal. Once payment is completed, the event entry is marked as paid through the CIJ API and is subsequently converted into an event registration asynchronously.

Prerequisites

  • A Klevr Portal instance configured and accessible.
  • Stripe configured as the payment provider.
  • CIJ Event Management configured in Dynamics 365 Customer Insights Journeys.

Payment Configuration

1
Configure the CIJ Payment Provider

Configure the CIJ Payment Provider to point to the Klevr Portal event payment endpoint:

https://<your-klevr-portal-url>/api/_eventregistration/?

The trailing slash and question mark is important, CIJ injects querystring parameters, but do not add the ?

When a participant chooses to pay for an event, CIJ will redirect the user to this endpoint where the Klevr Portal will initiate the Stripe payment process.

2
Configure the Thank You Page

Set the Dynamics 365 CE environment variable:

klevr_KlevrPortalMarketingPaymentThankYouURL

This determines where users are redirected after a successful payment.

Use a relative URL beginning with /:

/message?subject=Thank You&message=We have received your payment.

Using a relative path allows the Klevr Portal to automatically prepend the current portal domain, making deployments and releases simpler across development, test, and production environments.

You can also add &borderless=1 to the url to get the portal to hide the header and footer if you want a simple, clean look and feel.

If the thank you page is hosted outside of the Klevr Portal, specify a full absolute URL, e.g:

Default Value

The /message... url above is the default and will show a simple thank you message to the user.

Payment Processing Flow

  1. A user registers for a CIJ event that requires payment.
  2. CIJ redirects the user to the configured Klevr Portal payment endpoint: /api/_eventpayment/?purchaseid=xxx
  3. Klevr Portal retrieves the cost and currency from the Event Purchase record created by completing the CIJ form, and initiates payment through Stripe.
  4. After successful payment, the user is redirected to the configured Thank You URL.
  5. A Stripe webhook on the portal is called once Stripe processes the payment.
  6. The Klevr Portal webhook calls the CIJ API to mark the event entry as Paid.
  7. CIJ asynchronously converts the paid event entry into a registration record.

Important Notes

  • Payments are processed using Stripe.
  • No Klevr Financial Transaction record is created as part of this process.
  • The portal updates the payment status through the CIJ API.
  • Event registration creation occurs asynchronously after the event entry has been marked as paid.
  • Using a relative Thank You URL is recommended to reduce environment-specific configuration during deployments.

Summary

SettingValue
CIJ Payment Provider URL{KlevrPortalUrl}/api/_eventregistration/?
Environment Variableklevr_KlevrPortalMarketingPaymentThankYouURL
Recommended Thank You URL/message?subject=Thank You&message=We have received your payment.
Payment GatewayStripe
Creates Klevr Financial TransactionNo
Registration CreationAsynchronous via CIJ API after payment

Last updated on