Skip to content

Commit 2ec3374

Browse files
committed
feature/payment: update env in develop.yml
1 parent fd618ba commit 2ec3374

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/develop.yml

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ jobs:
7474
echo MOMO_SECRET_KEY=${{ secrets.MOMO_SECRET_KEY }} >> .env
7575
echo MOMO_ENDPOINT=${{ vars.MOMO_ENDPOINT }} >> .env
7676
77+
echo PAYOS_CLIENT_ID=${{ secrets.PAYOS_CLIENT_ID }} >> .env
78+
echo PAYOS_API_KEY=${{ secrets.PAYOS_API_KEY }} >> .env
79+
echo PAYOS_CHECKSUM_KEY=${{ secrets.PAYOS_CHECKSUM_KEY }} >> .env
80+
7781
echo ZALOPAY_APP_ID=${{ secrets.ZALOPAY_APP_ID }} >> .env
7882
echo ZALOPAY_KEY1=${{ secrets.ZALOPAY_KEY1 }} >> .env
7983
echo ZALOPAY_KEY2=${{ secrets.ZALOPAY_KEY2 }} >> .env

src/payment/controllers/payment.controller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export class PaymentController {
5555
console.log('Handling PAYOS webhook', JSON.stringify(webhookData))
5656
this.paymentService.setStrategy(PaymentMethod.PAY_OS)
5757

58-
// just skip for confirmWebhook
59-
if (webhookData.data.orderCode == 123) return true
58+
// // just skip for confirmWebhook
59+
// if (webhookData.data.orderCode == 123) return true
6060

6161
//1. Validate signature with other data
6262
const result = this.paymentService.verifyPaymentWebhookData(webhookData)

0 commit comments

Comments
 (0)