• 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!

[MyAAC][Plugin] Gesior Shop System

Is there a way to replace the pagseguro with paypal? Ive been looking around but i cannot find anyone who has done it.
 
Any fix for that?

unknown.png

unknown.png



* EDIT *

Fixed.
The plugin directories are out of date, the paths have changed and it is no longer system/pages/admin but admin/pages/gift.php
i did that and still with the same problem
 
Is there a way to replace the pagseguro with paypal? Ive been looking around but i cannot find anyone who has done it.

Seems you are using unofficial (opentibiabr) version, which has pagseguro enabled by default.

If you want to replace it - then you need to install this plugin (gesior-shop-system) and then replace the addresses in admin panel - Menus. Replace shop category with "?points" URL.

Like on the screen: (its from admin panel - Menus page)

1725129100522.webp

i did that and still with the same problem

What version of myaac? (you can see it in common.php file), and also what version of the gesior plugin? (you can see that in admin panel - Plugins)
 
Czy zainstalowałeś go w panelu kontrolnym, czy po prostu rozpakowałeś plik .zip?

W każdym razie:

Dostępna pamięć podręczna w panelu administracyjnym lub za pomocą polecenia:

php aac cache:wyczyść

W folderach są uszkodzone.
it works, thank you :D

How to turn off the item shop completely, but still buy points?
 
I have enabled shop with

$config['gifts_system'] = true;

however its still invisible.

I am using 1.0-RC myaac and gesior shop system 6.0-rc - latest versions

1728830627926.webp

any ideas why ?
 
PHP:
<?php
/**
 * enable gifts system?
 * paste this into config.local.php in your main directory:
 *         $config['gifts_system'] = true;
 */

$config['donation_type'] = 'points'; // what should be added to player account? points/coins

// display most popular items bought in shop (top #3)?
$config['enable_most_popular_items'] = true;

/**
 * default colors of outfits/addons in addons category
 * doesn't matter for othire and other servers without addons
 * you can use this outfit generator: http://sleqqus.idl.pl/tlg
 */
$config['shop_outfit_colors'] = array(
    'head' => 4,
    'body' => 38,
    'legs' => 87,
    'feet' => 114,
);

/**
 * paypal.com configuration
 */
$config['paypal'] = array(
    'enabled' => true,
    'email' => '[email protected]',
    'contact_email' => '', // if empty, email is used
    'item_name' => 'your-domain.com donation.',
    'payment_type' => '_xclick', // '_xclick' (Buy Now) or '_donations'
    'currency_code' => 'EUR', // https://developer.paypal.com/docs/integration/direct/rest/currency-codes/
    'use_sandbox' => false, // set to true if you want to test IPN in sandbox mode
    'terms' => true, // display terms?
    'options' => array( // cost in EUR => points
        '5.00' => 30,
        '10.00' => 60,
        '20.00' => 130
    )
);

/**
 * stripe.com configuration
 * notify URL should be set in stripe.com: http://your-host.com/payments-notify/stripe
 */
$config['stripe'] = [
    // 'false' blocks new payments, it will still process old payment reports
    'enabled' => true,

    'secret_key' => 'sk_test_asdasd123',
    'endpoint_secret' => 'whsec_asdasd123',

    // defaults should be ok, but you can change
    'success_url' => getLink('gifts') . '?success',
    'cancel_url' => getLink('gifts') . '?cancel',

    'payments' => [
        ['price' => '10', 'currency' => 'USD', 'points' => '100', 'name' => '100 premium points on Your OTS'],
        ['price' => '20', 'currency' => 'USD', 'points' => '200', 'name' => '200 premium points on Your OTS'],
        ['price' => '30', 'currency' => 'USD', 'points' => '300', 'name' => '300 premium points on Your OTS'],
        ['price' => '40', 'currency' => 'USD', 'points' => '400', 'name' => '400 premium points on Your OTS'],
        ['price' => '50', 'currency' => 'USD', 'points' => '500', 'name' => '500 premium points on Your OTS'],
    ],
];

/**
 * fortumo.com configuration
 * rest of the configuration you can do on fortumo.com
 * notify URL should be set in fortumo.com: http://your-host/payments-notify/fortumo
 */
$config['fortumo'] = array(
    'enabled' => true,
    'service_id' => 'your service id here', // get your service id on http://fortumo.com
    'secret' => 'your secret key here' // get your secret on http://fortumo.com
);

/**
 * https://gourl.io configuration
 */
$config['cryptobox'] = array(
    'enabled' => true,

    // to accept all payments types, use this
    // array('bitcoin', 'bitcoincash', 'litecoin', 'dogecoin', 'dash', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'peercoin', 'monetaryunit'),
    'available_payments' => array('bitcoin'),

    // Goto  https://gourl.io/info/memberarea/My_Account.html
    // You need to create record for each your coin and get private/public keys
    // Place Public/Private keys for all your available coins from $available_payments
    'all_keys' => array(
        "bitcoin"  => array("public_key" => "-your public key for Bitcoin box-",  "private_key" => "-private key for Bitcoin box-"),
        //"dogecoin" => array("public_key" => "-your public key for Dogecoin box-", "private_key" => "-private key for Dogecoin box-"),
        //"speedcoin"  => array("public_key" => "21679AA6pwgOSpeedcoin77SPDPUBMgxMq81Fn9nMCnWTGrmnz",  "private_key" => "21679AA6pwgOSpeedcoin77SPDPRV6HU31FlkaNESfjomGq2yD"),
    ),

    'default_language' => "en",
    'default_payment' => "bitcoin",
    'options' => array( // cost in USD => points
        '5.00' => 30,
        '10.00' => 60,
        '20.00' => 130
    )
);


This is my config.php you mentioned, it's not even edited.
Post automatically merged:

I have managed to get it work.

I switched from myaac 1.0-rc to 0.8.18
Switched from gesior shop system 6.0-rc to 5.0-rc
and also switched from latest xampp to latest uniserver.

obraz_2024-10-13_211101845.webp


I assume it is some problem about new release of myaac 1.0-rc, also 1.0-beta.
 
Last edited:
👋 you were completely right.

In 1.0 you enable gifts system in admin panel and not in config.local.php

Just go into Admin Panel : Settings : Shop : Gifts System
 
Do anyone know why /index.php/gifts page look like this for me?
Running MyAAC 1.0-RC with myaac-gesior-shop-system-v6.0


1736331323494.webp
 
Last edited:
Enable development mode in config.local.php

$config['env'] = 'dev';

Then refresh the page, you should see the error.
I got this

PDOException (42000)
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'canary.z_shop_history.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Do you know what i need to do to get it working?

Thanks!

EDIT:

i posted this in my My.ini file and got it working

<span>[mysqld]</span><br><span>sql-mode</span>=<span>"STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"</span>
 
Last edited:
I got this

PDOException (42000)
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'canary.z_shop_history.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Do you know what i need to do to get it working?

Thanks!

EDIT:

i posted this in my My.ini file and got it working

<span>[mysqld]</span><br><span>sql-mode</span>=<span>"STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"</span>

It's fixed in latest version. Seems you were using mysql, and not mariadb.

#all

Information: from now on all plugins are available on the website:


The threads at OtLand won't be updated with latest versions, as it would require a huge amount of time to update them all.
 
Back
Top