Stripe and Dynamics 365 Marketing Integration for Events

365 Mechanix are excited to announce the latest integration between Stripe and Dynamics 365 Marketing. Now, you can collect payment directly from your 365 Marketing events using the Stripe payment gateway.

When you get this solution, all the components will be deployed into your environment – no data sovereignty concerns so that you can get up and running in no time.

Get the integration now

How we implemented this solution

We recently had a customer who required Stripe for processing event registration payments. We developed this custom, high level solution which is detailed below:

  • Deployed 2 Azure functions that are triggered on http. The first function is what is called when the attendee attempts to register. It validates and extracts the registration details and then creates a payments session based on the Stripe key provided. It returns a payment session, from which our payment gateway page, can redirect the customer to the actual payment page in Stripe. (The other function is to finalise the registration once payment is complete. This is done as a webhook within Stripe)
  • Create a custom payment web page as described in the Microsoft docs link above. We added the Stripe checkout reference script. This allows us to redirect to the actual payment page once we have the token generated.
  • Within the event record itself in Dynamics, we set the payment gateway to the page we created above:
  • We then created passes for the event….and that was it!

This was the flow of the registration. The attendee populated their details, chooses the pass and clicked on checkout:

Our payment gateway page loads and makes the call to the Azure function whilst it displays a ‘Processing’ page.

After a short while, they were redirected to the Stripe payment page

Now what’s really AWESOME about this Stripe payment gateway is that on mobile, the user can use their existing Wallet functionality to pay for the event! This creates a seamless user experience.

Once the attendee completed the payment, they were redirected to the Registration success page:

Whilst back in Dynamics, the event registration record was created as our second Azure function, we setup as a webhook in Stripe, has been triggered:

For more information about how you can integrate this solution into your business, contact the team at 365 Mechanix.