Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Submit simple form to worldpay


Go to End


2 Posts   2466 Views

Avatar
vorlich

Community Member, 2 Posts

17 March 2009 at 1:30am

Hi All,

I'm currently migrating a site for a small charity to SS. At present we have the following HTML form to allow online donations to be handled by Worldpay, we don't require WP to post back to our site. I've read the easiest method to do this is to add the form HTML to my template, can anyone point me in the right direction on this, I haven't been able to find the relevant documentation?

<form action="https://select.worldpay.com/wcc/purchase" method="post">

<div class="donatelabel"><label for="amount">Donation Amount [<acronym title="Pounds Sterling/Great Britain Pounds">GBP</acronym>]:</label></div>
<div><input type="text" name="amount" id="amount" /></div>

<div><input class="check" type="checkbox" name="option" value="I am a UK taxpayer and I would like you to claim Gift Aid against my donation " onclick="valuate()" /> I am a UK taxpayer and I would like you to claim Gift Aid against my donation</div>

<div><input type="hidden" name="instId" value="xxxxx" /></div>

<div><input type="hidden" name="cartId" value=" " /></div>

<div><input type="hidden" name="currency" value="GBP" /></div>

<div><input type="hidden" name="testMode" value="0" /></div>

<div><input type="hidden" name="desc" value="Donation" /></div>

<div><input type="hidden" name="address" value="" /></div>

<div><input type="hidden" name="country" value="GB" /></div>

<div><input class="customdonate" type="submit" value="Donate!" /></div>

</form>

Avatar
vorlich

Community Member, 2 Posts

23 March 2009 at 10:34pm

Bump. Anyone?