Use PayGol and start accepting automatic payments in DOFUS!!

14
Automatic SMS payments in Dofus using PayGol You will learn how to: Create a multi-price service for Dofus Receive automatic payments Update user's points Test your service Download file from https://sourceforge. net/projects/sms-dofus/files

Transcript of Use PayGol and start accepting automatic payments in DOFUS!!

Page 1: Use PayGol and start accepting automatic payments in DOFUS!!

Automatic SMS payments in Dofus using PayGol

You will learn how to:● Create a multi-price service for Dofus● Receive automatic payments● Update user's points● Test your service● Download file from https://sourceforge.

net/projects/sms-dofus/files

Page 2: Use PayGol and start accepting automatic payments in DOFUS!!

You will learn how to receive automatic sms payments in Dofus without doing anything manual. Users can enjoy their points right away without waiting hours or even days.

If you still don't have a PayGol account please start by creating one from this link www.paygol.com/register

Introduction

Page 3: Use PayGol and start accepting automatic payments in DOFUS!!

Follow these steps:

● Download the file from ● https://sourceforge.net/projects/sms-dofus/files

● Upload the paygol.php file to your server.

● Create a new service of type Multi-price and fill all the fields.

For this example we will create the following options:-An input field where player can enter his character or username-And the next prices with their web points:100 web points = €1200 web points = €2300 web points = €3

Page 4: Use PayGol and start accepting automatic payments in DOFUS!!

Here you can see a picture about how your service creator will look like:

Don't forget to save (click on the yellow save button) all changes for these options button

Page 5: Use PayGol and start accepting automatic payments in DOFUS!!

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 process automatic. Save all changes and set your service as Testing and test your service until you are sure is working as you want.

Page 6: Use PayGol and start accepting automatic payments in DOFUS!!

Edit your paygol.php file and replace the "xxxx" by the real data to connect to your database, you will see something like this:

//set host, username and password for DB$dbhost = "xxxx";$dbuser = "xxxx";$dbpass = "xxxx";$dbname = "xxxx";

Page 7: Use PayGol and start accepting automatic payments in DOFUS!!

Pay attention on the lines:$custom = $_GET[custom];$points = $_GET[points];

$custom is the variable where the username or character of the payer will be stored.

$points is the total of web points that user paid for.

Page 8: Use PayGol and start accepting automatic payments in DOFUS!!

Adding the pay button

Click on the tool button you see below and paste the piece of HTML code into your web page.

Page 9: Use PayGol and start accepting automatic payments in DOFUS!!

Adding the pay button

Click on the tool button you see below and paste the piece of HTML code into your web page. Normally this button goes in the Credits section.

Page 10: Use PayGol and start accepting automatic payments in DOFUS!!

On this section you will see 2 different ways to use your service, with Pop-up and Post. For this example we will use Pop-up. Copy all the code into a HTML page.... test.html for example.

Page 11: Use PayGol and start accepting automatic payments in DOFUS!!

Trying your service

By clicking your service button you will now see your service working

Page 12: Use PayGol and start accepting automatic payments in DOFUS!!

Testing your service

Go to My services and change the status of your service from Testing

Page 13: Use PayGol and start accepting automatic payments in DOFUS!!

Now press the small red arrow, choose demo using post or popup mode.

Payment screen will display now in test mode (Blue tube indicates test mode)Notice the name of the payment screen is the one you entered when you created the service.

We used Test Service as our service name.

Test Service £1.00, instruction states: Send GOL 813725 to phone number 88080

You are supposed to send this and receive a pin code , you don't need to do this in test mode.

Your test pin code will be 123456, you must enter this pin on the field and press OK

Wait for valid confirmation, after this you will be redirected to your designated Success URL.

When you are sure everything is working as you want then go back to your service and set it as Enabled.

Page 14: Use PayGol and start accepting automatic payments in DOFUS!!

That's all!

At this point your Dofus game would be fully working accepting automatic sms payments with PayGol.

Have Fun !!!