#Need some help with Mollie Connect

1 messages · Page 1 of 1 (latest)

crisp geyser
#

Hi,

I needed some help with setting up mollie connect at least some video or some sort since I don’t really understand how the onboarding works for merchants on my SaaS do they get a redirect? Or do I need to do it. Can I autofill certain fields for them or design the page too?

I’m sure that I am missing some documentation from Mollie but at the onboarding part I don’t really understand it.

Does someone here have a good tutorial for it?

limber meteor
#

Hi, let me try to explain 🙂

First, you create an onboarding Link via client-link-api
https://docs.mollie.com/reference/create-client-link
There you have to redirect your customer. This link works like an Oauth2 Connect (Authorization) link, so you can add Scopes, you want to recieve.
https://docs.mollie.com/reference/authorize

Mollie Documentation

🚧 Open beta: This feature is currently in open beta, and the final specification may still change. Link a new or existing organization to your OAuth application, in effect creating a new client. The response contains a clientLink where you should redirect your customer to. The clientLink URL behave...

Mollie Documentation

GET https://my.mollie.com/oauth2/authorize The authorize endpoint is a hosted OAuth authorization screen. It follows the OAuth 2 standard. You can use it to gather consent from another Mollie merchant for your app to access certain API resources on their behalf. You should construct an authorization...

crisp geyser
#

Hey @limber meteor thanks for the help I am gonna try this soon I will give you an update 😄

warped coral
#

hey @crisp geyser basically you create a client link and redirect your vendor to the link. a mollie signup flow will appear. if you have a partner account (which you need to use the client link api) you have a new menu item "Customers" there you see your connected vendor Mollie accounts.

after the create client link you add URL Parameters to the link your vendor will be redirected.

redirect_uri, grant_type, code, state, scope, etc.

after your vendor signed up with mollie he will get redirected to your redirect url. there you fetch the "code" from the url parameters. you can aswell use the "state" to verify that it is a redirect that you created. so you would pass a nonce or other unique id to state before redirecting the client.

with the "code" from the url you create a refresh token with: https://docs.mollie.com/reference/generate-tokens

you save this refresh token in your database for the client. and now you can use the api in the name of your vendor by creating an access token with this refresh token.

hope this helps. for me it was also a bit trial and error in the beginning.

crisp geyser