Skip to content

Commit

Permalink
Merge pull request #99 from marinesnow34/tosspay
Browse files Browse the repository at this point in the history
Fix: 결제 생성 수정
  • Loading branch information
marinesnow34 authored Nov 26, 2023
2 parents 2ef87ee + addb3a5 commit a09adab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private Cart getCartId(UserInfo user, Long cartId) {
@Override
public TosspaymentMakeRes requestTossPayment(CustomUserDetails userDetails, PaymentReq paymentReq) {
UserInfo user = getUserInfo(userDetails);
Cart cart = getCart(user);
Cart cart = getCartId(user, paymentReq.getCartId());
Store store = cart.getStore();
Coupon coupon = getCoupon(paymentReq.getCouponId());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
@Getter
public class PaymentReq {
private Long couponId;
private Long cartId;
}

0 comments on commit a09adab

Please sign in to comment.