Automatic Payments in GunZ using PayGol

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

description

Learn how to accept Automatic payments using PayGol in GunZ

Transcript of Automatic Payments in GunZ using PayGol

Page 1: Automatic Payments in GunZ using PayGol

Automatic SMS payments in Gunz using PayGol

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

Page 2: Automatic Payments in GunZ using PayGol

You will learn how to receive automatic sms payments in Gunz 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: Automatic Payments in GunZ using PayGol

Follow these steps:

● Download the file from:● https://sourceforge.net/projects/sms-payments-gunz/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: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

Trying your service

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

Page 12: Automatic Payments in GunZ using PayGol

Testing your service

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

Page 13: Automatic Payments in GunZ using PayGol

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: Automatic Payments in GunZ using PayGol

That's all!

At this point your Gunz game would be fully working accepting

automatic sms payments with PayGol.

Have Fun !!!