update payment
This commit is contained in:
@@ -32,4 +32,18 @@ export class PayosController {
|
||||
async ping() {
|
||||
return this.payosService.ping()
|
||||
}
|
||||
|
||||
// test create payment url
|
||||
@Post('create-payment-url')
|
||||
@ApiOperation({ summary: 'Test create payment url' })
|
||||
async createPaymentURL(@Body() body: any) {
|
||||
return this.payosService.createPaymentURL(body)
|
||||
}
|
||||
|
||||
// get payment status
|
||||
@Get('get-payment-status/:orderId')
|
||||
@ApiOperation({ summary: 'Get payment status' })
|
||||
async getPaymentStatus(@Param('orderId') orderId: string | number) {
|
||||
return this.payosService.getPaymentStatus(orderId)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user