diff --git a/src/main/java/com/example/baisgate/PaymentService.java b/src/main/java/com/example/baisgate/PaymentService.java new file mode 100644 index 0000000..489d52a --- /dev/null +++ b/src/main/java/com/example/baisgate/PaymentService.java @@ -0,0 +1,10 @@ +package com.example.baisgate; + +public class PaymentService { + public String approve(String transactionId) { + if (transactionId == null || transactionId.trim().isEmpty()) { + throw new IllegalArgumentException("Transaction ID cannot be blank"); + } + return "APPROVED:" + transactionId; + } +} \ No newline at end of file