Lurk
Active Member
- Joined
- Dec 4, 2017
- Messages
- 336
- Reaction score
- 48
error file showed me this
pagseguro on config.php
on my db,
and
I have the tables in my db and everything in configured right from what I can tell, email, db password and what not
in my config.php I should set ipn to
Code:
PHP Notice: Undefined index: transaction in C:\\xampp\\htdocs\\pagseguro_retorno.php on line 95
PHP Notice: Trying to access array offset on value of type null in C:\\xampp\\htdocs\\pagseguro_retorno.php on line 103
PHP Notice: Trying to get property 'quantity' of non-object in C:\\xampp\\htdocs\\pagseguro_retorno.php on line 104
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 841
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 842
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 843
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 872
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 900
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 901
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 841
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 842
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 843
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 872
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 900
PHP Notice: Undefined index: HTTP_HOST in C:\\xampp\\htdocs\\config.php on line 901
PHP Notice: Undefined index: transaction in C:\\xampp\\htdocs\\pagseguro_retorno.php on line 95
PHP Notice: Trying to access array offset on value of type null in C:\\xampp\\htdocs\\pagseguro_retorno.php on line 103
PHP Notice: Trying to get property 'quantity' of non-object in C:\\xampp\\htdocs\\pagseguro_retorno.php on line 104
pagseguro on config.php
PHP:
$config['pagseguro'] = array(
'enabled' => true,
'sandbox' => false,
'email' => 'MYEMAILISHERE', // Example: [email protected]
'token' => 'MY TOKEN IS HERE',
'currency' => 'BRL'
'product_name' => 'Premium Points',
'price' => 50, // 1 real
'ipn' => "http://".$_SERVER['HTTP_HOST']."/pagseguro_ipn.php",
'urls' => array(
'www' => 'pagseguro.uol.com.br',
'ws' => 'ws.pagseguro.uol.com.br',
'stc' => 'stc.pagseguro.uol.com.br'
)
);
if ($config['pagseguro']['sandbox']) {
$config['pagseguro']['urls'] = array_map(function ($item) {
return str_replace('pagseguro', 'sandbox.pagseguro', $item);
}, $config['pagseguro']['urls']);
}
on my db,
znote_pagseguro
looks like thisand
znote_pagseguro_notifications
looks like thisI have the tables in my db and everything in configured right from what I can tell, email, db password and what not
in my config.php I should set ipn to
/pagseguro_ipn.php
right? cause there's also pagseguro_retorno.php