LaepIndustryServiceTest.php 980 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. declare(strict_types=1);
  3. namespace SixShop\Lakala\Service;
  4. use PHPUnit\Framework\Attributes\Test;
  5. use PHPUnit\Framework\TestCase;
  6. class LaepIndustryServiceTest extends TestCase
  7. {
  8. private LaepIndustryService $laepIndustryService;
  9. protected function setUp(): void
  10. {
  11. $this->laepIndustryService = app(LaepIndustryService::class);
  12. }
  13. #[Test]
  14. public function ewalletBalanceQuery()
  15. {
  16. $response = $this->laepIndustryService->ewalletBalanceQuery([
  17. 'merchantNo' => '822451048160BXH',
  18. 'payType' => '03',
  19. ]);
  20. dump($response);
  21. }
  22. #[Test]
  23. public function ewalletSettleQuery()
  24. {
  25. $response = $this->laepIndustryService->ewalletSettleQuery('SR2024000184315');
  26. dump($response);
  27. }
  28. #[Test]
  29. public function ewalletSettleProfile()
  30. {
  31. $response = $this->laepIndustryService->ewalletSettleProfile('SR2024000184315', '01');
  32. dump($response);
  33. }
  34. }