소스 검색

Improve checkout UX (#6248)

pull/2/head
Charles-Henri Decultot 6 년 전
committed by Rushabh Mehta
부모
커밋
8c2434dc1f
2개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. +8
    -0
      payments/templates/includes/braintree_checkout.js
  2. +1
    -1
      payments/templates/pages/braintree_checkout.html

+ 8
- 0
payments/templates/includes/braintree_checkout.js 파일 보기

@@ -42,6 +42,14 @@ $(document).ready(function() {
})
});
});

instance.on('paymentMethodRequestable', function (event) {
button.removeAttribute('disabled');
});

instance.on('noPaymentMethodRequestable', function () {
button.setAttribute('disabled', true);
});
});

})

+ 1
- 1
payments/templates/pages/braintree_checkout.html 파일 보기

@@ -26,7 +26,7 @@
</div>
</section>

<button class="btn btn-primary" type="submit" id="submit-button"><span>{{ _("Pay") }} {{ amount }} {{ currency }}</span></button>
<button class="btn btn-primary" type="submit" id="submit-button" disabled><span>{{ _("Pay") }} {{ amount }} {{ currency }}</span></button>
</form>

</div>


불러오는 중...
취소
저장