Barobill.php 889 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\ThirdPartyApi\Barobill;
  3. use App\Services\CallApiService;
  4. use SoapClient;
  5. class Barobill
  6. {
  7. protected $callApiService;
  8. protected $baroService;
  9. // const SERVICE_URL = 'https://ws.baroservice.com/BANKACCOUNT.asmx?WSDL'; // 운영서버
  10. const SERVICE_URL = 'https://testws.baroservice.com/BANKACCOUNT.asmx?WSDL'; // 테스트서버
  11. const CERTKEY = '877AA5A4-E023-4BC8-8BD0-0255C9F0EA62';
  12. const CORP_NUM = '1198182402';
  13. const ID = 'wngur6076';
  14. public function __construct(CallApiService $callApiService)
  15. {
  16. $this->callApiService = $callApiService;
  17. $this->setup();
  18. }
  19. private function setup()
  20. {
  21. $this->baroService = new SoapClient(self::SERVICE_URL, array(
  22. 'trace' => 'true',
  23. 'encoding' => 'UTF-8' //소스를 ANSI로 사용할 경우 euc-kr로 수정
  24. ));
  25. }
  26. }