PaymentService 승인 규칙 구현 #5

Merged
forge-bot merged 4 commits from forge/BAIS-SOURCE-1783702539-attempt-1 into main 2026-07-10 16:59:39 +00:00
Showing only changes of commit 1d1a558cfc - Show all commits

View file

@ -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;
}
}