Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
fb5d38e53d
|
@ -71,7 +71,7 @@ export const doTransaction = async (
|
||||||
},
|
},
|
||||||
price: productPrice, // Price equals from items
|
price: productPrice, // Price equals from items
|
||||||
reference: reference, // Your reference I
|
reference: reference, // Your reference I
|
||||||
callbackUrl: "https://ppob-backend.k3s.bangun-kreatif.com/v1/ppob_callback/vocagame" // Set your endpoint callback
|
callbackUrl: "https://api.wndsolutions.id/v1/ppob_callback/vocagame" // Set your endpoint callback
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await axios.post(
|
const res = await axios.post(
|
||||||
|
|
|
@ -90,16 +90,16 @@ export class TransactionController {
|
||||||
@Body() orderTransactionDto: OrderTransactionDto,
|
@Body() orderTransactionDto: OrderTransactionDto,
|
||||||
@Request() req,
|
@Request() req,
|
||||||
) {
|
) {
|
||||||
// if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) {
|
if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) {
|
||||||
// return {
|
return {
|
||||||
// data: await this.transactionService.orderTransaction(
|
data: await this.transactionService.orderTransaction(
|
||||||
// orderTransactionDto,
|
orderTransactionDto,
|
||||||
// req.user,
|
req.user,
|
||||||
// ),
|
),
|
||||||
// statusCode: HttpStatus.CREATED,
|
statusCode: HttpStatus.CREATED,
|
||||||
// message: 'success',
|
message: 'success',
|
||||||
// };
|
};
|
||||||
// } else {
|
} else {
|
||||||
return {
|
return {
|
||||||
data: await this.transactionService.orderTransactionProd(
|
data: await this.transactionService.orderTransactionProd(
|
||||||
orderTransactionDto,
|
orderTransactionDto,
|
||||||
|
@ -108,7 +108,7 @@ export class TransactionController {
|
||||||
statusCode: HttpStatus.CREATED,
|
statusCode: HttpStatus.CREATED,
|
||||||
message: 'success',
|
message: 'success',
|
||||||
};
|
};
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Post('order-bill-prod')
|
@Post('order-bill-prod')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user