Plugin Directory

Changeset 1857688


Ignore:
Timestamp:
04/13/2018 07:49:45 AM (8 years ago)
Author:
gosomi
Message:

결제 에러시 alert으로 표기

Location:
woo-bootpay/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woo-bootpay/trunk/assets/js/bootpay-order.js

    r1857681 r1857688  
    3030            success: function (response) {
    3131                if (response.result !== 'success') {
    32                     alert('주문이 잘못되었습니다.');
     32                    try { var message = response.messages.replace(/<(?:.|\n)*?>/gm, '').trim(); } catch (e) { var message = ""; }
     33                    if (message.length > 0) {
     34                        alert(message);
     35                    } else {
     36                        alert('결제가 실패하였습니다.');
     37                    }
    3338                    return;
    3439                }
     
    4651                }).error(function (data) {
    4752                    console.log(data);
    48                     alert('결제가 실패하였습니다.');
     53                    alert('결제가 실패하였습니다');
    4954                }).cancel(function (data) {
    5055                    console.log(data);
     
    98103            success: function (response) {
    99104                if (response.result !== 'success') {
    100                     alert('주문이 잘못되었습니다.');
     105                    try { var message = response.messages.replace(/<(?:.|\n)*?>/gm, '').trim(); } catch (e) { var message = ""; }
     106                    if (message.length > 0) {
     107                        alert(message);
     108                    } else {
     109                        alert('결제가 실패하였습니다.');
     110                    }
    101111                    return;
    102112                }
  • woo-bootpay/trunk/readme.txt

    r1857681 r1857688  
    1212
    1313== Description ==
     14
     15버전 1.1.2
     16결제 수단 변경 시 form submit 버그 수정
    1417
    1518버전 1.1.0, 1.1.1
Note: See TracChangeset for help on using the changeset viewer.