We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97825e0 commit 1182a2dCopy full SHA for 1182a2d
WePayV3/Cert.php
@@ -44,6 +44,9 @@ public function download()
44
try {
45
$certs = [];
46
$result = $this->doRequest('GET', '/v3/certificates');
47
+ if (empty($result['data']) && !empty($result['message'])) {
48
+ throw new InvalidResponseException($result['message']);
49
+ }
50
$decrypt = new DecryptAes($this->config['mch_v3_key']);
51
foreach ($result['data'] as $vo) {
52
$certs[$vo['serial_no']] = [
0 commit comments