Search

I have never developed an extension but saw an opportunity, so here I am. My PHP is poor and my knowledge of the guts of Symphony is poorer.

This extension is a hacked version of Max Wheeler's Paypal Payments extension. So I take no credit whatsoever but am hoping that by hacking and copying, I will learn to create in future.

My extension (in the first instance at least) will:

  • Create a table to log Worldpay payments.
  • Incude an event which will listen for POSTs from Worldpay, update the log table with the POST data and update data in an existing section on successful payment.

Differences from the Paypal Payments extension

  • Whereas Paypal requires a callback to the Paypal server, my extension (to start with) will simply parse POST data from Worldpay and update the Symphony database accordingly.
  • This extension will not use a filter to send data to Worldpay, that will all be hard-coded in the XSLT.

I am hoping that a seasoned Symphonist might be able to eyeball my code and tell me where I'm going wrong. I can repay you only in gratitude and German beer.

Its also a first time on Github for me, so please be patient. My repo is here:

https://github.com/stuartgpalmer/worldpay-payments

At present the table creation part works fine, but the event does;t parse the post data. I'm testing it with this form:

<form method="post" action="http://popchoir.eyes-down.net/worldpay">
<input type="hidden" name="cartId" value="Test" />
<input type="hidden" name="amount" value="Test" />
<input type="hidden" name="cost" value="Test" />
<input type="hidden" name="desc" value="Test" />
<input type="hidden" name="currency" value="Test" />
<input type="hidden" name="name" value="Test" />
<input type="hidden" name="email" value="Test" />
<input type="hidden" name="transId" value="Test" />
<input type="hidden" name="transStatus" value="Test" />
<input type="hidden" name="transTime" value="Test" />
<input type="submit" value="Send" />
</form>

Thanks in advance for any help or comments

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details