3 users online. Create an account or sign in to join them.Users

Search

I’m trying to get my head around implementing the shopping-cart plugin with iDeal payments (a dutch paypal alternative).

In the process, I need to post data (my iDeal customer ID, transaction ID, price and return adress) to the iDeal server.

Most of these are static, but the price is generated using the shopping cart extension. Is there a way to get this data from a datasource, and post it (safely, so no JS!)?

I think the right way to do this would be to have an Event read straight from the DS and execute a POST based on its contents. It would actually be really cool to have this functionality in a more abstract extension.

It’s an unintended way to use the system, but if you’re in a pinch and comfortable with PHP, you can try to use my EXSL Function Manager to build an extension that would read the datasource and execute the POST that way.

If you need to go that route, hit me up on twitter (@ashooner) with any questions.

To what extend do you think I should abstract the event? Do you have any suggestions on it’s functionality?

edit: as I also think this is the easiest (and probably best) way to do this.

As far as I know, there’s no way to redirect POST altered data to another server (without doing a straightup-unmodified redirect). You could check out the PayPal Payments extension to see how it’s been implemented there. It just generates a form that autosubmits via JS, so you still need to reconcile the actual amount paid with the (IPN equivalent) data that’s returned from iDeal.

Hmm.. I really dislike the idea of the user submitting the data to iDeal, as this includes the transaction id aswell. (so people could spoof the return from ideal)

I think I’ll have to use Curl (or something similar) to make the POST request. The only question is: where should I put it? Extension? Event?

Thanks for the help this far!

What you do is really just dependent on how iDeal works. As the PayPal Payments extension uses “PayPal Payments Standard” you need to have the user POST to the PayPal servers as the payment information is entered there. If the users are entering that information on your site and the only bit that takes place at iDeal is the processing, then you can totally use curl to handle the request.

You can probably still look at the the PayPal Payment extension code to get a sense of how you could use an event filter to handle the payment processing (clue).

Ah, I see.

I will just handle the payment itself using iDeal, so curl sounds like the best option. (i guess it works similar to paypay, technically)

Thanks for the info, I will keep you posted!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details