jlskelin
New Member
- Joined
- Mar 28, 2009
- Messages
- 198
- Reaction score
- 1
Hello i want to add Pagseguro on my website can anyone explain how to make it working i never used this i only use paypal.I use znote 1.4 i looked in the config only this i could find is this.
Lua:
/////////////////
/// PAGSEGURO ///
/////////////////
// Write your pagseguro address here, and what currency you want to recieve money in.
$config['pagseguro'] = array(
'enabled' => false,
'sandbox' => false,
'email' => '', // Example: [email protected]
'token' => '',
'currency' => 'BRL',
'product_name' => '',
'price' => 100, // 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']);
}