fix : sep gateway

This commit is contained in:
2026-01-04 15:50:49 +03:30
parent 95990cd1df
commit e5068ad389
3 changed files with 34 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class SepGateway implements IGateway {
RedirectUrl: `${this.callBackURL}${callBackPath}`,
ResNum: Date.now().toString(),
CellNumber: _mobile,
GetMethod:true
// GetMethod:true
};
const response = await axios.post<SepRequestPaymentResponse>(requesturl, purchaseData, { headers: this.requestHeader });
+1 -1
View File
@@ -111,7 +111,7 @@ class PaymentController extends BaseController {
@ApiOperation("verify a payment for current session user for cartCheckout (method post for SEP)")
@ApiResponse("successful", HttpStatus.Ok)
@ApiParam("gateway", "the name of api gateway", true)
@httpPost("/verify/:gateway/cart", ValidationMiddleware.validateInput(VerifyOnlinePaymentDTO))
@httpPost("/verify/:gateway/cart", ValidationMiddleware.validateInputWithLogging(VerifyOnlinePaymentDTO, "Verify Cart Checkout"))
public async VerifyCartCheckoutPost(
@requestParam("gateway") gateway: string,
@response() res: Response,