Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebHook #3

Open
baukehoeree opened this issue May 11, 2020 · 1 comment
Open

WebHook #3

baukehoeree opened this issue May 11, 2020 · 1 comment

Comments

@baukehoeree
Copy link

Hi guys,

First of all, awesome that you made a ES6 solution for this.
The reason I opened an issue is to ask how you catch a change of payment status? Has the package a webhook implemented or how do you guys advise to implement this?

Thanks in advance

@CherryNerd
Copy link
Member

Hi @HoereeBauke
First of all, Mollie-es6 is mostly maintained for security purposes, but the new Mollie v2 API is currently being implemented in TypeScript in the newer molliejs module (also on NPM).

Catching a change of payment status is as followed:
You create a new payment with a redirect URL. This redirect URL is the URL mollie will redirect the user to after the payment has been completed.
Within this URL, you check the status of the payment and update it in your database.

The new molliejs module will also have an "examples" folder for future references.

It's as simple as that.
Please consider registering through us at:
https://www.mollie.com/en/signup/2269941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants