결제위젯
결제위젯을 태그에 조건에 따라 안나타나게 하고자 하는데 나타나야되는 경우인데 안나타나네요
<div th:if="${cartItem[0].member.billProcessday == 0 or (cartItem[0].member.billProcessday != 0 and cartItem[0].isAdditionalCharge)}">
<!-- 결제위젯, 이용약관 영역 -->
<div id="payment-method"></div>
<div id="agreement"></div>
<!-- 토스 결제하기 버튼 -->
<button id="payment-button" class="btn btn-info">토스 결제하기</button>
<input type="hidden" id="tossClientKey" th:value="${tossClientKey}" >
<input type="hidden" id="tossCustomerKey" th:value="${loginmember.uuid}" >
</div>
<!-- 일반 결제 버튼: 위 조건을 만족하지 않는 경우 -->
<div th:unless="${cartItem[0].member.billProcessday == 0 or (cartItem[0].member.billProcessday != 0 and cartItem[0].isAdditionalCharge)}">
<!-- 일반 결제 버튼 -->
<button id="normal-payment-button" class="btn btn-primary">일반 결제</button>
</div>
지금 화면에는 토스결제하기 버튼만 보여요 결재방식이나 계약은 안나타나구요 왜 그런걸까요???
<div th:if="${cartItem[0].member.billProcessday == 0 or (cartItem[0].member.billProcessday != 0 and cartItem[0].isAdditionalCharge)}">
<!-- 결제위젯, 이용약관 영역 -->
<div id="payment-method"></div>
<div id="agreement"></div>
<!-- 토스 결제하기 버튼 -->
<button id="payment-button" class="btn btn-info">토스 결제하기</button>
<input type="hidden" id="tossClientKey" th:value="${tossClientKey}" >
<input type="hidden" id="tossCustomerKey" th:value="${loginmember.uuid}" >
</div>
<!-- 일반 결제 버튼: 위 조건을 만족하지 않는 경우 -->
<div th:unless="${cartItem[0].member.billProcessday == 0 or (cartItem[0].member.billProcessday != 0 and cartItem[0].isAdditionalCharge)}">
<!-- 일반 결제 버튼 -->
<button id="normal-payment-button" class="btn btn-primary">일반 결제</button>
</div>
지금 화면에는 토스결제하기 버튼만 보여요 결재방식이나 계약은 안나타나구요 왜 그런걸까요???
