fix : sep gateway
This commit is contained in:
@@ -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 });
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user