feat: improving pagseguro payment

This commit is contained in:
Gabriel Pedro
2016-05-02 04:12:14 -04:00
parent afee5eab13
commit 583001e91d
2 changed files with 46 additions and 1 deletions

View File

@@ -707,6 +707,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 ///
//////////////////