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 Mollie Connect, you can become an extension of Mollie.
This article explains which technical steps are required to, for instance, use Application fees.
First off, there are some general steps that you have to take in order to get started.
|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 Mollie Connect.||Create a new App here.|
|4. Read the introduction on Mollie Connect.||Here we explain how the Mollie Connect process works:||Overview of Mollie Connect|
|5. Read the instructions about OAuth 2.0.||Here we explain how OAuth works for Mollie Connect.||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.
|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. Click here for an example of an Application fee payment.