Skip to content

Commit 161c177

Browse files
committed
implement setUseBaseUrl() for status & cancel qris
1 parent 0f1feeb commit 161c177

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Services/Qris.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public function paymentStatus()
100100
'data' => base64_encode(json_encode($content)),
101101
];
102102

103-
$config['action'] = 'status';
104-
$this->client->init($this->client->getMode(), $config);
105-
103+
$this->client->setUseBaseUrl('status');
106104
$this->client->setRequestPayload($payload);
107105

108106
return $this->client->request('api/Partner/InquiryPayment', 'POST', Constant::CONTENT_JSON);
@@ -162,6 +160,7 @@ public function cancel()
162160
'data' => base64_encode(json_encode($content)),
163161
];
164162

163+
$this->client->setUseBaseUrl('cancel');
165164
$this->client->setRequestPayload($payload);
166165

167166
return $this->client->request('general/Partner/CancelQRIS', 'POST', Constant::CONTENT_JSON);

0 commit comments

Comments
 (0)