WechatPublicCertsPlugin.php 439 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. namespace Yansongda\Pay\Plugin\Wechat;
  4. use Yansongda\Pay\Rocket;
  5. class WechatPublicCertsPlugin extends GeneralPlugin
  6. {
  7. protected function getMethod(): string
  8. {
  9. return 'GET';
  10. }
  11. protected function doSomething(Rocket $rocket): void
  12. {
  13. $rocket->setPayload(null);
  14. }
  15. protected function getUri(Rocket $rocket): string
  16. {
  17. return 'v3/certificates';
  18. }
  19. }