• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Paypal Help Client Images!

kevinpiojo

New Member
Joined
May 29, 2017
Messages
26
Reaction score
1
Location
Spain
Hello guys, I'm trying to finish my server, and I never did this, I would like someone to help me just tell me what to do, I'll try.

I also have problems when placing the images of the store,


I am going to explain the steps that I made use gesior 2012

htdocs/custom_scrips/paypal/config.php


PHP:
<?php
$paypal_report_url = 'http://cimmeria.sytes.net/index.php?subtopic=forum&action=show_board&id=5';   //  <---url of errors of my web forum
$paypal_return_url = 'http://cimmeria.sytes.net/index.php?subtopic=buypoints';     //  <---previous web page to paypal web
$paypal_image = 'https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif';
$paypal_payment_type = '_xclick'; // '_xclick' (Buy Now) or '_donations'

$paypals[0]['mail'] = '[email protected]'; // your paypal Gmail example
$paypals[0]['name'] = '150 premium points on server Cimmeria.sytes.net for 00.01 EURO'; 
$paypals[0]['money_amount'] = '00.01';
$paypals[0]['money_currency'] = 'EUR'; // USD, EUR, more codes: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_currency_codes
$paypals[0]['coins'] = 150;

here no longer touch anything else.

next step as my server is 10 / 12.00 tfs 1.2 which gessior scrip I get premiunt point and I pass to coins so
xamp / htdocs / pages / paypal.pgp

PHP:
<?php
if(!defined('INITIALIZED'))
    exit;
if($logged)
{
    require_once('./custom_scripts/paypal/config.php');
    echo '<h2>Automatic PayPal shop system</h2><br><b>Here are the steps you need to make:</b><br>
    1. You need a valid creditcard <b>or</b> a PayPal account with a required amount of money.<br>
    2. Choose how many points you want buy.<br />
    3. Click on the donate/buy button.<br>
    4. Make a transaction on PayPal.<br>
    5. After the transaction points will be automatically added to your account.<br>
    6. Go to Item shop and use your points.</b><br /><br />';
    echo '<style>
    table
    {
    border-collapse:collapse;
    }
    table, td, th
    {
    border:1px solid black;
    }
    </style>';
    echo '<table cellspacing="0" style="width:100%"><tr><td colspan="2"><b>Select offer:</b></td></tr>';
    foreach($paypals as $paypal)
    {
        echo '<tr><td>Buy ' . $paypal['coins'] . ' coins for ' . $paypal['money_amount'] . ' ' . $paypal['money_currency'] . '</td><td style="text-align:center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <input type="hidden" name="cmd" value="' . $paypal_payment_type . '">
        <input type="hidden" name="business" value="' . $paypal['mail'] . '">
        <input type="hidden" name="item_name" value="' . htmlspecialchars($paypal['name']) . '">
        <input type="hidden" name="custom" value="' . $account_logged->getID() . '">
        <input type="hidden" name="amount" value="' . htmlspecialchars($paypal['money_amount']) . '">
        <input type="hidden" name="currency_code" value="' . htmlspecialchars($paypal['money_currency']) . '">
        <input type="hidden" name="no_note" value="0">
        <input type="hidden" name="no_shipping" value="1">
        <input type="hidden" name="notify_url" value="' . $paypal_report_url . '">
        <input type="hidden" name="return" value="' . $paypal_return_url . '">
        <input type="hidden" name="rm" value="0">
        <input type="image" src="' . $paypal_image . '" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
        </form></td></tr>';
    }
    echo '</table>';
}
else
    echo 'You are not logged in. Login first to buy points.';


line 27 change premium_points for coins
in this way

PHP:
echo '<tr><td>Buy ' . $paypal['premium_points'] . ' premium points for ' . $paypal['money_amount'] . ' ' . $paypal['money_currency'] . '</td><td style="text-align:center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
echo '<tr><td>Buy ' . $paypal['coins'] . ' coins for ' . $paypal['money_amount'] . ' ' . $paypal['money_currency'] . '</td><td style="text-align:center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">

that's all the money received but not the points

theme photos in the store
me config:

Lua:
coinImagesURL = "http://cimmeria.sytes.net/store/"
coinPacketSize = 25

me gamestore/xml 1 example

XML:
 <category name="Blessings" description="" state="new" icons="CategoryBlessings.png">

my htdocs / store / and inside I have 2 folders 32 and 64 and inside I have these images with the transparent background

32
Xv9UKaR.png


64
4mvOnIM.png


when i finish all the steps restart xamp server and client
Thanks for the help and I do not know if I explained myself well.
REPP +++ help
 
I Would recommend using this link for you images in client i got my own but it didn't work too and when i used this link worked as charm
Code:
storeImagesUrl = "http://static.tibia.com/images/store/"
you should write it like this to work with this link
Code:
icons="Category_Blessings.png"
 
my config
Code:
coinImagesURL = "http://static.tibia.com/images/store/"
it's something different from you .And this so?
Code:
coinPacketSize = 25
?
just sent you the line you need or config.lua copy paste it like this please and add the icon as i wrote and iam sure it will work
 
these were my changes
Code:
storeImagesUrl = "http://static.tibia.com/images/store/"
storePacketSize = 25
restart server and xampp, and nothing
 
Back
Top