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

AAC Znote AAC - Issues with pagseguro shop points

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,210
Solutions
35
Reaction score
206
When 'click in buy points' and select pagseguro method.
I selected 10 points, and the page show it:
1569273047832.png
i wand to change, to add the points (that player was showed) before "Premium Points" too
1569273088265.png
PHP:
    <h2>Select your points:</h2>
    <form target="pagseguro" action="https://<?=hhb_tohtml($pagseguro['urls']['www'])?>/checkout/checkout.jhtml" method="post">
        <input type="hidden" name="email_cobranca" value="<?=hhb_tohtml($pagseguro['email'])?>">
        <input type="hidden" name="tipo" value="CP">
        <input type="hidden" name="moeda" value="<?=hhb_tohtml($pagseguro['currency'])?>">
        <input type="hidden" name="ref_transacao" value="<?php echo (int)$session_user_id; ?>">
        <input type="hidden" name="item_id_1" value="1">
        <input type="hidden" name="item_descr_1" value=" HERE <?=hhb_tohtml($pagseguro['product_name'])?>">
        <input type="number" name="item_quant_1" min="5" step="1" value="5">
        <input type="hidden" name="item_peso_1" value="0">
        <input type="hidden" name="item_valor_1" value="<?=$pagseguro['price']?>">
        <input type="submit" value="  DONATE  ">

1569273283530.png
I wrote the word HERE, where I should "get" the value of the points that was chosen by the player.
How can i get this value that player chosen?
 
I need to know whats stored inside $payment:

There might be a $payment->quantity property or something.
$item = $payment->items->item[0]; might also be the issue, perhaps each quantity is considered an item in the API response from pagseguro service.

Under the line:
PHP:
$payment = simplexml_load_string($rawPayment);

What response do you get when you write:
PHP:
var_dump($payment);
 
I need to know whats stored inside $payment:

There might be a $payment->quantity property or something.
$item = $payment->items->item[0]; might also be the issue, perhaps each quantity is considered an item in the API response from pagseguro service.

Under the line:
PHP:
$payment = simplexml_load_string($rawPayment);

What response do you get when you write:
PHP:
var_dump($payment);
hi! thx for answer, but nothing change when changing it:
var_dump($payment);

edit: i think is it, but i dont know how can i add:
Code:
$points = $item->quantity;
 
Last edited:
Ahh right, its an IPN file, you don't actually see whats going on there. Hmm

replace
PHP:
var_dump($payment);

with
PHP:
error_log(var_export($payment, true));

And look in the error.log file for your web server for the message.

$item->quantity seem to represent the points, not the purchased quantity. Perhaps there is a separate property like $item->count that we need to consider.

Is it true that they no matter what they choose, do get the points for "1x" ? Problem is that the points they get don't properly multiply according to their purchase count?
 
Ahh right, its an IPN file, you don't actually see whats going on there. Hmm

replace
PHP:
var_dump($payment);

with
PHP:
error_log(var_export($payment, true));

And look in the error.log file for your web server for the message.

$item->quantity seem to represent the points, not the purchased quantity. Perhaps there is a separate property like $item->count that we need to consider.

Is it true that they no matter what they choose, do get the points for "1x" ? Problem is that the points they get don't properly multiply according to their purchase count?
hi bro, i serached for error.log but dont have any file with this name.
about 1x, i have not tested the system yet, when i test i'll tell you about it
 
Directory is something along the lines of: (Depending on OS and webserver)
/var/log/nginx/error.log
/var/log/apache2/error.log
UniServerZ\core\apache2\logs\error.log
xampp\apache\logs\error.log
 
Directory is something along the lines of: (Depending on OS and webserver)
/var/log/nginx/error.log
/var/log/apache2/error.log
UniServerZ\core\apache2\logs\error.log
xampp\apache\logs\error.log
hey bro i tested pagseguro,I donated 5 $ and he didn't give me the points, really the system is bugged, it didn't fill any tables
edit: I have one code that works fine in Gesior, someaone can make this work for Znote AAC?
 
Last edited:
hey bro i tested pagseguro,I donated 5 $ and he didn't give me the points, really the system is bugged, it didn't fill any tables
edit: I have one code that works fine in Gesior, someaone can make this work for Znote AAC?

Shouldn't fill any tables, but an object should be exported and logged into error.log.

But yeah, post the gesior compatible code.
 
Shouldn't fill any tables, but an object should be exported and logged into error.log.

But yeah, post the gesior compatible code.
I could not generate or log added
var_dump ($ payment);
I'll try again.
And here a code with pagseguro that works fine in gesior. I have translated some importtant parts for help u.
 

Attachments

Back
Top