Advertisement
Guest User

Untitled

a guest
Apr 14th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2. require_once 'config/config.php';
  3.  
  4. $PagSeguroConfig = array();
  5. if($config['pagseguro']['testing'] === true){
  6. $PagSeguroConfig['environment'] = "sandbox"; // production, sandbox
  7. }else{
  8. $PagSeguroConfig['environment'] = "production"; // production, sandbox
  9. }
  10.  
  11.  
  12. $PagSeguroConfig['credentials'] = array();
  13. $PagSeguroConfig['credentials']['email'] = $config['pagseguro']['email'];
  14. $PagSeguroConfig['credentials']['token']['production'] = $config['pagseguro']['token'];
  15. $PagSeguroConfig['credentials']['token']['sandbox'] = $config['pagseguro']['tokentest'];
  16.  
  17. $PagSeguroConfig['application'] = array();
  18. $PagSeguroConfig['application']['charset'] = "UTF-8"; // UTF-8, ISO-8859-1
  19.  
  20. $PagSeguroConfig['log'] = array();
  21. $PagSeguroConfig['log']['active'] = false;
  22. $PagSeguroConfig['log']['fileLocation'] = "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement