RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0] Fully Automated Donation Store System

peepeetree

Sorceror
Hello !

Sorry to undig the topic, but I thought some other people like me might want to give a try at this script ... and spend hours (like me) trying to make it work. lol

I actually did ! It works now. If you want, I can try to help people who encounter problems.

In your specific problem, romanthebrain, I think you need to enable global variables in your php.ini, like said before. It worked for me.

Now, I will try to work on and "add to cart" system, or maybe optimize the code like tried above to remove the global variables.
And eventually, make a guide on all the problems one can encounter with this script.

btw, thank you to the maker of this script ! :)

-Rek-

regnakhan any chance you could upload the working version you have for 2.2 so that we don't have to go through the 7 pages trying to work out the issues?
 

regnakhan

Sorceror
regnakhan any chance you could upload the working version you have for 2.2 so that we don't have to go through the 7 pages trying to work out the issues?

Hi !

Here are the files I currently use on my shard. I have removed all password information (hopefully ^^ plz tell me if I have left some private information).

But I didn't do much change to the original files. I advice you to take the downloadable version from the Google project files.

All the hard work comes from configuring the server.

For a quick reminder of the problems I encountered, I should first specify I am on Linux (Ubuntu 12.10) with Mono. So, the main work was to configure ODBC on Linux. I think the solution was use libmyodbc, and configure the odbc.ini and odbcinst.ini (if I quite remember, I had to create a symbolic link from libodbc.so to libmyodbc5W.so, which I had downloaded from MySQL website).
Another problem was about a missing symbolic link from /tmp/mysql.sock to /var/run/mysqld/mysqld.sock
And also, the global variables need to be activated in your php.ini (of course, you can still optimize the code to remove the global variables, like tried above).

Well, if you have problems of that kind, I can try to help you (mainly on Linux, but I can try to help on Windows too)

Oh, about website integration, as I used Joomla, I found a component to help. It's called Jumi.

It's about all I can say to help you get this Script working. If you encounter problems, don't hesitate to contact me or post here :)

Now, I am working on rewriting the PHP files so that one can use and "Add to cart" option. But it's taking me more time than I thought. lol. I'll let you know if I can manage to do something that works ^^
 

Attachments

  • DonationStoreFiles.zip
    17.2 KB · Views: 32

Madogi

Squire
hate to bring this back to life but ive installed this on my system and it constantly just takes me to paypal.com when i go to use it...... ive set up my ipn but nothing seams to be workin
 

regnakhan

Sorceror
hate to bring this back to life but ive installed this on my system and it constantly just takes me to paypal.com when i go to use it...... ive set up my ipn but nothing seams to be workin

Hey ! What is the code of your Paypal html buttons ?

It should look like something like this :
Code:
<form action='http://www.paypal.com/cgi-bin/webscr' method='post'>
<!-- Identify your business so that you can collect the payments. -->
<input type='hidden' name='business' value='[removeforsecurityreasons]'>
<!-- Specify a Donate button. -->
<input type='hidden' name='cmd' value='_xclick'>
<!-- Specify details about the contribution -->
<input type='hidden' name='item_name' value='Ethereal Horse'>
<input type='hidden' name='item_number' value='2'>
<input type='hidden' name='amount' value='5'>
<input type='hidden' name='undefined_quantity' value='1'>
<input type='hidden' name='currency_code' value='EUR'>
<input type='hidden' name='tax' value='0'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='notify_url' value='[removeforsecurityreasons]'>
Game account name: <input type='text' name='custom'><strong><font style='color: red;'>Remeber to fill your account name here!</font></strong><br/>
<!-- Display the payment button. -->
<input type='image' name='submit' border='0' src='https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif' alt='PayPal - The safer, easier way to pay online'>
<img alt='' border='0' width='1' height='1' src='https://www.paypal.com/en_US/i/scr/pixel.gif' >
</form>
 

Madogi

Squire
yeah thats exacly how i have it and yeah still dosnt work has paypal made a few changes that we need to do to get this to work?


Code:
<form action='http://www.paypal.com/cgi-bin/webscr' method='post'>
<!-- Identify your business so that you can collect the payments. -->
<input type='hidden' name='business' value='&&&&&&&&&&&u'>
<!-- Specify a Donate button. -->
<input type='hidden' name='cmd' value='_xclick'>
<!-- Specify details about the contribution -->
<input type='hidden' name='item_name' value='GM Skillball'>
<input type='hidden' name='item_number' value='27'>
<input type='hidden' name='amount' value='5'>
<input type='hidden' name='undefined_quantity' value='1'>
<input type='hidden' name='currency_code' value='AUD'>
<input type='hidden' name='tax' value='0'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='notify_url' value='&&&&&&&/donation_paypal_ipn_handler.php'>
Game account name: <input type='text' name='custom'><strong><font style='color: red;'>Remeber to fill your account name here!</font></strong><br/>
<!-- Display the payment button. -->
<input type='image' name='submit' border='0' src='https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif' alt='PayPal - The safer, easier way to pay online'>
<img alt='' border='0' width='1' height='1' src='https://www.paypal.com/en_US/i/scr/pixel.gif' >
</form>
 

regnakhan

Sorceror
Can you discribe a bit more when the problem occurs ?

On my donation store, everything seems to be working. So I guess Paypal didn't change anything (or not much).

This is just a guess, but isn't there a problem with your business paypal account ?
 
Top