Skip to content

Commit

Permalink
Merge pull request #234 from readyvery/test
Browse files Browse the repository at this point in the history
Fix: 트랜잭션 오류 해결
  • Loading branch information
marinesnow34 authored Mar 27, 2024
2 parents 600c322 + 1815717 commit 53b0551
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ private Cart getCartId(UserInfo user, Long cartId) {
}

@Override
@Transactional
public TosspaymentMakeRes requestTossPayment(CustomUserDetails userDetails, PaymentReq paymentReq) {
UserInfo user = getUserInfo(userDetails);
Cart cart = getCartId(user, paymentReq.getCartId());
Expand Down Expand Up @@ -363,6 +364,7 @@ private TosspaymentDto makeZeroPaymentDto(String paymentKey) {
}

@Override
@Transactional
public FailDto tossPaymentFail(String code, String orderId, String message) {
Order order = getOrder(orderId);
applyOrderFail(order);
Expand Down

0 comments on commit 53b0551

Please sign in to comment.