PaymentService 승인 규칙 구현 (BAIS-SOURCE-1783702539)

This commit is contained in:
forge-bot 2026-07-10 16:55:59 +00:00
parent 4ecbcc77c4
commit 1d1a558cfc

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