Merge pull request #236 from gpedro/feat/pagseguro

resolves #161
This commit is contained in:
Stefan A. Brannfjell
2016-05-06 14:30:44 +02:00
5 changed files with 274 additions and 2 deletions

View File

@@ -711,6 +711,32 @@
30 => 420, // +40% bonus
);
/////////////////
/// PAGSEGURO ///
/////////////////
// Write your pagseguro address here, and what currency you want to recieve money in.
$config['pagseguro'] = array(
'enabled' => true,
'sandbox' => false,
'email' => '', // Example: pagseguro@mail.com
'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']);
}
//////////////////
/// PAYGOL SMS ///
//////////////////