From ec2ff89152201879c7ca70f2b102dcb20c1f2d16 Mon Sep 17 00:00:00 2001 From: RandithaK Date: Wed, 12 Nov 2025 16:07:40 +0530 Subject: [PATCH] Fix payment service deployment: Add missing PayHere URLs and fix requires_deposit column default value --- .../java/com/techtorque/payment_service/entity/Invoice.java | 2 +- payment-service/src/main/resources/application.properties | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/payment-service/src/main/java/com/techtorque/payment_service/entity/Invoice.java b/payment-service/src/main/java/com/techtorque/payment_service/entity/Invoice.java index a20f38a..559b696 100644 --- a/payment-service/src/main/java/com/techtorque/payment_service/entity/Invoice.java +++ b/payment-service/src/main/java/com/techtorque/payment_service/entity/Invoice.java @@ -59,7 +59,7 @@ public class Invoice { private String notes; // Part-payment tracking - @Column(nullable = false) + @Column(nullable = false, columnDefinition = "boolean default false") @Builder.Default private Boolean requiresDeposit = false; diff --git a/payment-service/src/main/resources/application.properties b/payment-service/src/main/resources/application.properties index f696b80..228b71b 100644 --- a/payment-service/src/main/resources/application.properties +++ b/payment-service/src/main/resources/application.properties @@ -24,4 +24,7 @@ spring.profiles.active=${SPRING_PROFILE:dev} # Domain: techtorque payhere.merchant.id=${PAYHERE_MERCHANT_ID:1231968} payhere.merchant.secret=${PAYHERE_MERCHANT_SECRET:MjE0Mzc0NzgxMjEzMDE1NzYxNzE1NDIzNzA1MTIzMDI2NTc1ODQw} -payhere.sandbox=${PAYHERE_SANDBOX:true} \ No newline at end of file +payhere.sandbox=${PAYHERE_SANDBOX:true} +payhere.return.url=${PAYHERE_RETURN_URL:http://localhost:3000/payment/success} +payhere.cancel.url=${PAYHERE_CANCEL_URL:http://localhost:3000/payment/cancel} +payhere.notify.url=${PAYHERE_NOTIFY_URL:http://localhost:8086/api/payments/notify} \ No newline at end of file