How do you implement Application fees via Connect for Platforms?

For many years now, Mollie has been offering a reliable platform for receiving payments. Some time ago, we opened up our platform to external developers, so they can use our platform to build their own products, services, and applications.

This means that it's possible to integrate Mollie's services in an application using API’s based on OAuth 2.0. In doing so, we've made it possible to legally offer payments services without having to comply with the same rules that we do. Via Connect for Platforms, you can become an extension of Mollie.

This article explains which technical steps are required to, for instance, use Application fees.

Preparatory steps

First off, there are some general steps that you have to take in order to get started.

Steps Explanation Documentation
1. Create a free Mollie account. As a developer, you also need your own Mollie account. Click here to sign up
2. Sign up with Mollie as a developer. In order to create an App, you will have to activate this: Click on the button “Start as a developer“.
3. Create your own App. You need this App to use Connect for Platforms. Create a new App here.
4. Read the introduction on Connect for Platforms. Here we explain how the Connect for Platforms process works: Overview of Connect for Platforms
5. Read the instructions about OAuth 2.0. Here we explain how OAuth works for Connect for Platforms. OAuth – getting started.
6. Contact Mollie. Before we allow you to deduct fees from a Mollie merchant's transactions, we would like to know a little more about your platform and your application.  

Setting up payment via Application Fee

The next steps clarify how to divide a transaction between two Mollie accounts.

Steps Explanation Documentation
1. Ask the merchant's permission for the necessary rights. Each merchant decides for themselves whether or not they want to grant the requested rights. Use the Authorize function of the Connect API.
Read here which rights are possible. Ask for payments. Write permission to create payments on behalf of the merchant. You can then add Application Fee to the payment as well.
2. obtain an access token for the merchant's account. You need this key to be able to use the requested rights. The Authorize function yields a auth token. You have to convert this token into an access token. Use the tokens endpoint in the Connect API.
3. Retrieve all of the merchant's profiles. Each payment is linked to a profile. You have to state which of the merchant's profiles the payment should be linked to. Use the List profile function in the Profiles API. If the merchant has multiple profiles, you have to allow them to select one.
4. Set up a payment to split up. Two additional parameters are required in the Create Payment function: profileId and Application Fee. To do this, use the standard create payment function in the Payments API.

The transaction now appears in the merchant's account, and the stated Application Fee is added to your account. 


Read also:


Can't find what you're looking for?

Please contact our support, for help.