ID parameter for webhook

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Ertenal
Forum Members
Forum Members
Posts: 19
Joined: Fri Sep 30, 2011 2:28 pm

ID parameter for webhook

Post by Ertenal »

I am writing a module to use the Mollie API (dutch iDeal).

One part of this API is that you can specify an url for a webhook. After a payment Mollie sends a POST request to that url with a variable called 'id'. With this ID you can get the payment status and update your local database.

But the annoying part is, cmsms does not support this 'id' variable. I specified a route in my module but it only shows the layout, not the action contents for this route when i use the 'id' parameter. It works when i remove the 'id' parameter.

This happens with a $_GET['id'] or a $_POST['id'].

Any solutions??
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: ID parameter for webhook

Post by calguy1000 »

You're right. CMSMS uses the id param internally (it's removed in 2.0)

The only viable solution I know of is to use mod_rewrite to rename the variable on incoming requests.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Ertenal
Forum Members
Forum Members
Posts: 19
Joined: Fri Sep 30, 2011 2:28 pm

Re: ID parameter for webhook

Post by Ertenal »

That's a good solution! The only problem is that i have to create something outside the module code. I'm not to happy about that.

If you say it is removed in 2.0 i will wait for that version to release this module.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: ID parameter for webhook

Post by Rolf »

You can download the trunk version of cmsms in the SVN. That is 2.0 and test your module!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”