@bootpay/client-js 5.0.1-rc.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.es.js +364 -401
- package/dist/index.umd.js +4 -4
- package/dist/package.json.d.ts +2 -2
- package/dist/src/bootpay-widget.d.ts +5 -2
- package/dist/src/bootpay.d.ts +1 -1
- package/dist/src/index.d.ts +2 -43
- package/dist/src/lib/bootpay-widget.d.ts +5 -4
- package/dist/src/lib/locale/message.d.ts +8 -0
- package/dist/src/lib/template/payment.d.ts +0 -3
- package/dist/src/models/bootpay-interface.d.ts +3 -20
- package/dist/src/models/bootpay-widget-interface.d.ts +4 -10
- package/dist/src/support/util.d.ts +1 -0
- package/dist/src/support/widget-store.d.ts +9 -20
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode('.bootpay-progress-background{position:fixed;display:block;background-color:transparent;inset:0;text-align:center;z-index:200000;white-space:nowrap}.bootpay-progress-background.blur-off{background-color:transparent}.bootpay-progress-background:before{display:inline-block;height:100%;content:" ";vertical-align:middle}.bootpay-progress-background .progress-message-window{display:inline-block;text-align:center;max-width:600px;border-radius:3px;width:100%;background-color:transparent;padding:0;vertical-align:middle}@media (min-width: 600px){.bootpay-progress-background .progress-message-window{padding:1rem}}.bootpay-progress-background .progress-message-window .bootpay-spinner{display:inline-block;width:50px;height:50px;border-radius:50%;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2);border-left:2px solid #ffffff;animation:spin 1s infinite linear}.bootpay-progress-background .progress-message-window .alfred-text{margin-top:1rem}.bootpay-progress-background .progress-message-window .alfred-text span.alfred-inner-text{font-weight:400;color:#eee}@keyframes spin{0%{transform:rotate(0);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}50%{transform:rotate(180deg);border-left:3px solid #ffffff;border-top:2px solid rgba(255,255,255,.4);border-right:2px solid rgba(255,255,255,.4);border-bottom:2px solid rgba(255,255,255,.4)}to{transform:rotate(360deg);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}}body.bootpay-open{position:fixed!important;inset:0;padding:0;margin:0;height:100vh!important;overflow:hidden!important;-webkit-overflow-scrolling:auto!important}body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:transparent}@media (min-width: 600px){body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:#000000b3}}body.bootpay-open .bootpay-payment-background{position:fixed;inset:0;display:block;text-align:center;background-color:#000000b3;z-index:9999}body.bootpay-open .bootpay-payment-background:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert{padding:1rem}body.bootpay-open .bootpay-payment-background.__alert:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{position:absolute;max-width:400px;width:100%;background-color:#fff;border-radius:12px;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;box-shadow:0 0 10px #0000001a}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-in{animation:__bootpay-fade-in .1s linear}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-out{animation:__bootpay-fade-out .1s linear}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{left:1rem;right:1rem;width:auto;top:50%;transform:translateY(-50%)}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header{padding:1rem;text-align:left;font-size:20px;font-weight:600;position:relative}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{top:40%;transform:translateY(-50%);padding:0;right:1rem}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{right:8px;top:50%;transform:translateY(-55%)}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:before,body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:after{background-color:#333;width:1px}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-body{padding:1.5rem 1rem;text-align:center;font-size:16px;color:#333;line-height:1.5}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer{display:flex;justify-content:flex-end;border-top:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close{flex:0 1 50%;padding:1rem;background-color:#fff;color:#333;font-size:16px;cursor:pointer;border:0;outline:none}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.border-right{border-right:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close:hover{background-color:#e0e0e0}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary{color:#507cf3;font-weight:600}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary:hover{color:#3f6be2}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:relative;display:inline-block;vertical-align:middle}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{max-width:470px;height:90%}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:absolute;inset:0;border-radius:0!important}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{position:absolute;max-width:inherit;inset:0;height:100%}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%!important;height:100%!important;border-radius:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.transparent{background:transparent!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{position:absolute;display:none;top:-32px;right:4px;color:#fff;font-size:32px;text-decoration:none;outline:none;box-shadow:none;border:0;background-color:transparent}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#fff!important}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{top:1rem;right:16px;color:#000;padding:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#000!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:relative;width:400px;height:600px;display:none;background-color:#fff;border-radius:5px;overflow:hidden}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:absolute;inset:0;width:100%;height:100%;border-radius:0}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.header{position:absolute;left:0;right:0;top:0;height:50px;color:#333;background-color:#fff;text-align:left}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body{position:absolute;inset:50px 0 72px;padding:1rem;text-align:left;font-size:14px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-item-name-id{font-size:16px;color:#888;font-weight:400!important;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-price-id{font-size:36px;color:#333;font-weight:700;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>.agree-text{position:absolute;bottom:1rem;left:0;right:0;color:#888;font-size:14px;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer{position:absolute;left:0;right:0;bottom:0;height:72px;padding:0 1rem;margin:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button{display:block;width:100%;padding:1rem;outline:none;border:none;background-color:#507cf3;border-radius:5px;color:#fff;font-size:16px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:hover,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:active{outline:none;box-shadow:none}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%;height:100%;display:none;border:0!important;outline:0!important;border-radius:0;box-shadow:none}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:0;height:0;border:0;outline:0;border-radius:0!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{border-radius:0}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{width:0;height:0;border:0;outline:0;border-radius:20px!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-up{animation:__bootpay-slide-up .3s linear}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-down{animation:__bootpay-slide-down .3s linear}body.bootpay-open .bootpay-payment-background>.bootpay-confirm-window>iframe{display:none;width:1px;height:1px;background:transparent;border:0!important;outline:0!important}.bootpay-close-btn{position:absolute;box-shadow:none;background-color:#fff;outline:0;z-index:10001;right:8px;top:8px;height:21px;width:21px;border:0!important;outline:none!important}@media (min-width: 600px){.bootpay-close-btn{right:4px;top:-32px;width:25px;height:25px;background:transparent;outline:none!important;border:0!important}}.bootpay-close-btn.active,.bootpay-close-btn:focus{outline:none!important;border:0!important}.bootpay-close-btn:before,.bootpay-close-btn:after{position:absolute;left:8px;top:2px;content:" ";height:24px;width:1px;background-color:#333}@media (min-width: 600px){.bootpay-close-btn:before,.bootpay-close-btn:after{height:23px;top:0;width:2px;background-color:#fff}}.bootpay-close-btn:before{transform:rotate(45deg)}.bootpay-close-btn:after{transform:rotate(-45deg)}@keyframes __bootpay-slide-up{0%{transform:translateY(150%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes __bootpay-slide-down{0%{transform:translateY(0);opacity:1}to{transform:translateY(150%);opacity:0}}@keyframes __bootpay-fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes __bootpay-fade-out{0%{opacity:1;scale:1}to{opacity:0;scale:.9}}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var o=document.createElement("style");o.appendChild(document.createTextNode('.bootpay-progress-background{position:fixed;display:block;background-color:transparent;inset:0;text-align:center;z-index:200000;white-space:nowrap}.bootpay-progress-background.blur-off{background-color:transparent}.bootpay-progress-background:before{display:inline-block;height:100%;content:" ";vertical-align:middle}.bootpay-progress-background .progress-message-window{display:inline-block;text-align:center;max-width:600px;border-radius:3px;width:100%;background-color:transparent;padding:0;vertical-align:middle}@media (min-width: 600px){.bootpay-progress-background .progress-message-window{padding:1rem}}.bootpay-progress-background .progress-message-window .bootpay-spinner{display:inline-block;width:50px;height:50px;border-radius:50%;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2);border-left:2px solid #ffffff;animation:spin 1s infinite linear}.bootpay-progress-background .progress-message-window .alfred-text{margin-top:1rem}.bootpay-progress-background .progress-message-window .alfred-text span.alfred-inner-text{font-weight:400;color:#eee}@keyframes spin{0%{transform:rotate(0);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}50%{transform:rotate(180deg);border-left:3px solid #ffffff;border-top:2px solid rgba(255,255,255,.4);border-right:2px solid rgba(255,255,255,.4);border-bottom:2px solid rgba(255,255,255,.4)}to{transform:rotate(360deg);border-left:2px solid #ffffff;border-top:2px solid rgba(255,255,255,.2);border-right:2px solid rgba(255,255,255,.2);border-bottom:2px solid rgba(255,255,255,.2)}}body.bootpay-open{position:fixed!important;inset:0;padding:0;margin:0;height:100vh!important;overflow:hidden!important;-webkit-overflow-scrolling:auto!important}body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:transparent}@media (min-width: 600px){body.bootpay-open.bootpay-mobile .bootpay-payment-background{background-color:#000000b3}}body.bootpay-open .bootpay-payment-background{position:fixed;inset:0;display:block;text-align:center;background-color:#000000b3;z-index:9999}body.bootpay-open .bootpay-payment-background:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert{padding:1rem}body.bootpay-open .bootpay-payment-background.__alert:before{display:inline-block;vertical-align:middle;height:100%;content:" "}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{position:absolute;max-width:400px;width:100%;background-color:#fff;border-radius:12px;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden;box-shadow:0 0 10px #0000001a}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-in{animation:__bootpay-fade-in .1s linear}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window.fade-out{animation:__bootpay-fade-out .1s linear}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window{left:1rem;right:1rem;width:auto;top:50%;transform:translateY(-50%)}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header{padding:1rem;text-align:left;font-size:20px;font-weight:600;position:relative}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{top:40%;transform:translateY(-50%);padding:0;right:1rem}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn{right:8px;top:50%;transform:translateY(-55%)}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:before,body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-header>.bootpay-close-btn:after{background-color:#333;width:1px}}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-body{padding:1.5rem 1rem;text-align:center;font-size:16px;color:#333;line-height:1.5}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer{display:flex;justify-content:flex-end;border-top:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close{flex:0 1 50%;padding:1rem;background-color:#fff;color:#333;font-size:16px;cursor:pointer;border:0;outline:none}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.border-right{border-right:1px solid #f2f2f2}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close:hover{background-color:#e0e0e0}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary{color:#507cf3;font-weight:600}body.bootpay-open .bootpay-payment-background.__alert>.bootpay-confirm-window>.bootpay__alert-footer>button.bootpay__alert-close.bootpay-primary:hover{color:#3f6be2}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:relative;display:inline-block;vertical-align:middle}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{max-width:470px;height:90%}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window{position:absolute;inset:0;border-radius:0!important}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window.__mobile{position:absolute;max-width:inherit;inset:0;height:100%}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%!important;height:100%!important;border-radius:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.transparent{background:transparent!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{position:absolute;display:none;top:-32px;right:4px;color:#fff;font-size:32px;text-decoration:none;outline:none;box-shadow:none;border:0;background-color:transparent}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#fff!important}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close{top:1rem;right:16px;color:#000;padding:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:before,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>button.bootpay-payment-close:after{width:2px!important;background-color:#000!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:relative;width:400px;height:600px;display:none;background-color:#fff;border-radius:5px;overflow:hidden}@media (max-width: 768px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window{position:absolute;inset:0;width:100%;height:100%;border-radius:0}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.header{position:absolute;left:0;right:0;top:0;height:50px;color:#333;background-color:#fff;text-align:left}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body{position:absolute;inset:50px 0 72px;padding:1rem;text-align:left;font-size:14px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-item-name-id{font-size:16px;color:#888;font-weight:400!important;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>#bootpay-price-id{font-size:36px;color:#333;font-weight:700;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.body>.agree-text{position:absolute;bottom:1rem;left:0;right:0;color:#888;font-size:14px;text-align:center}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer{position:absolute;left:0;right:0;bottom:0;height:72px;padding:0 1rem;margin:0}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button{display:block;width:100%;padding:1rem;outline:none;border:none;background-color:#507cf3;border-radius:5px;color:#fff;font-size:16px}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:hover,body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>.bootpay-popup-window>.footer>button.bootpay-button:active{outline:none;box-shadow:none}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:100%;height:100%;display:none;border:0!important;outline:0!important;border-radius:0;box-shadow:none}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe{width:0;height:0;border:0;outline:0;border-radius:0!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{border-radius:0}@media (min-width: 600px){body.bootpay-open .bootpay-payment-background>.bootpay-payment-window>iframe.rounded-iframe{width:0;height:0;border:0;outline:0;border-radius:20px!important;box-shadow:none!important}}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-up{animation:__bootpay-slide-up .3s linear}body.bootpay-open .bootpay-payment-background #__bootpay-modal-iframe.slide-down{animation:__bootpay-slide-down .3s linear}body.bootpay-open .bootpay-payment-background>.bootpay-confirm-window>iframe{display:none;width:1px;height:1px;background:transparent;border:0!important;outline:0!important}.bootpay-close-btn{position:absolute;box-shadow:none;background-color:transparent;outline:0;z-index:10001;right:8px;top:8px;height:21px;width:21px;border:0!important;outline:none!important}@media (min-width: 600px){.bootpay-close-btn{right:4px;top:-32px;width:25px;height:25px;background:transparent;outline:none!important;border:0!important}}.bootpay-close-btn.active,.bootpay-close-btn:focus{outline:none!important;border:0!important}.bootpay-close-btn:before,.bootpay-close-btn:after{position:absolute;left:8px;top:2px;content:" ";height:24px;width:1px;background-color:#333}@media (min-width: 600px){.bootpay-close-btn:before,.bootpay-close-btn:after{height:23px;top:0;width:2px;background-color:#fff}}.bootpay-close-btn:before{transform:rotate(45deg)}.bootpay-close-btn:after{transform:rotate(-45deg)}@keyframes __bootpay-slide-up{0%{transform:translateY(150%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes __bootpay-slide-down{0%{transform:translateY(0);opacity:1}to{transform:translateY(150%);opacity:0}}@keyframes __bootpay-fade-in{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}@keyframes __bootpay-fade-out{0%{opacity:1;scale:1}to{opacity:0;scale:.9}}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
@@ -78,13 +78,20 @@ const toUrl = (url, parameters = void 0) => {
|
|
|
78
78
|
return url;
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
+
const mergeHash = (target, source) => {
|
|
82
|
+
for (let key in source) {
|
|
83
|
+
if (source.hasOwnProperty(key)) {
|
|
84
|
+
target[key] = source[key];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return target;
|
|
88
|
+
};
|
|
81
89
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
82
90
|
function getDefaultExportFromCjs(x) {
|
|
83
91
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
84
92
|
}
|
|
85
93
|
function getAugmentedNamespace(n) {
|
|
86
|
-
if (n.__esModule)
|
|
87
|
-
return n;
|
|
94
|
+
if (n.__esModule) return n;
|
|
88
95
|
var f = n.default;
|
|
89
96
|
if (typeof f == "function") {
|
|
90
97
|
var a = function a2() {
|
|
@@ -94,8 +101,7 @@ function getAugmentedNamespace(n) {
|
|
|
94
101
|
return f.apply(this, arguments);
|
|
95
102
|
};
|
|
96
103
|
a.prototype = f.prototype;
|
|
97
|
-
} else
|
|
98
|
-
a = {};
|
|
104
|
+
} else a = {};
|
|
99
105
|
Object.defineProperty(a, "__esModule", { value: true });
|
|
100
106
|
Object.keys(n).forEach(function(k) {
|
|
101
107
|
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
@@ -121,8 +127,7 @@ const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
|
|
|
121
127
|
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
|
|
122
128
|
var hasRequiredCore;
|
|
123
129
|
function requireCore() {
|
|
124
|
-
if (hasRequiredCore)
|
|
125
|
-
return core.exports;
|
|
130
|
+
if (hasRequiredCore) return core.exports;
|
|
126
131
|
hasRequiredCore = 1;
|
|
127
132
|
(function(module, exports) {
|
|
128
133
|
(function(root, factory) {
|
|
@@ -738,107 +743,113 @@ function requireCore() {
|
|
|
738
743
|
var encUtf8Exports = encUtf8.exports;
|
|
739
744
|
const toUtf8 = /* @__PURE__ */ getDefaultExportFromCjs(encUtf8Exports);
|
|
740
745
|
var encBase64 = { exports: {} };
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
wordArray
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
var
|
|
776
|
-
var
|
|
777
|
-
|
|
778
|
-
|
|
746
|
+
var hasRequiredEncBase64;
|
|
747
|
+
function requireEncBase64() {
|
|
748
|
+
if (hasRequiredEncBase64) return encBase64.exports;
|
|
749
|
+
hasRequiredEncBase64 = 1;
|
|
750
|
+
(function(module, exports) {
|
|
751
|
+
(function(root, factory) {
|
|
752
|
+
{
|
|
753
|
+
module.exports = factory(requireCore());
|
|
754
|
+
}
|
|
755
|
+
})(commonjsGlobal, function(CryptoJS2) {
|
|
756
|
+
(function() {
|
|
757
|
+
var C = CryptoJS2;
|
|
758
|
+
var C_lib = C.lib;
|
|
759
|
+
var WordArray = C_lib.WordArray;
|
|
760
|
+
var C_enc = C.enc;
|
|
761
|
+
C_enc.Base64 = {
|
|
762
|
+
/**
|
|
763
|
+
* Converts a word array to a Base64 string.
|
|
764
|
+
*
|
|
765
|
+
* @param {WordArray} wordArray The word array.
|
|
766
|
+
*
|
|
767
|
+
* @return {string} The Base64 string.
|
|
768
|
+
*
|
|
769
|
+
* @static
|
|
770
|
+
*
|
|
771
|
+
* @example
|
|
772
|
+
*
|
|
773
|
+
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
774
|
+
*/
|
|
775
|
+
stringify: function(wordArray) {
|
|
776
|
+
var words = wordArray.words;
|
|
777
|
+
var sigBytes = wordArray.sigBytes;
|
|
778
|
+
var map = this._map;
|
|
779
|
+
wordArray.clamp();
|
|
780
|
+
var base64Chars = [];
|
|
781
|
+
for (var i = 0; i < sigBytes; i += 3) {
|
|
782
|
+
var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 255;
|
|
783
|
+
var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255;
|
|
784
|
+
var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255;
|
|
785
|
+
var triplet = byte1 << 16 | byte2 << 8 | byte3;
|
|
786
|
+
for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
|
|
787
|
+
base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 63));
|
|
788
|
+
}
|
|
779
789
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
790
|
+
var paddingChar = map.charAt(64);
|
|
791
|
+
if (paddingChar) {
|
|
792
|
+
while (base64Chars.length % 4) {
|
|
793
|
+
base64Chars.push(paddingChar);
|
|
794
|
+
}
|
|
785
795
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
796
|
+
return base64Chars.join("");
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
* Converts a Base64 string to a word array.
|
|
800
|
+
*
|
|
801
|
+
* @param {string} base64Str The Base64 string.
|
|
802
|
+
*
|
|
803
|
+
* @return {WordArray} The word array.
|
|
804
|
+
*
|
|
805
|
+
* @static
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
*
|
|
809
|
+
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
810
|
+
*/
|
|
811
|
+
parse: function(base64Str) {
|
|
812
|
+
var base64StrLength = base64Str.length;
|
|
813
|
+
var map = this._map;
|
|
814
|
+
var reverseMap = this._reverseMap;
|
|
815
|
+
if (!reverseMap) {
|
|
816
|
+
reverseMap = this._reverseMap = [];
|
|
817
|
+
for (var j = 0; j < map.length; j++) {
|
|
818
|
+
reverseMap[map.charCodeAt(j)] = j;
|
|
819
|
+
}
|
|
810
820
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
821
|
+
var paddingChar = map.charAt(64);
|
|
822
|
+
if (paddingChar) {
|
|
823
|
+
var paddingIndex = base64Str.indexOf(paddingChar);
|
|
824
|
+
if (paddingIndex !== -1) {
|
|
825
|
+
base64StrLength = paddingIndex;
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return parseLoop(base64Str, base64StrLength, reverseMap);
|
|
829
|
+
},
|
|
830
|
+
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
831
|
+
};
|
|
832
|
+
function parseLoop(base64Str, base64StrLength, reverseMap) {
|
|
833
|
+
var words = [];
|
|
834
|
+
var nBytes = 0;
|
|
835
|
+
for (var i = 0; i < base64StrLength; i++) {
|
|
836
|
+
if (i % 4) {
|
|
837
|
+
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
|
|
838
|
+
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
|
|
839
|
+
var bitsCombined = bits1 | bits2;
|
|
840
|
+
words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
|
|
841
|
+
nBytes++;
|
|
817
842
|
}
|
|
818
843
|
}
|
|
819
|
-
return
|
|
820
|
-
},
|
|
821
|
-
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
822
|
-
};
|
|
823
|
-
function parseLoop(base64Str, base64StrLength, reverseMap) {
|
|
824
|
-
var words = [];
|
|
825
|
-
var nBytes = 0;
|
|
826
|
-
for (var i = 0; i < base64StrLength; i++) {
|
|
827
|
-
if (i % 4) {
|
|
828
|
-
var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
|
|
829
|
-
var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
|
|
830
|
-
var bitsCombined = bits1 | bits2;
|
|
831
|
-
words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
|
|
832
|
-
nBytes++;
|
|
833
|
-
}
|
|
844
|
+
return WordArray.create(words, nBytes);
|
|
834
845
|
}
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
})
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}
|
|
841
|
-
var encBase64Exports =
|
|
846
|
+
})();
|
|
847
|
+
return CryptoJS2.enc.Base64;
|
|
848
|
+
});
|
|
849
|
+
})(encBase64);
|
|
850
|
+
return encBase64.exports;
|
|
851
|
+
}
|
|
852
|
+
var encBase64Exports = requireEncBase64();
|
|
842
853
|
const Base64 = /* @__PURE__ */ getDefaultExportFromCjs(encBase64Exports);
|
|
843
854
|
class BootpayManager {
|
|
844
855
|
$blank(value) {
|
|
@@ -1088,7 +1099,7 @@ class SessionStorageManager extends StorageManager {
|
|
|
1088
1099
|
}
|
|
1089
1100
|
const SessionStorage = new SessionStorageManager();
|
|
1090
1101
|
const name = "@bootpay/client-js";
|
|
1091
|
-
const version = "5.0.1
|
|
1102
|
+
const version = "5.0.1";
|
|
1092
1103
|
const main = "dist/index.es.js";
|
|
1093
1104
|
const types = "dist/src/index.d.ts";
|
|
1094
1105
|
const styles = "dist/index.css";
|
|
@@ -1126,7 +1137,7 @@ const devDependencies = {
|
|
|
1126
1137
|
sass: "^1.63.4",
|
|
1127
1138
|
"sass-loader": "^13.3.2",
|
|
1128
1139
|
"style-loader": "^3.3.3",
|
|
1129
|
-
vite: "^5.
|
|
1140
|
+
vite: "^5.4.3",
|
|
1130
1141
|
"vite-plugin-dts": "^3.6.4",
|
|
1131
1142
|
"vite-plugin-tsconfig": "^1.0.4",
|
|
1132
1143
|
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
@@ -1227,14 +1238,12 @@ const Environment = {
|
|
|
1227
1238
|
return [this.WIDGET_URL[this.mode], uri].join("/");
|
|
1228
1239
|
},
|
|
1229
1240
|
isMobile() {
|
|
1230
|
-
if (typeof window === "undefined")
|
|
1231
|
-
return false;
|
|
1241
|
+
if (typeof window === "undefined") return false;
|
|
1232
1242
|
const a = window.navigator.userAgent || window.navigator.vendor;
|
|
1233
1243
|
return /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/.test(a);
|
|
1234
1244
|
},
|
|
1235
1245
|
isMobileSafari() {
|
|
1236
|
-
if (typeof window === "undefined")
|
|
1237
|
-
return false;
|
|
1246
|
+
if (typeof window === "undefined") return false;
|
|
1238
1247
|
const agent = window.navigator.userAgent;
|
|
1239
1248
|
return (agent.match(/iPad/i) || agent.match(/iPhone/i)) && !agent.match(/CriOS/i);
|
|
1240
1249
|
},
|
|
@@ -1629,11 +1638,9 @@ function endsWith(str, searchString, position) {
|
|
|
1629
1638
|
return lastIndex !== -1 && lastIndex === position;
|
|
1630
1639
|
}
|
|
1631
1640
|
function toArray(thing) {
|
|
1632
|
-
if (!thing)
|
|
1633
|
-
return null;
|
|
1641
|
+
if (!thing) return null;
|
|
1634
1642
|
var i = thing.length;
|
|
1635
|
-
if (isUndefined(i))
|
|
1636
|
-
return null;
|
|
1643
|
+
if (isUndefined(i)) return null;
|
|
1637
1644
|
var arr = new Array(i);
|
|
1638
1645
|
while (i-- > 0) {
|
|
1639
1646
|
arr[i] = thing[i];
|
|
@@ -1827,8 +1834,7 @@ function toFormData$1(obj, formData) {
|
|
|
1827
1834
|
formData = formData || new FormData();
|
|
1828
1835
|
var stack = [];
|
|
1829
1836
|
function convertValue(value) {
|
|
1830
|
-
if (value === null)
|
|
1831
|
-
return "";
|
|
1837
|
+
if (value === null) return "";
|
|
1832
1838
|
if (utils$6.isDate(value)) {
|
|
1833
1839
|
return value.toISOString();
|
|
1834
1840
|
}
|
|
@@ -1844,8 +1850,7 @@ function toFormData$1(obj, formData) {
|
|
|
1844
1850
|
}
|
|
1845
1851
|
stack.push(data2);
|
|
1846
1852
|
utils$6.forEach(data2, function each(value, key) {
|
|
1847
|
-
if (utils$6.isUndefined(value))
|
|
1848
|
-
return;
|
|
1853
|
+
if (utils$6.isUndefined(value)) return;
|
|
1849
1854
|
var fullKey = parentKey ? parentKey + "." + key : key;
|
|
1850
1855
|
var arr;
|
|
1851
1856
|
if (value && !parentKey && typeof value === "object") {
|
|
@@ -1872,8 +1877,7 @@ var toFormData_1 = toFormData$1;
|
|
|
1872
1877
|
var settle;
|
|
1873
1878
|
var hasRequiredSettle;
|
|
1874
1879
|
function requireSettle() {
|
|
1875
|
-
if (hasRequiredSettle)
|
|
1876
|
-
return settle;
|
|
1880
|
+
if (hasRequiredSettle) return settle;
|
|
1877
1881
|
hasRequiredSettle = 1;
|
|
1878
1882
|
var AxiosError2 = AxiosError_1;
|
|
1879
1883
|
settle = function settle2(resolve, reject, response) {
|
|
@@ -1895,8 +1899,7 @@ function requireSettle() {
|
|
|
1895
1899
|
var cookies;
|
|
1896
1900
|
var hasRequiredCookies;
|
|
1897
1901
|
function requireCookies() {
|
|
1898
|
-
if (hasRequiredCookies)
|
|
1899
|
-
return cookies;
|
|
1902
|
+
if (hasRequiredCookies) return cookies;
|
|
1900
1903
|
hasRequiredCookies = 1;
|
|
1901
1904
|
var utils2 = utils$b;
|
|
1902
1905
|
cookies = utils2.isStandardBrowserEnv() ? (
|
|
@@ -1962,8 +1965,7 @@ var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
|
|
|
1962
1965
|
var parseHeaders;
|
|
1963
1966
|
var hasRequiredParseHeaders;
|
|
1964
1967
|
function requireParseHeaders() {
|
|
1965
|
-
if (hasRequiredParseHeaders)
|
|
1966
|
-
return parseHeaders;
|
|
1968
|
+
if (hasRequiredParseHeaders) return parseHeaders;
|
|
1967
1969
|
hasRequiredParseHeaders = 1;
|
|
1968
1970
|
var utils2 = utils$b;
|
|
1969
1971
|
var ignoreDuplicateOf = [
|
|
@@ -2015,8 +2017,7 @@ function requireParseHeaders() {
|
|
|
2015
2017
|
var isURLSameOrigin;
|
|
2016
2018
|
var hasRequiredIsURLSameOrigin;
|
|
2017
2019
|
function requireIsURLSameOrigin() {
|
|
2018
|
-
if (hasRequiredIsURLSameOrigin)
|
|
2019
|
-
return isURLSameOrigin;
|
|
2020
|
+
if (hasRequiredIsURLSameOrigin) return isURLSameOrigin;
|
|
2020
2021
|
hasRequiredIsURLSameOrigin = 1;
|
|
2021
2022
|
var utils2 = utils$b;
|
|
2022
2023
|
isURLSameOrigin = utils2.isStandardBrowserEnv() ? (
|
|
@@ -2063,8 +2064,7 @@ function requireIsURLSameOrigin() {
|
|
|
2063
2064
|
var CanceledError_1;
|
|
2064
2065
|
var hasRequiredCanceledError;
|
|
2065
2066
|
function requireCanceledError() {
|
|
2066
|
-
if (hasRequiredCanceledError)
|
|
2067
|
-
return CanceledError_1;
|
|
2067
|
+
if (hasRequiredCanceledError) return CanceledError_1;
|
|
2068
2068
|
hasRequiredCanceledError = 1;
|
|
2069
2069
|
var AxiosError2 = AxiosError_1;
|
|
2070
2070
|
var utils2 = utils$b;
|
|
@@ -2081,8 +2081,7 @@ function requireCanceledError() {
|
|
|
2081
2081
|
var parseProtocol;
|
|
2082
2082
|
var hasRequiredParseProtocol;
|
|
2083
2083
|
function requireParseProtocol() {
|
|
2084
|
-
if (hasRequiredParseProtocol)
|
|
2085
|
-
return parseProtocol;
|
|
2084
|
+
if (hasRequiredParseProtocol) return parseProtocol;
|
|
2086
2085
|
hasRequiredParseProtocol = 1;
|
|
2087
2086
|
parseProtocol = function parseProtocol2(url) {
|
|
2088
2087
|
var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -2093,8 +2092,7 @@ function requireParseProtocol() {
|
|
|
2093
2092
|
var xhr;
|
|
2094
2093
|
var hasRequiredXhr;
|
|
2095
2094
|
function requireXhr() {
|
|
2096
|
-
if (hasRequiredXhr)
|
|
2097
|
-
return xhr;
|
|
2095
|
+
if (hasRequiredXhr) return xhr;
|
|
2098
2096
|
hasRequiredXhr = 1;
|
|
2099
2097
|
var utils2 = utils$b;
|
|
2100
2098
|
var settle2 = requireSettle();
|
|
@@ -2251,8 +2249,7 @@ function requireXhr() {
|
|
|
2251
2249
|
var _null;
|
|
2252
2250
|
var hasRequired_null;
|
|
2253
2251
|
function require_null() {
|
|
2254
|
-
if (hasRequired_null)
|
|
2255
|
-
return _null;
|
|
2252
|
+
if (hasRequired_null) return _null;
|
|
2256
2253
|
hasRequired_null = 1;
|
|
2257
2254
|
_null = null;
|
|
2258
2255
|
return _null;
|
|
@@ -2290,7 +2287,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
2290
2287
|
}
|
|
2291
2288
|
}
|
|
2292
2289
|
}
|
|
2293
|
-
return (
|
|
2290
|
+
return (0, JSON.stringify)(rawValue);
|
|
2294
2291
|
}
|
|
2295
2292
|
var defaults$3 = {
|
|
2296
2293
|
transitional: transitionalDefaults,
|
|
@@ -2379,8 +2376,7 @@ var transformData$1 = function transformData(data2, headers, fns) {
|
|
|
2379
2376
|
var isCancel$1;
|
|
2380
2377
|
var hasRequiredIsCancel;
|
|
2381
2378
|
function requireIsCancel() {
|
|
2382
|
-
if (hasRequiredIsCancel)
|
|
2383
|
-
return isCancel$1;
|
|
2379
|
+
if (hasRequiredIsCancel) return isCancel$1;
|
|
2384
2380
|
hasRequiredIsCancel = 1;
|
|
2385
2381
|
isCancel$1 = function isCancel2(value) {
|
|
2386
2382
|
return !!(value && value.__CANCEL__);
|
|
@@ -2524,8 +2520,7 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
2524
2520
|
var data;
|
|
2525
2521
|
var hasRequiredData;
|
|
2526
2522
|
function requireData() {
|
|
2527
|
-
if (hasRequiredData)
|
|
2528
|
-
return data;
|
|
2523
|
+
if (hasRequiredData) return data;
|
|
2529
2524
|
hasRequiredData = 1;
|
|
2530
2525
|
data = {
|
|
2531
2526
|
"version": "0.27.2"
|
|
@@ -2707,8 +2702,7 @@ var Axios_1 = Axios$1;
|
|
|
2707
2702
|
var CancelToken_1;
|
|
2708
2703
|
var hasRequiredCancelToken;
|
|
2709
2704
|
function requireCancelToken() {
|
|
2710
|
-
if (hasRequiredCancelToken)
|
|
2711
|
-
return CancelToken_1;
|
|
2705
|
+
if (hasRequiredCancelToken) return CancelToken_1;
|
|
2712
2706
|
hasRequiredCancelToken = 1;
|
|
2713
2707
|
var CanceledError2 = requireCanceledError();
|
|
2714
2708
|
function CancelToken(executor) {
|
|
@@ -2721,8 +2715,7 @@ function requireCancelToken() {
|
|
|
2721
2715
|
});
|
|
2722
2716
|
var token = this;
|
|
2723
2717
|
this.promise.then(function(cancel) {
|
|
2724
|
-
if (!token._listeners)
|
|
2725
|
-
return;
|
|
2718
|
+
if (!token._listeners) return;
|
|
2726
2719
|
var i;
|
|
2727
2720
|
var l = token._listeners.length;
|
|
2728
2721
|
for (i = 0; i < l; i++) {
|
|
@@ -2790,8 +2783,7 @@ function requireCancelToken() {
|
|
|
2790
2783
|
var spread;
|
|
2791
2784
|
var hasRequiredSpread;
|
|
2792
2785
|
function requireSpread() {
|
|
2793
|
-
if (hasRequiredSpread)
|
|
2794
|
-
return spread;
|
|
2786
|
+
if (hasRequiredSpread) return spread;
|
|
2795
2787
|
hasRequiredSpread = 1;
|
|
2796
2788
|
spread = function spread2(callback) {
|
|
2797
2789
|
return function wrap(arr) {
|
|
@@ -2803,8 +2795,7 @@ function requireSpread() {
|
|
|
2803
2795
|
var isAxiosError;
|
|
2804
2796
|
var hasRequiredIsAxiosError;
|
|
2805
2797
|
function requireIsAxiosError() {
|
|
2806
|
-
if (hasRequiredIsAxiosError)
|
|
2807
|
-
return isAxiosError;
|
|
2798
|
+
if (hasRequiredIsAxiosError) return isAxiosError;
|
|
2808
2799
|
hasRequiredIsAxiosError = 1;
|
|
2809
2800
|
var utils2 = utils$b;
|
|
2810
2801
|
isAxiosError = function isAxiosError2(payload) {
|
|
@@ -2850,8 +2841,7 @@ var aes = { exports: {} };
|
|
|
2850
2841
|
var md5 = { exports: {} };
|
|
2851
2842
|
var hasRequiredMd5;
|
|
2852
2843
|
function requireMd5() {
|
|
2853
|
-
if (hasRequiredMd5)
|
|
2854
|
-
return md5.exports;
|
|
2844
|
+
if (hasRequiredMd5) return md5.exports;
|
|
2855
2845
|
hasRequiredMd5 = 1;
|
|
2856
2846
|
(function(module, exports) {
|
|
2857
2847
|
(function(root, factory) {
|
|
@@ -3030,8 +3020,7 @@ var evpkdf = { exports: {} };
|
|
|
3030
3020
|
var sha1 = { exports: {} };
|
|
3031
3021
|
var hasRequiredSha1;
|
|
3032
3022
|
function requireSha1() {
|
|
3033
|
-
if (hasRequiredSha1)
|
|
3034
|
-
return sha1.exports;
|
|
3023
|
+
if (hasRequiredSha1) return sha1.exports;
|
|
3035
3024
|
hasRequiredSha1 = 1;
|
|
3036
3025
|
(function(module, exports) {
|
|
3037
3026
|
(function(root, factory) {
|
|
@@ -3121,8 +3110,7 @@ function requireSha1() {
|
|
|
3121
3110
|
var hmac = { exports: {} };
|
|
3122
3111
|
var hasRequiredHmac;
|
|
3123
3112
|
function requireHmac() {
|
|
3124
|
-
if (hasRequiredHmac)
|
|
3125
|
-
return hmac.exports;
|
|
3113
|
+
if (hasRequiredHmac) return hmac.exports;
|
|
3126
3114
|
hasRequiredHmac = 1;
|
|
3127
3115
|
(function(module, exports) {
|
|
3128
3116
|
(function(root, factory) {
|
|
@@ -3227,8 +3215,7 @@ function requireHmac() {
|
|
|
3227
3215
|
}
|
|
3228
3216
|
var hasRequiredEvpkdf;
|
|
3229
3217
|
function requireEvpkdf() {
|
|
3230
|
-
if (hasRequiredEvpkdf)
|
|
3231
|
-
return evpkdf.exports;
|
|
3218
|
+
if (hasRequiredEvpkdf) return evpkdf.exports;
|
|
3232
3219
|
hasRequiredEvpkdf = 1;
|
|
3233
3220
|
(function(module, exports) {
|
|
3234
3221
|
(function(root, factory, undef) {
|
|
@@ -3318,8 +3305,7 @@ function requireEvpkdf() {
|
|
|
3318
3305
|
var cipherCore = { exports: {} };
|
|
3319
3306
|
var hasRequiredCipherCore;
|
|
3320
3307
|
function requireCipherCore() {
|
|
3321
|
-
if (hasRequiredCipherCore)
|
|
3322
|
-
return cipherCore.exports;
|
|
3308
|
+
if (hasRequiredCipherCore) return cipherCore.exports;
|
|
3323
3309
|
hasRequiredCipherCore = 1;
|
|
3324
3310
|
(function(module, exports) {
|
|
3325
3311
|
(function(root, factory, undef) {
|
|
@@ -3957,13 +3943,12 @@ function requireCipherCore() {
|
|
|
3957
3943
|
}
|
|
3958
3944
|
var hasRequiredAes;
|
|
3959
3945
|
function requireAes() {
|
|
3960
|
-
if (hasRequiredAes)
|
|
3961
|
-
return aes.exports;
|
|
3946
|
+
if (hasRequiredAes) return aes.exports;
|
|
3962
3947
|
hasRequiredAes = 1;
|
|
3963
3948
|
(function(module, exports) {
|
|
3964
3949
|
(function(root, factory, undef) {
|
|
3965
3950
|
{
|
|
3966
|
-
module.exports = factory(requireCore(),
|
|
3951
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
3967
3952
|
}
|
|
3968
3953
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
3969
3954
|
(function() {
|
|
@@ -4525,7 +4510,7 @@ const BootpayMessage = {
|
|
|
4525
4510
|
en: "Start Payment..."
|
|
4526
4511
|
},
|
|
4527
4512
|
CARD_SUBSCRIPTION: {
|
|
4528
|
-
ko: "
|
|
4513
|
+
ko: "자동결제 정보를 불러오는 중입니다...",
|
|
4529
4514
|
en: "Automatic payment will start..."
|
|
4530
4515
|
},
|
|
4531
4516
|
AUTH: {
|
|
@@ -4550,7 +4535,7 @@ const BootpayMessage = {
|
|
|
4550
4535
|
en: "If you agree with the purchase details, please proceed with the payment"
|
|
4551
4536
|
},
|
|
4552
4537
|
CARD_SUBSCRIPTION: {
|
|
4553
|
-
ko: '
|
|
4538
|
+
ko: '자동결제에 동의하면 "계속하기" 버튼을 눌러 진행해주세요',
|
|
4554
4539
|
en: 'If you agree to automatic card payment, press the "Continue" button to proceed'
|
|
4555
4540
|
},
|
|
4556
4541
|
AUTH: {
|
|
@@ -4613,6 +4598,14 @@ const BootpayMessage = {
|
|
|
4613
4598
|
ko: "간편결제로 결제하려면, 등록된 카드 혹은 계좌를 선택해주세요",
|
|
4614
4599
|
en: "Please select a registered card or account to pay with Easy Payment"
|
|
4615
4600
|
},
|
|
4601
|
+
widgetTypeNotPayment: {
|
|
4602
|
+
ko: "결제 위젯 요청이 아닙니다. 결제 위젯이 아닌 경우 requestSubscription 함수를 이용해주세요.",
|
|
4603
|
+
en: "This is not a payment widget. If it is not a payment widget, use the requestSubscription function."
|
|
4604
|
+
},
|
|
4605
|
+
widgetTypeNotSubscription: {
|
|
4606
|
+
ko: "정기결제 위젯 요청이 아닙니다. 정기결제 위젯이 아닌 경우 requestPayment 함수를 이용해주세요.",
|
|
4607
|
+
en: "This is not a subscription widget. If it is not a subscription widget, use the requestPayment function."
|
|
4608
|
+
},
|
|
4616
4609
|
getLocaleMessage: (key, locale) => {
|
|
4617
4610
|
const keys = key.split(".");
|
|
4618
4611
|
const message = keys.reduce((a, b) => a[b], BootpayMessage);
|
|
@@ -4715,8 +4708,7 @@ class TemplatePaymentManager extends TemplateManager {
|
|
|
4715
4708
|
<input type="hidden" name="token" value="${encrypted.token}" />
|
|
4716
4709
|
`;
|
|
4717
4710
|
form.action = this.$env.toApi(this.apiUrl());
|
|
4718
|
-
if (this.$present(data2.extra) && data2.extra.popup)
|
|
4719
|
-
;
|
|
4711
|
+
if (this.$present(data2.extra) && data2.extra.popup) ;
|
|
4720
4712
|
form.target = this.$iFrameId;
|
|
4721
4713
|
form.submit();
|
|
4722
4714
|
});
|
|
@@ -4923,7 +4915,7 @@ class TemplatePaymentManager extends TemplateManager {
|
|
|
4923
4915
|
}
|
|
4924
4916
|
if (popupPrice !== void 0) {
|
|
4925
4917
|
if (parseFloat(displayData.price) > 0) {
|
|
4926
|
-
popupPrice.innerText = String(displayData.price);
|
|
4918
|
+
popupPrice.innerText = String(displayData.price).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
4927
4919
|
} else {
|
|
4928
4920
|
popupPrice.remove();
|
|
4929
4921
|
}
|
|
@@ -5245,8 +5237,11 @@ const _BootpayRequestPaymentManager = class _BootpayRequestPaymentManager extend
|
|
|
5245
5237
|
user_token: data2.user_token,
|
|
5246
5238
|
metadata: data2.metadata,
|
|
5247
5239
|
redirect_url: data2.redirect_url,
|
|
5240
|
+
widget: data2.widget,
|
|
5241
|
+
widget_key: data2.widget_key,
|
|
5242
|
+
widget_sandbox: data2.widget_sandbox,
|
|
5248
5243
|
platform_type: this.platformType,
|
|
5249
|
-
ver:
|
|
5244
|
+
ver: Environment.packageVersion,
|
|
5250
5245
|
sdk_version: Environment.sdkVersion,
|
|
5251
5246
|
sdk_type: Environment.sdkName,
|
|
5252
5247
|
locale: Environment.locale,
|
|
@@ -5628,8 +5623,7 @@ class BootpayAnalyticsManager extends Resource {
|
|
|
5628
5623
|
}
|
|
5629
5624
|
const BootpayAnalytics = new BootpayAnalyticsManager();
|
|
5630
5625
|
(function() {
|
|
5631
|
-
if (typeof window === "undefined" || typeof window.CustomEvent === "function")
|
|
5632
|
-
return false;
|
|
5626
|
+
if (typeof window === "undefined" || typeof window.CustomEvent === "function") return false;
|
|
5633
5627
|
function CustomEvent2(event, params) {
|
|
5634
5628
|
params = params || { bubbles: false, cancelable: false, detail: void 0 };
|
|
5635
5629
|
let evt = document.createEvent("CustomEvent");
|
|
@@ -6455,8 +6449,7 @@ var cryptoJs = { exports: {} };
|
|
|
6455
6449
|
var x64Core = { exports: {} };
|
|
6456
6450
|
var hasRequiredX64Core;
|
|
6457
6451
|
function requireX64Core() {
|
|
6458
|
-
if (hasRequiredX64Core)
|
|
6459
|
-
return x64Core.exports;
|
|
6452
|
+
if (hasRequiredX64Core) return x64Core.exports;
|
|
6460
6453
|
hasRequiredX64Core = 1;
|
|
6461
6454
|
(function(module, exports) {
|
|
6462
6455
|
(function(root, factory) {
|
|
@@ -6712,8 +6705,7 @@ function requireX64Core() {
|
|
|
6712
6705
|
var libTypedarrays = { exports: {} };
|
|
6713
6706
|
var hasRequiredLibTypedarrays;
|
|
6714
6707
|
function requireLibTypedarrays() {
|
|
6715
|
-
if (hasRequiredLibTypedarrays)
|
|
6716
|
-
return libTypedarrays.exports;
|
|
6708
|
+
if (hasRequiredLibTypedarrays) return libTypedarrays.exports;
|
|
6717
6709
|
hasRequiredLibTypedarrays = 1;
|
|
6718
6710
|
(function(module, exports) {
|
|
6719
6711
|
(function(root, factory) {
|
|
@@ -6757,8 +6749,7 @@ function requireLibTypedarrays() {
|
|
|
6757
6749
|
var encUtf16 = { exports: {} };
|
|
6758
6750
|
var hasRequiredEncUtf16;
|
|
6759
6751
|
function requireEncUtf16() {
|
|
6760
|
-
if (hasRequiredEncUtf16)
|
|
6761
|
-
return encUtf16.exports;
|
|
6752
|
+
if (hasRequiredEncUtf16) return encUtf16.exports;
|
|
6762
6753
|
hasRequiredEncUtf16 = 1;
|
|
6763
6754
|
(function(module, exports) {
|
|
6764
6755
|
(function(root, factory) {
|
|
@@ -6875,8 +6866,7 @@ function requireEncUtf16() {
|
|
|
6875
6866
|
var encBase64url = { exports: {} };
|
|
6876
6867
|
var hasRequiredEncBase64url;
|
|
6877
6868
|
function requireEncBase64url() {
|
|
6878
|
-
if (hasRequiredEncBase64url)
|
|
6879
|
-
return encBase64url.exports;
|
|
6869
|
+
if (hasRequiredEncBase64url) return encBase64url.exports;
|
|
6880
6870
|
hasRequiredEncBase64url = 1;
|
|
6881
6871
|
(function(module, exports) {
|
|
6882
6872
|
(function(root, factory) {
|
|
@@ -6988,8 +6978,7 @@ function requireEncBase64url() {
|
|
|
6988
6978
|
var sha256 = { exports: {} };
|
|
6989
6979
|
var hasRequiredSha256;
|
|
6990
6980
|
function requireSha256() {
|
|
6991
|
-
if (hasRequiredSha256)
|
|
6992
|
-
return sha256.exports;
|
|
6981
|
+
if (hasRequiredSha256) return sha256.exports;
|
|
6993
6982
|
hasRequiredSha256 = 1;
|
|
6994
6983
|
(function(module, exports) {
|
|
6995
6984
|
(function(root, factory) {
|
|
@@ -7109,8 +7098,7 @@ function requireSha256() {
|
|
|
7109
7098
|
var sha224 = { exports: {} };
|
|
7110
7099
|
var hasRequiredSha224;
|
|
7111
7100
|
function requireSha224() {
|
|
7112
|
-
if (hasRequiredSha224)
|
|
7113
|
-
return sha224.exports;
|
|
7101
|
+
if (hasRequiredSha224) return sha224.exports;
|
|
7114
7102
|
hasRequiredSha224 = 1;
|
|
7115
7103
|
(function(module, exports) {
|
|
7116
7104
|
(function(root, factory, undef) {
|
|
@@ -7154,8 +7142,7 @@ function requireSha224() {
|
|
|
7154
7142
|
var sha512 = { exports: {} };
|
|
7155
7143
|
var hasRequiredSha512;
|
|
7156
7144
|
function requireSha512() {
|
|
7157
|
-
if (hasRequiredSha512)
|
|
7158
|
-
return sha512.exports;
|
|
7145
|
+
if (hasRequiredSha512) return sha512.exports;
|
|
7159
7146
|
hasRequiredSha512 = 1;
|
|
7160
7147
|
(function(module, exports) {
|
|
7161
7148
|
(function(root, factory, undef) {
|
|
@@ -7436,8 +7423,7 @@ function requireSha512() {
|
|
|
7436
7423
|
var sha384 = { exports: {} };
|
|
7437
7424
|
var hasRequiredSha384;
|
|
7438
7425
|
function requireSha384() {
|
|
7439
|
-
if (hasRequiredSha384)
|
|
7440
|
-
return sha384.exports;
|
|
7426
|
+
if (hasRequiredSha384) return sha384.exports;
|
|
7441
7427
|
hasRequiredSha384 = 1;
|
|
7442
7428
|
(function(module, exports) {
|
|
7443
7429
|
(function(root, factory, undef) {
|
|
@@ -7482,8 +7468,7 @@ function requireSha384() {
|
|
|
7482
7468
|
var sha3 = { exports: {} };
|
|
7483
7469
|
var hasRequiredSha3;
|
|
7484
7470
|
function requireSha3() {
|
|
7485
|
-
if (hasRequiredSha3)
|
|
7486
|
-
return sha3.exports;
|
|
7471
|
+
if (hasRequiredSha3) return sha3.exports;
|
|
7487
7472
|
hasRequiredSha3 = 1;
|
|
7488
7473
|
(function(module, exports) {
|
|
7489
7474
|
(function(root, factory, undef) {
|
|
@@ -7684,8 +7669,7 @@ function requireSha3() {
|
|
|
7684
7669
|
var ripemd160 = { exports: {} };
|
|
7685
7670
|
var hasRequiredRipemd160;
|
|
7686
7671
|
function requireRipemd160() {
|
|
7687
|
-
if (hasRequiredRipemd160)
|
|
7688
|
-
return ripemd160.exports;
|
|
7672
|
+
if (hasRequiredRipemd160) return ripemd160.exports;
|
|
7689
7673
|
hasRequiredRipemd160 = 1;
|
|
7690
7674
|
(function(module, exports) {
|
|
7691
7675
|
(function(root, factory) {
|
|
@@ -8165,8 +8149,7 @@ function requireRipemd160() {
|
|
|
8165
8149
|
var pbkdf2 = { exports: {} };
|
|
8166
8150
|
var hasRequiredPbkdf2;
|
|
8167
8151
|
function requirePbkdf2() {
|
|
8168
|
-
if (hasRequiredPbkdf2)
|
|
8169
|
-
return pbkdf2.exports;
|
|
8152
|
+
if (hasRequiredPbkdf2) return pbkdf2.exports;
|
|
8170
8153
|
hasRequiredPbkdf2 = 1;
|
|
8171
8154
|
(function(module, exports) {
|
|
8172
8155
|
(function(root, factory, undef) {
|
|
@@ -8263,8 +8246,7 @@ function requirePbkdf2() {
|
|
|
8263
8246
|
var modeCfb = { exports: {} };
|
|
8264
8247
|
var hasRequiredModeCfb;
|
|
8265
8248
|
function requireModeCfb() {
|
|
8266
|
-
if (hasRequiredModeCfb)
|
|
8267
|
-
return modeCfb.exports;
|
|
8249
|
+
if (hasRequiredModeCfb) return modeCfb.exports;
|
|
8268
8250
|
hasRequiredModeCfb = 1;
|
|
8269
8251
|
(function(module, exports) {
|
|
8270
8252
|
(function(root, factory, undef) {
|
|
@@ -8315,8 +8297,7 @@ function requireModeCfb() {
|
|
|
8315
8297
|
var modeCtr = { exports: {} };
|
|
8316
8298
|
var hasRequiredModeCtr;
|
|
8317
8299
|
function requireModeCtr() {
|
|
8318
|
-
if (hasRequiredModeCtr)
|
|
8319
|
-
return modeCtr.exports;
|
|
8300
|
+
if (hasRequiredModeCtr) return modeCtr.exports;
|
|
8320
8301
|
hasRequiredModeCtr = 1;
|
|
8321
8302
|
(function(module, exports) {
|
|
8322
8303
|
(function(root, factory, undef) {
|
|
@@ -8355,8 +8336,7 @@ function requireModeCtr() {
|
|
|
8355
8336
|
var modeCtrGladman = { exports: {} };
|
|
8356
8337
|
var hasRequiredModeCtrGladman;
|
|
8357
8338
|
function requireModeCtrGladman() {
|
|
8358
|
-
if (hasRequiredModeCtrGladman)
|
|
8359
|
-
return modeCtrGladman.exports;
|
|
8339
|
+
if (hasRequiredModeCtrGladman) return modeCtrGladman.exports;
|
|
8360
8340
|
hasRequiredModeCtrGladman = 1;
|
|
8361
8341
|
(function(module, exports) {
|
|
8362
8342
|
(function(root, factory, undef) {
|
|
@@ -8435,8 +8415,7 @@ function requireModeCtrGladman() {
|
|
|
8435
8415
|
var modeOfb = { exports: {} };
|
|
8436
8416
|
var hasRequiredModeOfb;
|
|
8437
8417
|
function requireModeOfb() {
|
|
8438
|
-
if (hasRequiredModeOfb)
|
|
8439
|
-
return modeOfb.exports;
|
|
8418
|
+
if (hasRequiredModeOfb) return modeOfb.exports;
|
|
8440
8419
|
hasRequiredModeOfb = 1;
|
|
8441
8420
|
(function(module, exports) {
|
|
8442
8421
|
(function(root, factory, undef) {
|
|
@@ -8473,8 +8452,7 @@ function requireModeOfb() {
|
|
|
8473
8452
|
var modeEcb = { exports: {} };
|
|
8474
8453
|
var hasRequiredModeEcb;
|
|
8475
8454
|
function requireModeEcb() {
|
|
8476
|
-
if (hasRequiredModeEcb)
|
|
8477
|
-
return modeEcb.exports;
|
|
8455
|
+
if (hasRequiredModeEcb) return modeEcb.exports;
|
|
8478
8456
|
hasRequiredModeEcb = 1;
|
|
8479
8457
|
(function(module, exports) {
|
|
8480
8458
|
(function(root, factory, undef) {
|
|
@@ -8504,8 +8482,7 @@ function requireModeEcb() {
|
|
|
8504
8482
|
var padAnsix923 = { exports: {} };
|
|
8505
8483
|
var hasRequiredPadAnsix923;
|
|
8506
8484
|
function requirePadAnsix923() {
|
|
8507
|
-
if (hasRequiredPadAnsix923)
|
|
8508
|
-
return padAnsix923.exports;
|
|
8485
|
+
if (hasRequiredPadAnsix923) return padAnsix923.exports;
|
|
8509
8486
|
hasRequiredPadAnsix923 = 1;
|
|
8510
8487
|
(function(module, exports) {
|
|
8511
8488
|
(function(root, factory, undef) {
|
|
@@ -8536,8 +8513,7 @@ function requirePadAnsix923() {
|
|
|
8536
8513
|
var padIso10126 = { exports: {} };
|
|
8537
8514
|
var hasRequiredPadIso10126;
|
|
8538
8515
|
function requirePadIso10126() {
|
|
8539
|
-
if (hasRequiredPadIso10126)
|
|
8540
|
-
return padIso10126.exports;
|
|
8516
|
+
if (hasRequiredPadIso10126) return padIso10126.exports;
|
|
8541
8517
|
hasRequiredPadIso10126 = 1;
|
|
8542
8518
|
(function(module, exports) {
|
|
8543
8519
|
(function(root, factory, undef) {
|
|
@@ -8564,8 +8540,7 @@ function requirePadIso10126() {
|
|
|
8564
8540
|
var padIso97971 = { exports: {} };
|
|
8565
8541
|
var hasRequiredPadIso97971;
|
|
8566
8542
|
function requirePadIso97971() {
|
|
8567
|
-
if (hasRequiredPadIso97971)
|
|
8568
|
-
return padIso97971.exports;
|
|
8543
|
+
if (hasRequiredPadIso97971) return padIso97971.exports;
|
|
8569
8544
|
hasRequiredPadIso97971 = 1;
|
|
8570
8545
|
(function(module, exports) {
|
|
8571
8546
|
(function(root, factory, undef) {
|
|
@@ -8591,8 +8566,7 @@ function requirePadIso97971() {
|
|
|
8591
8566
|
var padZeropadding = { exports: {} };
|
|
8592
8567
|
var hasRequiredPadZeropadding;
|
|
8593
8568
|
function requirePadZeropadding() {
|
|
8594
|
-
if (hasRequiredPadZeropadding)
|
|
8595
|
-
return padZeropadding.exports;
|
|
8569
|
+
if (hasRequiredPadZeropadding) return padZeropadding.exports;
|
|
8596
8570
|
hasRequiredPadZeropadding = 1;
|
|
8597
8571
|
(function(module, exports) {
|
|
8598
8572
|
(function(root, factory, undef) {
|
|
@@ -8625,8 +8599,7 @@ function requirePadZeropadding() {
|
|
|
8625
8599
|
var padNopadding = { exports: {} };
|
|
8626
8600
|
var hasRequiredPadNopadding;
|
|
8627
8601
|
function requirePadNopadding() {
|
|
8628
|
-
if (hasRequiredPadNopadding)
|
|
8629
|
-
return padNopadding.exports;
|
|
8602
|
+
if (hasRequiredPadNopadding) return padNopadding.exports;
|
|
8630
8603
|
hasRequiredPadNopadding = 1;
|
|
8631
8604
|
(function(module, exports) {
|
|
8632
8605
|
(function(root, factory, undef) {
|
|
@@ -8648,8 +8621,7 @@ function requirePadNopadding() {
|
|
|
8648
8621
|
var formatHex = { exports: {} };
|
|
8649
8622
|
var hasRequiredFormatHex;
|
|
8650
8623
|
function requireFormatHex() {
|
|
8651
|
-
if (hasRequiredFormatHex)
|
|
8652
|
-
return formatHex.exports;
|
|
8624
|
+
if (hasRequiredFormatHex) return formatHex.exports;
|
|
8653
8625
|
hasRequiredFormatHex = 1;
|
|
8654
8626
|
(function(module, exports) {
|
|
8655
8627
|
(function(root, factory, undef) {
|
|
@@ -8708,13 +8680,12 @@ function requireFormatHex() {
|
|
|
8708
8680
|
var tripledes = { exports: {} };
|
|
8709
8681
|
var hasRequiredTripledes;
|
|
8710
8682
|
function requireTripledes() {
|
|
8711
|
-
if (hasRequiredTripledes)
|
|
8712
|
-
return tripledes.exports;
|
|
8683
|
+
if (hasRequiredTripledes) return tripledes.exports;
|
|
8713
8684
|
hasRequiredTripledes = 1;
|
|
8714
8685
|
(function(module, exports) {
|
|
8715
8686
|
(function(root, factory, undef) {
|
|
8716
8687
|
{
|
|
8717
|
-
module.exports = factory(requireCore(),
|
|
8688
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
8718
8689
|
}
|
|
8719
8690
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
8720
8691
|
(function() {
|
|
@@ -9489,13 +9460,12 @@ function requireTripledes() {
|
|
|
9489
9460
|
var rc4 = { exports: {} };
|
|
9490
9461
|
var hasRequiredRc4;
|
|
9491
9462
|
function requireRc4() {
|
|
9492
|
-
if (hasRequiredRc4)
|
|
9493
|
-
return rc4.exports;
|
|
9463
|
+
if (hasRequiredRc4) return rc4.exports;
|
|
9494
9464
|
hasRequiredRc4 = 1;
|
|
9495
9465
|
(function(module, exports) {
|
|
9496
9466
|
(function(root, factory, undef) {
|
|
9497
9467
|
{
|
|
9498
|
-
module.exports = factory(requireCore(),
|
|
9468
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
9499
9469
|
}
|
|
9500
9470
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9501
9471
|
(function() {
|
|
@@ -9572,13 +9542,12 @@ function requireRc4() {
|
|
|
9572
9542
|
var rabbit = { exports: {} };
|
|
9573
9543
|
var hasRequiredRabbit;
|
|
9574
9544
|
function requireRabbit() {
|
|
9575
|
-
if (hasRequiredRabbit)
|
|
9576
|
-
return rabbit.exports;
|
|
9545
|
+
if (hasRequiredRabbit) return rabbit.exports;
|
|
9577
9546
|
hasRequiredRabbit = 1;
|
|
9578
9547
|
(function(module, exports) {
|
|
9579
9548
|
(function(root, factory, undef) {
|
|
9580
9549
|
{
|
|
9581
|
-
module.exports = factory(requireCore(),
|
|
9550
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
9582
9551
|
}
|
|
9583
9552
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9584
9553
|
(function() {
|
|
@@ -9701,13 +9670,12 @@ function requireRabbit() {
|
|
|
9701
9670
|
var rabbitLegacy = { exports: {} };
|
|
9702
9671
|
var hasRequiredRabbitLegacy;
|
|
9703
9672
|
function requireRabbitLegacy() {
|
|
9704
|
-
if (hasRequiredRabbitLegacy)
|
|
9705
|
-
return rabbitLegacy.exports;
|
|
9673
|
+
if (hasRequiredRabbitLegacy) return rabbitLegacy.exports;
|
|
9706
9674
|
hasRequiredRabbitLegacy = 1;
|
|
9707
9675
|
(function(module, exports) {
|
|
9708
9676
|
(function(root, factory, undef) {
|
|
9709
9677
|
{
|
|
9710
|
-
module.exports = factory(requireCore(),
|
|
9678
|
+
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
9711
9679
|
}
|
|
9712
9680
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9713
9681
|
(function() {
|
|
@@ -9827,7 +9795,7 @@ function requireRabbitLegacy() {
|
|
|
9827
9795
|
(function(module, exports) {
|
|
9828
9796
|
(function(root, factory, undef) {
|
|
9829
9797
|
{
|
|
9830
|
-
module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(),
|
|
9798
|
+
module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), requireEncBase64(), requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy());
|
|
9831
9799
|
}
|
|
9832
9800
|
})(commonjsGlobal, function(CryptoJS2) {
|
|
9833
9801
|
return CryptoJS2;
|
|
@@ -9837,109 +9805,89 @@ var cryptoJsExports = cryptoJs.exports;
|
|
|
9837
9805
|
const CryptoJS = /* @__PURE__ */ getDefaultExportFromCjs(cryptoJsExports);
|
|
9838
9806
|
const WidgetStore = {
|
|
9839
9807
|
el: void 0,
|
|
9840
|
-
|
|
9841
|
-
price: 0,
|
|
9842
|
-
taxFree: 0,
|
|
9843
|
-
depositPrice: 0,
|
|
9844
|
-
currency: "KRW",
|
|
9845
|
-
userToken: void 0,
|
|
9846
|
-
pg: void 0,
|
|
9847
|
-
method: void 0,
|
|
9848
|
-
walletId: void 0,
|
|
9849
|
-
selectTerms: [],
|
|
9850
|
-
useOnlyOOpay: false,
|
|
9808
|
+
data: void 0,
|
|
9851
9809
|
termsPassed: false,
|
|
9852
|
-
useTerms: true,
|
|
9853
|
-
sandbox: false,
|
|
9854
|
-
useBootpayInAppSdk: false,
|
|
9855
|
-
widgetKey: void 0,
|
|
9856
|
-
externalTerms: [],
|
|
9857
9810
|
widgetExtra: {
|
|
9858
9811
|
card_quota: []
|
|
9859
9812
|
},
|
|
9860
|
-
|
|
9861
|
-
setWidgetData(data2) {
|
|
9862
|
-
|
|
9863
|
-
this.
|
|
9864
|
-
this.
|
|
9865
|
-
this.taxFree = data2.tax_free;
|
|
9866
|
-
this.depositPrice = data2.deposit_price;
|
|
9867
|
-
this.currency = data2.currency;
|
|
9868
|
-
this.userToken = data2.user_token;
|
|
9869
|
-
this.useOnlyOOpay = data2.use_only_oopay === void 0 ? false : data2.use_only_oopay;
|
|
9870
|
-
this.useTerms = !(data2.use_terms === false);
|
|
9871
|
-
this.walletId = data2.wallet_id;
|
|
9872
|
-
this.externalTerms = data2.external_terms;
|
|
9873
|
-
this.widgetExtra = data2.widget_extra;
|
|
9874
|
-
this.widgetKey = data2.widget_key;
|
|
9875
|
-
this.sandbox = data2.sandbox === true;
|
|
9876
|
-
this.useBootpayInAppSdk = data2.use_bootpay_inapp_sdk === true;
|
|
9813
|
+
widgetType: 1,
|
|
9814
|
+
setWidgetData(element, data2) {
|
|
9815
|
+
var _a, _b;
|
|
9816
|
+
this.el = String(element).replace(/#/gi, "");
|
|
9817
|
+
this.data = data2;
|
|
9877
9818
|
this.termsPassed = false;
|
|
9878
|
-
this.
|
|
9819
|
+
this.data.terms = (_a = this.data.terms) != null ? _a : [];
|
|
9820
|
+
this.widgetType = 1;
|
|
9821
|
+
this.data.widget = 1;
|
|
9822
|
+
this.data.use_terms = (_b = this.data.use_terms) != null ? _b : true;
|
|
9879
9823
|
},
|
|
9880
9824
|
setPayment(pg, method, wallet_id, terms = false, select_terms, extra) {
|
|
9881
|
-
this.pg = pg;
|
|
9882
|
-
this.method = method;
|
|
9883
|
-
this.
|
|
9825
|
+
this.data.pg = pg;
|
|
9826
|
+
this.data.method = method;
|
|
9827
|
+
this.data.wallet_id = wallet_id;
|
|
9884
9828
|
this.termsPassed = terms;
|
|
9885
|
-
this.
|
|
9886
|
-
this.
|
|
9829
|
+
this.data.terms = select_terms;
|
|
9830
|
+
this.widgetExtra = extra;
|
|
9887
9831
|
},
|
|
9888
9832
|
updateOnProcessing(data2) {
|
|
9889
9833
|
if (isPresent(data2.price)) {
|
|
9890
|
-
this.price = data2.price;
|
|
9834
|
+
this.data.price = data2.price;
|
|
9891
9835
|
}
|
|
9892
9836
|
if (isPresent(data2.tax_free)) {
|
|
9893
|
-
this.
|
|
9837
|
+
this.data.tax_free = data2.tax_free;
|
|
9894
9838
|
}
|
|
9895
9839
|
if (isPresent(data2.currency)) {
|
|
9896
|
-
this.currency = data2.currency;
|
|
9840
|
+
this.data.currency = data2.currency;
|
|
9897
9841
|
}
|
|
9898
9842
|
if (data2.user_token !== void 0) {
|
|
9899
|
-
this.
|
|
9843
|
+
this.data.user_token = data2.user_token;
|
|
9900
9844
|
}
|
|
9901
9845
|
if (isPresent(data2.use_terms)) {
|
|
9902
|
-
this.
|
|
9846
|
+
this.data.use_terms = !(data2.use_terms === false);
|
|
9903
9847
|
}
|
|
9904
9848
|
if (isPresent(data2.sandbox)) {
|
|
9905
|
-
this.sandbox = data2.sandbox === true;
|
|
9849
|
+
this.data.sandbox = data2.sandbox === true;
|
|
9906
9850
|
}
|
|
9907
9851
|
if (isPresent(data2.widget_key)) {
|
|
9908
|
-
this.
|
|
9852
|
+
this.data.widget_key = data2.widget_key;
|
|
9853
|
+
}
|
|
9854
|
+
if (isPresent(data2.widget_type)) {
|
|
9855
|
+
this.widgetType = data2.widget_type;
|
|
9909
9856
|
}
|
|
9910
9857
|
if (data2.external_terms !== void 0) {
|
|
9911
|
-
this.
|
|
9858
|
+
this.data.external_terms = data2.external_terms;
|
|
9912
9859
|
}
|
|
9913
9860
|
if (data2.use_bootpay_inapp_sdk !== void 0) {
|
|
9914
|
-
this.
|
|
9861
|
+
this.data.use_bootpay_inapp_sdk = data2.use_bootpay_inapp_sdk;
|
|
9915
9862
|
}
|
|
9916
9863
|
if (data2.widget_key !== void 0) {
|
|
9917
|
-
this.
|
|
9864
|
+
this.data.widget_key = data2.widget_key;
|
|
9918
9865
|
}
|
|
9919
9866
|
},
|
|
9920
9867
|
encryptParameters() {
|
|
9921
9868
|
return encodeURIComponent(
|
|
9922
9869
|
this.encrypt({
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9870
|
+
order_name: this.data.order_name,
|
|
9871
|
+
use_only_oopay: this.data.use_only_oopay,
|
|
9872
|
+
user_token: this.data.user_token,
|
|
9873
|
+
sandbox: this.data.sandbox,
|
|
9874
|
+
use_terms: this.data.use_terms,
|
|
9875
|
+
external_terms: this.data.external_terms,
|
|
9876
|
+
key: this.data.widget_key,
|
|
9877
|
+
use_bootpay_inapp_sdk: this.data.use_bootpay_inapp_sdk,
|
|
9878
|
+
extra: this.data.extra,
|
|
9931
9879
|
log_level: Logger.level
|
|
9932
9880
|
})
|
|
9933
9881
|
);
|
|
9934
9882
|
},
|
|
9935
9883
|
encrypt(data2) {
|
|
9936
|
-
if (isBlank(this.
|
|
9884
|
+
if (isBlank(this.data.application_id)) {
|
|
9937
9885
|
throw new Error("privateKey is not set");
|
|
9938
9886
|
}
|
|
9939
9887
|
const payload = typeof data2 === "string" ? data2 : JSON.stringify(data2);
|
|
9940
9888
|
const encrypted = AES.encrypt(
|
|
9941
9889
|
payload,
|
|
9942
|
-
CryptoJS.enc.Utf8.parse(this.
|
|
9890
|
+
CryptoJS.enc.Utf8.parse(this.data.application_id.substring(0, 16)),
|
|
9943
9891
|
{
|
|
9944
9892
|
mode: CryptoJS.mode.ECB,
|
|
9945
9893
|
padding: CryptoJS.pad.Pkcs7
|
|
@@ -9948,12 +9896,12 @@ const WidgetStore = {
|
|
|
9948
9896
|
return Base64.stringify(encrypted.ciphertext);
|
|
9949
9897
|
},
|
|
9950
9898
|
decrypt(data2) {
|
|
9951
|
-
if (isBlank(this.
|
|
9899
|
+
if (isBlank(this.data.application_id)) {
|
|
9952
9900
|
throw new Error("privateKey is not set");
|
|
9953
9901
|
}
|
|
9954
9902
|
const decrypted = AES.decrypt(
|
|
9955
9903
|
data2,
|
|
9956
|
-
CryptoJS.enc.Utf8.parse(this.
|
|
9904
|
+
CryptoJS.enc.Utf8.parse(this.data.application_id.substring(0, 16)),
|
|
9957
9905
|
{
|
|
9958
9906
|
mode: CryptoJS.mode.ECB,
|
|
9959
9907
|
padding: CryptoJS.pad.Pkcs7
|
|
@@ -9965,6 +9913,19 @@ const WidgetStore = {
|
|
|
9965
9913
|
} catch (e) {
|
|
9966
9914
|
return decryptedString;
|
|
9967
9915
|
}
|
|
9916
|
+
},
|
|
9917
|
+
/**
|
|
9918
|
+
* 결제 요청시 가져올 extra 값
|
|
9919
|
+
* Comment by GOSOMI
|
|
9920
|
+
* @date: 2024-08-19
|
|
9921
|
+
*/
|
|
9922
|
+
getExtra(externalExtra = void 0) {
|
|
9923
|
+
var _a, _b;
|
|
9924
|
+
return mergeHash(externalExtra != null ? externalExtra : {}, mergeHash((_a = this.widgetExtra) != null ? _a : {}, (_b = this.data.extra) != null ? _b : {}));
|
|
9925
|
+
},
|
|
9926
|
+
getRequestPaymentData(data2 = void 0) {
|
|
9927
|
+
this.data.extra = this.getExtra(data2.extra);
|
|
9928
|
+
return mergeHash(data2, this.data);
|
|
9968
9929
|
}
|
|
9969
9930
|
};
|
|
9970
9931
|
class TemplateWidgetManager extends TemplateManager {
|
|
@@ -10001,7 +9962,7 @@ class TemplateWidgetManager extends TemplateManager {
|
|
|
10001
9962
|
iFrame.setAttribute(
|
|
10002
9963
|
"src",
|
|
10003
9964
|
Environment.toWidget(
|
|
10004
|
-
`p/${this.$widgetStore.
|
|
9965
|
+
`p/${this.$widgetStore.data.application_id}/${this.$widgetStore.encryptParameters()}`
|
|
10005
9966
|
)
|
|
10006
9967
|
);
|
|
10007
9968
|
}
|
|
@@ -10081,10 +10042,10 @@ class OOpayTemplateManager extends TemplateManager {
|
|
|
10081
10042
|
this.createIFrame(url);
|
|
10082
10043
|
}
|
|
10083
10044
|
removeWallet(walletId) {
|
|
10084
|
-
this.createIFrame(`oopay/destroy/${this.$widgetStore.
|
|
10045
|
+
this.createIFrame(`oopay/destroy/${this.$widgetStore.data.application_id}/${walletId}`);
|
|
10085
10046
|
}
|
|
10086
10047
|
showCardInterestInformation(data2) {
|
|
10087
|
-
this.createIFrame(`card/interest/${this.$widgetStore.
|
|
10048
|
+
this.createIFrame(`card/interest/${this.$widgetStore.data.application_id}`);
|
|
10088
10049
|
}
|
|
10089
10050
|
destroy() {
|
|
10090
10051
|
const element = document.getElementById(this.$windowId);
|
|
@@ -10244,23 +10205,23 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10244
10205
|
);
|
|
10245
10206
|
case "bootpayRequestGetEnvironment":
|
|
10246
10207
|
return TemplateWidget.postMessage("bootpayResponseGetEnvironment", {
|
|
10247
|
-
use_only_oopay: TemplateWidget.$widgetStore.
|
|
10248
|
-
user_token: TemplateWidget.$widgetStore.
|
|
10249
|
-
sandbox: TemplateWidget.$widgetStore.sandbox,
|
|
10250
|
-
use_terms: TemplateWidget.$widgetStore.
|
|
10251
|
-
external_terms: TemplateWidget.$widgetStore.
|
|
10252
|
-
key: TemplateWidget.$widgetStore.
|
|
10253
|
-
use_bootpay_inapp_sdk: TemplateWidget.$widgetStore.
|
|
10208
|
+
use_only_oopay: TemplateWidget.$widgetStore.data.use_only_oopay,
|
|
10209
|
+
user_token: TemplateWidget.$widgetStore.data.user_token,
|
|
10210
|
+
sandbox: TemplateWidget.$widgetStore.data.sandbox,
|
|
10211
|
+
use_terms: TemplateWidget.$widgetStore.data.use_terms,
|
|
10212
|
+
external_terms: TemplateWidget.$widgetStore.data.external_terms,
|
|
10213
|
+
key: TemplateWidget.$widgetStore.data.widget_key,
|
|
10214
|
+
use_bootpay_inapp_sdk: TemplateWidget.$widgetStore.data.use_bootpay_inapp_sdk,
|
|
10254
10215
|
log_level: Logger.level
|
|
10255
10216
|
});
|
|
10256
10217
|
case "bootpayRequestGetEnvironmentWidget":
|
|
10257
10218
|
return TemplateWidget.postMessage("bootpayWidgetGetEnvironmentWidget", response.data);
|
|
10258
10219
|
case "bootpayWidgetResponseGetEnvironmentWidget":
|
|
10259
10220
|
return OOpayTemplate.postMessage("bootpayResponseGetEnvironmentWidget", {
|
|
10260
|
-
use_only_oopay: TemplateWidget.$widgetStore.
|
|
10261
|
-
user_token: TemplateWidget.$widgetStore.
|
|
10262
|
-
sandbox: TemplateWidget.$widgetStore.sandbox,
|
|
10263
|
-
use_terms: TemplateWidget.$widgetStore.
|
|
10221
|
+
use_only_oopay: TemplateWidget.$widgetStore.data.use_only_oopay,
|
|
10222
|
+
user_token: TemplateWidget.$widgetStore.data.user_token,
|
|
10223
|
+
sandbox: TemplateWidget.$widgetStore.data.sandbox,
|
|
10224
|
+
use_terms: TemplateWidget.$widgetStore.data.use_terms,
|
|
10264
10225
|
platform: response.data.platform
|
|
10265
10226
|
});
|
|
10266
10227
|
case "bootpayRequestCurrentStores":
|
|
@@ -10294,13 +10255,13 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10294
10255
|
return TemplateWidget.postMessage("bootpayWidgetGetEnvironmentModalWidget", response.data);
|
|
10295
10256
|
case "bootpayWidgetResponseGetEnvironmentModalWidget":
|
|
10296
10257
|
return ModalTemplate.postMessage("bootpayResponseGetEnvironmentModalWidget", {
|
|
10297
|
-
application_id: TemplateWidget.$widgetStore.
|
|
10298
|
-
use_only_oopay: TemplateWidget.$widgetStore.
|
|
10299
|
-
user_token: TemplateWidget.$widgetStore.
|
|
10300
|
-
sandbox: TemplateWidget.$widgetStore.sandbox,
|
|
10301
|
-
use_terms: TemplateWidget.$widgetStore.
|
|
10302
|
-
external_terms: TemplateWidget.$widgetStore.
|
|
10303
|
-
key: TemplateWidget.$widgetStore.
|
|
10258
|
+
application_id: TemplateWidget.$widgetStore.data.application_id,
|
|
10259
|
+
use_only_oopay: TemplateWidget.$widgetStore.data.use_only_oopay,
|
|
10260
|
+
user_token: TemplateWidget.$widgetStore.data.user_token,
|
|
10261
|
+
sandbox: TemplateWidget.$widgetStore.data.sandbox,
|
|
10262
|
+
use_terms: TemplateWidget.$widgetStore.data.use_terms,
|
|
10263
|
+
external_terms: TemplateWidget.$widgetStore.data.external_terms,
|
|
10264
|
+
key: TemplateWidget.$widgetStore.data.widget_key,
|
|
10304
10265
|
platform: response.data.platform,
|
|
10305
10266
|
log_level: Logger.level
|
|
10306
10267
|
});
|
|
@@ -10308,18 +10269,17 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10308
10269
|
return ModalTemplate.resize(response.data);
|
|
10309
10270
|
case "bootpayWidgetPaymentGetStoreData":
|
|
10310
10271
|
const {
|
|
10311
|
-
|
|
10272
|
+
application_id,
|
|
10312
10273
|
price,
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
} = TemplateWidget.$widgetStore;
|
|
10274
|
+
tax_free,
|
|
10275
|
+
user_token
|
|
10276
|
+
} = TemplateWidget.$widgetStore.data;
|
|
10317
10277
|
return TemplateWidget.postMessage("bootpayWidgetResponseStoreData", {
|
|
10318
|
-
applicationId,
|
|
10278
|
+
applicationId: application_id,
|
|
10319
10279
|
price,
|
|
10320
|
-
widgetExtra,
|
|
10321
|
-
taxFree,
|
|
10322
|
-
userToken
|
|
10280
|
+
widgetExtra: TemplateWidget.$widgetStore.widgetExtra,
|
|
10281
|
+
taxFree: tax_free,
|
|
10282
|
+
userToken: user_token
|
|
10323
10283
|
});
|
|
10324
10284
|
case "bootpayWidgetTermAllAgree":
|
|
10325
10285
|
this.callBootpayDOMEvent("all-agree-terms", response.data);
|
|
@@ -10376,11 +10336,11 @@ class BootpayWidgetEventManager extends BootpayWindowEvent {
|
|
|
10376
10336
|
*/
|
|
10377
10337
|
triggerGlobalChangeEvent(data2) {
|
|
10378
10338
|
var _a;
|
|
10379
|
-
data2.completed = this.$present(data2.pg) && this.$present(data2.method) && (data2.term_passed === true || !WidgetStore.
|
|
10380
|
-
if (WidgetStore.pg !== data2.pg || WidgetStore.method !== data2.method || WidgetStore.
|
|
10339
|
+
data2.completed = this.$present(data2.pg) && this.$present(data2.method) && (data2.term_passed === true || !WidgetStore.data.use_terms) && (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(data2.method) === -1 || data2.wallet_id !== void 0);
|
|
10340
|
+
if (WidgetStore.data.pg !== data2.pg || WidgetStore.data.method !== data2.method || WidgetStore.data.wallet_id !== data2.wallet_id || JSON.stringify(WidgetStore.widgetExtra) !== JSON.stringify(data2.extra)) {
|
|
10381
10341
|
this.callBootpayDOMEvent("widget-change-payment", data2);
|
|
10382
10342
|
}
|
|
10383
|
-
if (JSON.stringify((_a = data2.select_terms) == null ? void 0 : _a.filter((v) => v.agree === true)) !== JSON.stringify(WidgetStore.
|
|
10343
|
+
if (JSON.stringify((_a = data2.select_terms) == null ? void 0 : _a.filter((v) => v.agree === true)) !== JSON.stringify(WidgetStore.data.terms.filter((v) => v.agree === true))) {
|
|
10384
10344
|
this.callBootpayDOMEvent("widget-change-terms", data2);
|
|
10385
10345
|
}
|
|
10386
10346
|
}
|
|
@@ -10392,17 +10352,21 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10392
10352
|
this.message = BootpayMessage;
|
|
10393
10353
|
}
|
|
10394
10354
|
initialize() {
|
|
10395
|
-
WidgetStore.setWidgetData(
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10355
|
+
WidgetStore.setWidgetData(
|
|
10356
|
+
void 0,
|
|
10357
|
+
{
|
|
10358
|
+
application_id: void 0,
|
|
10359
|
+
order_name: "",
|
|
10360
|
+
order_id: void 0,
|
|
10361
|
+
price: 0,
|
|
10362
|
+
tax_free: 0,
|
|
10363
|
+
currency: "KRW",
|
|
10364
|
+
user_token: void 0,
|
|
10365
|
+
pg: void 0,
|
|
10366
|
+
method: void 0,
|
|
10367
|
+
widget_key: void 0
|
|
10368
|
+
}
|
|
10369
|
+
);
|
|
10406
10370
|
}
|
|
10407
10371
|
render(el, data2) {
|
|
10408
10372
|
if (this.$blank(data2 == null ? void 0 : data2.price) || data2.price < 0) {
|
|
@@ -10412,21 +10376,10 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10412
10376
|
throw new Error("application_id가 입력되지 않았습니다.");
|
|
10413
10377
|
}
|
|
10414
10378
|
this.initialize();
|
|
10415
|
-
WidgetStore.setWidgetData(
|
|
10379
|
+
WidgetStore.setWidgetData(
|
|
10416
10380
|
el,
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
tax_free: data2.tax_free,
|
|
10420
|
-
currency: data2.currency,
|
|
10421
|
-
user_token: data2.user_token,
|
|
10422
|
-
use_only_oopay: data2.use_only_oopay,
|
|
10423
|
-
external_terms: data2.external_terms,
|
|
10424
|
-
use_bootpay_inapp_sdk: data2.use_bootpay_inapp_sdk,
|
|
10425
|
-
widget_extra: data2.extra,
|
|
10426
|
-
use_terms: data2.use_terms,
|
|
10427
|
-
sandbox: data2.sandbox,
|
|
10428
|
-
widget_key: data2.key
|
|
10429
|
-
});
|
|
10381
|
+
data2
|
|
10382
|
+
);
|
|
10430
10383
|
TemplateWidget.render();
|
|
10431
10384
|
BootpayWidgetEvent.bind();
|
|
10432
10385
|
}
|
|
@@ -10439,7 +10392,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10439
10392
|
use_only_oopay,
|
|
10440
10393
|
use_terms,
|
|
10441
10394
|
sandbox,
|
|
10442
|
-
|
|
10395
|
+
widget_key,
|
|
10443
10396
|
external_terms
|
|
10444
10397
|
} = data2;
|
|
10445
10398
|
WidgetStore.updateOnProcessing({
|
|
@@ -10451,7 +10404,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10451
10404
|
use_terms,
|
|
10452
10405
|
external_terms,
|
|
10453
10406
|
sandbox,
|
|
10454
|
-
widget_key
|
|
10407
|
+
widget_key
|
|
10455
10408
|
});
|
|
10456
10409
|
if (this.$present(user_token) || this.$present(use_only_oopay) || this.$present(use_terms) || this.$present(sandbox)) {
|
|
10457
10410
|
TemplateWidget.postMessage("bootpayWidgetUpdateUserToken", {
|
|
@@ -10460,7 +10413,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10460
10413
|
use_terms,
|
|
10461
10414
|
external_terms,
|
|
10462
10415
|
sandbox,
|
|
10463
|
-
key
|
|
10416
|
+
key: widget_key
|
|
10464
10417
|
});
|
|
10465
10418
|
}
|
|
10466
10419
|
}
|
|
@@ -10476,7 +10429,7 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10476
10429
|
Logger.debug("selectPayment", `pg: ${pg}, method: ${method}, wallet_id: ${wallet_id}, terms: ${terms}, select_terms: ${JSON.stringify(select_terms)}, extra: ${JSON.stringify(extra)}`);
|
|
10477
10430
|
}
|
|
10478
10431
|
currentTermsCondition() {
|
|
10479
|
-
return WidgetStore.
|
|
10432
|
+
return WidgetStore.data.terms;
|
|
10480
10433
|
}
|
|
10481
10434
|
/**
|
|
10482
10435
|
* 부트페이 결제 요청을 한다
|
|
@@ -10485,59 +10438,20 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10485
10438
|
*/
|
|
10486
10439
|
requestPayment(data2) {
|
|
10487
10440
|
return __async(this, null, function* () {
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
event: "error",
|
|
10491
|
-
error_code: "RC_PG_METHOD_NOT_SELECTED",
|
|
10492
|
-
message: this.message.getLocaleMessage("notSelectPayment", "ko")
|
|
10493
|
-
});
|
|
10494
|
-
}
|
|
10495
|
-
if (!WidgetStore.termsPassed && WidgetStore.useTerms) {
|
|
10496
|
-
throw new BootpayEventError({
|
|
10497
|
-
event: "error",
|
|
10498
|
-
error_code: "RC_TERMS_NOT_AGREE",
|
|
10499
|
-
message: this.message.getLocaleMessage("termsNotAgree", "ko")
|
|
10500
|
-
});
|
|
10501
|
-
}
|
|
10502
|
-
if (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(WidgetStore.method) > -1 && WidgetStore.walletId === void 0) {
|
|
10503
|
-
throw new BootpayEventError({
|
|
10504
|
-
event: "error",
|
|
10505
|
-
error_code: "RC_OOPAY_NEED_SELECT_WALLET",
|
|
10506
|
-
message: this.message.getLocaleMessage("notSelectOOPay", "ko")
|
|
10507
|
-
});
|
|
10508
|
-
}
|
|
10509
|
-
data2.application_id = WidgetStore.applicationId;
|
|
10510
|
-
data2.price = WidgetStore.price;
|
|
10511
|
-
data2.tax_free = WidgetStore.taxFree;
|
|
10512
|
-
data2.deposit_price = WidgetStore.depositPrice;
|
|
10513
|
-
data2.currency = WidgetStore.currency;
|
|
10514
|
-
data2.pg = WidgetStore.pg;
|
|
10515
|
-
data2.method = WidgetStore.method;
|
|
10516
|
-
data2.wallet_id = WidgetStore.walletId;
|
|
10517
|
-
data2.terms = WidgetStore.selectTerms;
|
|
10518
|
-
data2.widget_sandbox = WidgetStore.sandbox;
|
|
10519
|
-
data2.widget_key = WidgetStore.widgetKey;
|
|
10520
|
-
data2.extra = this.mergeExtraOnStore(data2.extra);
|
|
10521
|
-
data2.widget = 1;
|
|
10522
|
-
return Bootpay.requestPayment(data2);
|
|
10441
|
+
this.widgetRequestPaymentValidate(1);
|
|
10442
|
+
return Bootpay.requestPayment(WidgetStore.getRequestPaymentData(data2));
|
|
10523
10443
|
});
|
|
10524
10444
|
}
|
|
10525
10445
|
/**
|
|
10526
|
-
*
|
|
10446
|
+
* 부트페이 정기결제 요청
|
|
10527
10447
|
* Comment by GOSOMI
|
|
10528
|
-
* @date:
|
|
10448
|
+
* @date: 2024-08-19
|
|
10529
10449
|
*/
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
Object.keys(WidgetStore.extra).forEach((key) => {
|
|
10536
|
-
extra[key] = WidgetStore.extra[key];
|
|
10537
|
-
});
|
|
10538
|
-
}
|
|
10539
|
-
return extra;
|
|
10540
|
-
}
|
|
10450
|
+
requestSubscription(data2) {
|
|
10451
|
+
return __async(this, null, function* () {
|
|
10452
|
+
this.widgetRequestPaymentValidate(2);
|
|
10453
|
+
return Bootpay.requestSubscription(WidgetStore.getRequestPaymentData(data2));
|
|
10454
|
+
});
|
|
10541
10455
|
}
|
|
10542
10456
|
isRendered() {
|
|
10543
10457
|
return TemplateWidget.isRendered();
|
|
@@ -10567,16 +10481,47 @@ class BootpayWidgetWindowManager extends BootpayManager {
|
|
|
10567
10481
|
* @date: 2024-07-22
|
|
10568
10482
|
*/
|
|
10569
10483
|
currentPaymentParameters() {
|
|
10484
|
+
this.widgetRequestPaymentValidate();
|
|
10570
10485
|
return {
|
|
10571
|
-
pg: WidgetStore.pg,
|
|
10572
|
-
method: WidgetStore.method,
|
|
10573
|
-
wallet_id: WidgetStore.
|
|
10574
|
-
terms: WidgetStore.
|
|
10575
|
-
widget_key: WidgetStore.
|
|
10576
|
-
widget_sandbox: WidgetStore.sandbox,
|
|
10577
|
-
extra: WidgetStore.
|
|
10486
|
+
pg: WidgetStore.data.pg,
|
|
10487
|
+
method: WidgetStore.data.method,
|
|
10488
|
+
wallet_id: WidgetStore.data.wallet_id,
|
|
10489
|
+
terms: WidgetStore.data.terms,
|
|
10490
|
+
widget_key: WidgetStore.data.widget_key,
|
|
10491
|
+
widget_sandbox: WidgetStore.data.sandbox,
|
|
10492
|
+
extra: WidgetStore.getExtra({})
|
|
10578
10493
|
};
|
|
10579
10494
|
}
|
|
10495
|
+
widgetRequestPaymentValidate(type = void 0) {
|
|
10496
|
+
if (type !== void 0 && WidgetStore.widgetType !== type) {
|
|
10497
|
+
throw new BootpayEventError({
|
|
10498
|
+
event: "error",
|
|
10499
|
+
error_code: "RC_WIDGET_TYPE_INVALID",
|
|
10500
|
+
message: type === 1 ? this.message.getLocaleMessage("widgetTypeNotPayment", "ko") : this.message.getLocaleMessage("widgetTypeNotSubscription", "ko")
|
|
10501
|
+
});
|
|
10502
|
+
}
|
|
10503
|
+
if (this.$blank(WidgetStore.data.pg) || this.$blank(WidgetStore.data.method)) {
|
|
10504
|
+
throw new BootpayEventError({
|
|
10505
|
+
event: "error",
|
|
10506
|
+
error_code: "RC_PG_METHOD_NOT_SELECTED",
|
|
10507
|
+
message: this.message.getLocaleMessage("notSelectPayment", "ko")
|
|
10508
|
+
});
|
|
10509
|
+
}
|
|
10510
|
+
if (!WidgetStore.termsPassed && WidgetStore.data.use_terms) {
|
|
10511
|
+
throw new BootpayEventError({
|
|
10512
|
+
event: "error",
|
|
10513
|
+
error_code: "RC_TERMS_NOT_AGREE",
|
|
10514
|
+
message: this.message.getLocaleMessage("termsNotAgree", "ko")
|
|
10515
|
+
});
|
|
10516
|
+
}
|
|
10517
|
+
if (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(WidgetStore.data.method) > -1 && WidgetStore.data.wallet_id === void 0) {
|
|
10518
|
+
throw new BootpayEventError({
|
|
10519
|
+
event: "error",
|
|
10520
|
+
error_code: "RC_OOPAY_NEED_SELECT_WALLET",
|
|
10521
|
+
message: this.message.getLocaleMessage("notSelectOOPay", "ko")
|
|
10522
|
+
});
|
|
10523
|
+
}
|
|
10524
|
+
}
|
|
10580
10525
|
}
|
|
10581
10526
|
const BootpayWidgetWindow = new BootpayWidgetWindowManager();
|
|
10582
10527
|
const BootpayWidget = {
|
|
@@ -10602,6 +10547,18 @@ const BootpayWidget = {
|
|
|
10602
10547
|
}));
|
|
10603
10548
|
});
|
|
10604
10549
|
},
|
|
10550
|
+
requestSubscription(data2) {
|
|
10551
|
+
return __async(this, null, function* () {
|
|
10552
|
+
return new Promise((resolve, reject) => __async(this, null, function* () {
|
|
10553
|
+
try {
|
|
10554
|
+
const response = yield BootpayWidgetWindow.requestSubscription(data2);
|
|
10555
|
+
return resolve(response);
|
|
10556
|
+
} catch (e) {
|
|
10557
|
+
return reject(this.errorHandler(e));
|
|
10558
|
+
}
|
|
10559
|
+
}));
|
|
10560
|
+
});
|
|
10561
|
+
},
|
|
10605
10562
|
errorHandler(e) {
|
|
10606
10563
|
let response = void 0;
|
|
10607
10564
|
AlfredProgress.hideProgress();
|
|
@@ -10689,6 +10646,12 @@ const BootpayWidget = {
|
|
|
10689
10646
|
},
|
|
10690
10647
|
currentPaymentParameters() {
|
|
10691
10648
|
return BootpayWidgetWindow.currentPaymentParameters();
|
|
10649
|
+
},
|
|
10650
|
+
isWidgetTypeSubscription() {
|
|
10651
|
+
return WidgetStore.widgetType === 2;
|
|
10652
|
+
},
|
|
10653
|
+
isWidgetTypePayment() {
|
|
10654
|
+
return WidgetStore.widgetType === 1;
|
|
10692
10655
|
}
|
|
10693
10656
|
};
|
|
10694
10657
|
if (typeof window !== "undefined") {
|