/    Sign up×
Community /Pin to ProfileBookmark

WorldPay Payment Script…

Hi,

I have over the last few months been TRYING to develop a PHP script to allow the company I work for to accept payments of any amount via our website. I had thought that the script would be relatively simple but as I have researched / learnt new things it has grown quite large and is now a little beyond my abilities.

If anyone is interested in helping me finishing off the last 20% I would be very grateful.

[b]The Brief[/b]

I have create a freely accessible HTML form that takes the user’s:
* name
*
email address
* type of payment
*
amount to be payed

To protect us from users adding too many zeros to their payment amount it queries them if they try to pay more than £500.

Once all this is done, it then sends all the info to WorldPay where they take all the credit card numbers etc and actually deal with the money (obviously the gathering of name / email address is useless at the moment but will hopefully be used in the future PLUS we forward them to WorldPay’s gateway).

The part I am having trouble with is sending the headers to WorldPay (I am currently using GET because I cannot get POST to work AT ALL).

I am not sure what to do with the Source Code, as it is 260 lines long (so far)..?

Also, because I use Dreamweaver’s template system, I need to send the headers after other HTML has been ‘executed :eek:’. I’m using ob_start but haven’t quite got it working yet ?

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @atw spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...