feat(payment): unify payment callback endpoint for all gateways and types
This commit is contained in:
@@ -56,7 +56,8 @@ class AppointmentPaidConfirmFilesSessionTest extends ApiTestCase
|
||||
|
||||
private function fireCallback(Payment $payment): void
|
||||
{
|
||||
$this->client->request('POST', '/api/v1/payment/callback/mock?' . http_build_query([
|
||||
// بدون `gateway` فرستاده میشود تا fallbackِ خواندن درگاه از رکورد پرداخت هم پوشش بخورد.
|
||||
$this->client->request('POST', '/api/v1/payment/callback?' . http_build_query([
|
||||
'order_id' => $payment->getOrderId(),
|
||||
'mock' => '1',
|
||||
'ResCode' => '0',
|
||||
|
||||
Reference in New Issue
Block a user