- implement vocagame supplier in prod
This commit is contained in:
Muhammad Fadli 2023-10-05 23:49:08 +07:00
parent 034a666729
commit d9c8917fd6
2 changed files with 12 additions and 12 deletions

View File

@ -71,7 +71,7 @@ export const doTransaction = async (
},
price: productPrice, // Price equals from items
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(

View File

@ -90,16 +90,16 @@ export class TransactionController {
@Body() orderTransactionDto: OrderTransactionDto,
@Request() req,
) {
// if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) {
// return {
// data: await this.transactionService.orderTransaction(
// orderTransactionDto,
// req.user,
// ),
// statusCode: HttpStatus.CREATED,
// message: 'success',
// };
// } else {
if (req.get('host').includes('ppob-backend.k3s.bangun-kreatif.com')) {
return {
data: await this.transactionService.orderTransaction(
orderTransactionDto,
req.user,
),
statusCode: HttpStatus.CREATED,
message: 'success',
};
} else {
return {
data: await this.transactionService.orderTransactionProd(
orderTransactionDto,
@ -108,7 +108,7 @@ export class TransactionController {
statusCode: HttpStatus.CREATED,
message: 'success',
};
// }
}
}
@Post('order-bill-prod')