SMS payments in Mu OnlineYou will learn how to: ● create a multi-price service for Mu Online ● receive automatic payments ● update users points ● test your service ● download file from http://sourceforge.net/projects/sms-mu-online/files/
IntroductionYou will learn how to receive automatic sms payments inMu Online without doing anything manual. Users canenjoy their points right away without waiting hours oreven days.If you still dont have a PayGol account please start bycreating one from this link www.paygol.com/register
Follow these steps:● Download the file from http://sourceforge.net/projects/sms-mu-online/files/● Upload the paygol.php file to your server.● Create a new service of type Multi-price and fill all the fields, follow this link http://www.paygol.com/newservice For this example we will create the following options: -An input field where the player can enter his character or username -And the next prices with their web points: 100 web points = €1 200 web points = €2 300 web points = €3
Here you can see a picture about how your service creatorwill look like:Dont forget to save(click on the yellowsave button) allchanges for theseoptions button
On field URL Background add the full path where the paygol.php file is located (e.g.:http://www.myserver.com/paygol.php).This file will be called after every payment has been processed,sending you several parameters to make all the processautomatic.Save all changes and set your service as Testing and test yourservice until you are sure is working as you want.
Edit your paygol.php file and replace the "xxxx" by the realdata to connect to your database, you will see something likethis://set host, username and password for DB$dbhost = "xxxx";$dbuser = "xxxx";$dbpass = "xxxx";$dbname = "xxxx";
Pay attention on the lines:$custom = $_GET[custom];$points = $_GET[points];$custom is the variable where the username or character of thepayer will be stored.$points is the total of web points that user paid for.
Adding the pay buttonClick on the tool button you see below and paste the piece ofHTML code into your web page.
On this section you will see 2 different ways to use your service, withPop-up and Post. For this example we will use Pop-up. Copy all thecode into a HTML page.... test.html for example.
Trying your serviceBy clicking your servicebutton you will now seeyour service working
Testing your serviceGo to My services and change the status of your servicefrom Testing
Now press the small red arrow, choosedemo using post or popup mode.Payment screen will display now in testmode (Blue tube indicates test mode)Notice the name of the payment screen isthe one you entered when you created theservice.We used Test Service as our service name.Test Service £1.00, instruction states: SendGOL 813725 to phone number 88080You are supposed to send this and receive apin code , you dont need to do this in testmode.Your test pin code will be 123456, you mustenter this pin on the field and press OKWait for valid confirmation, after this you willbe redirected to your designated SuccessURL.
Thats all!At this point your game would be fully working acceptingautomatic sms payments with PayGol.