@justifi/webcomponents 6.14.0 → 6.14.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/dist/cjs/{Analytics-DmEOV4ZP.js → Analytics-8X9v2COT.js} +2 -2
- package/dist/cjs/{Api-BO8Dq_Q9.js → Api-DdeSr34D.js} +3 -0
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +4 -3
- package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/{business.service-CPATYPjf.js → business.service-OqWV2MwK.js} +1 -1
- package/dist/cjs/card-form.cjs.entry.js +2 -2
- package/dist/cjs/{check-pkg-version-njtEIZ2o.js → check-pkg-version-CeW26qxO.js} +1 -1
- package/dist/cjs/{checkout.service-DUHQ2mz6.js → checkout.service-CKgEKcmm.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +5 -5
- package/dist/cjs/{event-types-fW6pQOxu.js → event-types-B8fM9Mqe.js} +1 -1
- package/dist/cjs/{get-subaccounts-BEqUiA8S.js → get-subaccounts-C1LbGVo_.js} +1 -1
- package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +6 -6
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +4 -4
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +5 -5
- package/dist/cjs/justifi-card-form.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -5
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +6 -6
- package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +5 -5
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +6 -6
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +5 -5
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +5 -5
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +6 -6
- package/dist/cjs/{package-Daxlktpq.js → package-CorQZH2M.js} +1 -1
- package/dist/cjs/{payment.service-D7Rfb-HB.js → payment.service-B7x7eK6m.js} +1 -1
- package/dist/cjs/{payout.service-Dt-LIFvA.js → payout.service-gzGWoXeh.js} +1 -1
- package/dist/cjs/{plaid.service-D9rC_F9z.js → plaid.service-BphWvNSP.js} +1 -1
- package/dist/cjs/{terminal.service-DnmqW9Dl.js → terminal.service-BPrlu7uq.js} +1 -1
- package/dist/collection/api/Api.js +3 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{Analytics-BvkNuLsG.js → Analytics-DY8rzGkY.js} +2 -2
- package/dist/esm/{Api-CwaiizF1.js → Api-C6pVpXue.js} +3 -0
- package/dist/esm/additional-questions-form-step_15.entry.js +4 -3
- package/dist/esm/bank-account-form.entry.js +2 -2
- package/dist/esm/{business.service-BJ3lvMNr.js → business.service-DVaWaxuN.js} +1 -1
- package/dist/esm/card-form.entry.js +2 -2
- package/dist/esm/{check-pkg-version-BKgBR8SA.js → check-pkg-version-BYwiz3xi.js} +1 -1
- package/dist/esm/{checkout.service-DMbW2pn3.js → checkout.service-DCg5TSgj.js} +1 -1
- package/dist/esm/dispute-notification_2.entry.js +5 -5
- package/dist/esm/{event-types-D37YHLaN.js → event-types-DV6dBcPL.js} +1 -1
- package/dist/esm/{get-subaccounts-RtGqjq7u.js → get-subaccounts-B1B7EBG1.js} +1 -1
- package/dist/esm/hidden-input_2.entry.js +1 -1
- package/dist/esm/justifi-apple-pay_11.entry.js +6 -6
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +4 -4
- package/dist/esm/justifi-bank-account-form.entry.js +4 -4
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +5 -5
- package/dist/esm/justifi-card-form.entry.js +4 -4
- package/dist/esm/justifi-checkout-qr-code.entry.js +4 -4
- package/dist/esm/justifi-checkout.entry.js +4 -4
- package/dist/esm/justifi-checkouts-list.entry.js +6 -6
- package/dist/esm/justifi-dispute-management.entry.js +5 -5
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
- package/dist/esm/justifi-order-terminals.entry.js +6 -6
- package/dist/esm/justifi-payment-details.entry.js +5 -5
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
- package/dist/esm/justifi-payment-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payments-list.entry.js +5 -5
- package/dist/esm/justifi-payout-details.entry.js +5 -5
- package/dist/esm/justifi-payout-transactions-list.entry.js +5 -5
- package/dist/esm/justifi-payouts-list.entry.js +6 -6
- package/dist/esm/justifi-qr-terminal.entry.js +5 -5
- package/dist/esm/justifi-refund-payment.entry.js +5 -5
- package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -4
- package/dist/esm/justifi-terminal-orders-list.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +6 -6
- package/dist/esm/{package-e1RQXZH0.js → package-DmrfgGzv.js} +1 -1
- package/dist/esm/{payment.service-CPnigqmB.js → payment.service-Dj3Jgj2F.js} +1 -1
- package/dist/esm/{payout.service-CYPLRYg5.js → payout.service-CdcAA0_l.js} +1 -1
- package/dist/esm/{plaid.service-CvfKh_3f.js → plaid.service-CwS4SIQb.js} +1 -1
- package/dist/esm/{terminal.service-r2jKgzEJ.js → terminal.service-DQz6FWpx.js} +1 -1
- package/dist/module/Api.js +3 -0
- package/dist/module/package.js +1 -1
- package/dist/webcomponents/{p-6de77339.entry.js → p-154bbb18.entry.js} +1 -1
- package/dist/webcomponents/{p-62776c8d.entry.js → p-1cd30181.entry.js} +1 -1
- package/dist/webcomponents/{p-7cc0051d.entry.js → p-21fcf763.entry.js} +1 -1
- package/dist/webcomponents/p-24a39581.entry.js +1 -0
- package/dist/webcomponents/{p-abf111d8.entry.js → p-2908f0e4.entry.js} +1 -1
- package/dist/webcomponents/{p-17389fce.entry.js → p-3e1d3af4.entry.js} +1 -1
- package/dist/webcomponents/{p-7a98cece.entry.js → p-4781669c.entry.js} +1 -1
- package/dist/webcomponents/{p-3be58396.entry.js → p-4fd708ff.entry.js} +1 -1
- package/dist/webcomponents/p-5257de4d.entry.js +1 -0
- package/dist/webcomponents/{p-19c00496.entry.js → p-52f605a9.entry.js} +1 -1
- package/dist/webcomponents/{p-30bf760c.entry.js → p-5da3adf2.entry.js} +1 -1
- package/dist/webcomponents/{p-5b768aa4.entry.js → p-6a98c472.entry.js} +4 -4
- package/dist/webcomponents/{p-21322c24.entry.js → p-6c1e40e7.entry.js} +1 -1
- package/dist/webcomponents/{p-6bf9e936.entry.js → p-6d218257.entry.js} +1 -1
- package/dist/webcomponents/{p-817fa1de.entry.js → p-7883f20e.entry.js} +1 -1
- package/dist/webcomponents/{p-2f6da927.entry.js → p-8b85daf8.entry.js} +1 -1
- package/dist/webcomponents/{p-ecff1cb5.entry.js → p-981dcbc9.entry.js} +1 -1
- package/dist/webcomponents/p-B9a-6Pn9.js +1 -0
- package/dist/webcomponents/{p-Bx1A5sQR.js → p-BJIJZgZH.js} +1 -1
- package/dist/webcomponents/{p-D0g0Cxab.js → p-CGTKc-Ra.js} +1 -1
- package/dist/webcomponents/{p-DNIKPf_U.js → p-C_YFlFQQ.js} +1 -1
- package/dist/webcomponents/{p-Cc6TzfDZ.js → p-CiIGpNnJ.js} +1 -1
- package/dist/webcomponents/p-ClGSzzda.js +1 -0
- package/dist/webcomponents/{p-CkrzNsk5.js → p-CoY0w4be.js} +1 -1
- package/dist/webcomponents/{p-aBD3IP5P.js → p-DB4q0kxv.js} +1 -1
- package/dist/webcomponents/p-DmrfgGzv.js +1 -0
- package/dist/webcomponents/{p-CDKbfqXv.js → p-IADrgGjR.js} +1 -1
- package/dist/webcomponents/p-RmBpI2DR.js +1 -0
- package/dist/webcomponents/{p-938e84c3.entry.js → p-ab0449a9.entry.js} +1 -1
- package/dist/webcomponents/p-ad72e7c0.entry.js +1 -0
- package/dist/webcomponents/{p-8df414f7.entry.js → p-ae223a12.entry.js} +1 -1
- package/dist/webcomponents/{p-ef114d91.entry.js → p-bebfcbdf.entry.js} +1 -1
- package/dist/webcomponents/{p-3475c0b7.entry.js → p-c7b96d6f.entry.js} +1 -1
- package/dist/webcomponents/{p-3a5ae10f.entry.js → p-cc8ad073.entry.js} +1 -1
- package/dist/webcomponents/{p-665fe466.entry.js → p-df21d9b7.entry.js} +1 -1
- package/dist/webcomponents/{p-218b729b.entry.js → p-e659f030.entry.js} +1 -1
- package/dist/webcomponents/{p-83814e5f.entry.js → p-eaf179a0.entry.js} +1 -1
- package/dist/webcomponents/p-ee3e88bc.entry.js +1 -0
- package/dist/webcomponents/{p-b948d3a6.entry.js → p-ef3f9a80.entry.js} +1 -1
- package/dist/webcomponents/{p-375b08af.entry.js → p-f7258258.entry.js} +1 -1
- package/dist/webcomponents/{p-DMGq2Rrg.js → p-n4OrTH9l.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/webcomponents/p-01b2a5f7.entry.js +0 -1
- package/dist/webcomponents/p-18cc2bf5.entry.js +0 -1
- package/dist/webcomponents/p-9acbe294.entry.js +0 -1
- package/dist/webcomponents/p-B2CETB_i.js +0 -1
- package/dist/webcomponents/p-CPEn7kso.js +0 -1
- package/dist/webcomponents/p-DM45Ihwj.js +0 -1
- package/dist/webcomponents/p-e1RQXZH0.js +0 -1
- package/dist/webcomponents/p-e30b2e92.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i,r as e}from"./p-CV0Pyo1O.js";import{S as a}from"./p-uZ5KAseb.js";import{w as t,c as d}from"./p-DVJaoI_m.js";import{e as c}from"./p-Ds_P-dB8.js";import{c as s}from"./p-
|
|
1
|
+
import{h as i,r as e}from"./p-CV0Pyo1O.js";import{S as a}from"./p-uZ5KAseb.js";import{w as t,c as d}from"./p-DVJaoI_m.js";import{e as c}from"./p-Ds_P-dB8.js";import{c as s}from"./p-CoY0w4be.js";import"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-DmrfgGzv.js";const n=e=>{const{isReady:t}=e;return t?null:i("div",{class:"container-fluid p-0"},i("div",{class:"mb-3"},i(a,{height:"18px",width:"100px"}),i(a,{height:"36px"})),i("div",{class:"row"},i("div",{class:"col-4 align-content-end"},i(a,{height:"18px",width:"80px"}),i(a,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(a,{height:"36px"})),i("div",{class:"col-4 align-content-end"},i(a,{height:"18px",width:"30px"}),i(a,{height:"36px"}))))},r=class{constructor(i){e(this,i),this.isReady=!1}async componentWillLoad(){await t(),this.iframeOrigin=d.iframeOrigin,this.tabId=c(),s()}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((i=>new Promise((e=>{i.addEventListener("iframeLoaded",(()=>{e()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.cardNumberIframeElement.validate(),e=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),t=await this.cvvIframeElement.validate();return i&&e&&a&&t}async tokenize({clientId:i,paymentMethodMetadata:e,account:a}){return await this.cardNumberIframeElement.tokenize(i,e,a)}render(){return i("div",{key:"d3cb1fca6595f60e5f5f122b73d3d6c11a826423"},i(n,{key:"f83dcbbc214d460bb21c015ec051436ed5cf6670",isReady:this.isReady}),i("hidden-input",{key:"5fad0d06303d0ddb55c30c2cd94014255f2a8cec"}),i("div",{key:"68440756a1aad69b5c95245e7a2a5feb16899dca",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"b39eab56c79463935f1a1bb15cc867997f026e7b",class:"mb-3"},i("iframe-input",{key:"25a2390a8c3c92d5e6eceafe6b821202ecb22d76",inputId:"cardNumber",ref:i=>this.cardNumberIframeElement=i,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}`})),i("div",{key:"68766798d954a0b3d093ae13c3c2955f819da4f2",class:"row"},i("div",{key:"05539f1ac8ebb0397574d55b4b76d7acdb7d2dca",class:"col-4 align-content-end"},i("iframe-input",{key:"4c437a4384e6c301e18824d799784c1133e70ee3",inputId:"expirationMonth",ref:i=>this.expirationMonthIframeElement=i,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}`})),i("div",{key:"b9a5b8b5dda1d8ab6305c9dc1ef9b655eb02fb3d",class:"col-4 align-content-end"},i("iframe-input",{key:"c1a412c20e75d21c1084a4b93f22362c367c1907",inputId:"expirationYear",ref:i=>this.expirationYearIframeElement=i,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}`})),i("div",{key:"abdfdbd7eb784871011397a7c5fdf371e3c6baf0",class:"col-4 align-content-end"},i("iframe-input",{key:"08dff072e785846d7543018c194b4df6ce5b343e",inputId:"CVV",ref:i=>this.cvvIframeElement=i,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}`})))))}};export{r as card_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as s}from"./p-CV0Pyo1O.js";import{m as i}from"./p-DMB1dln7.js";import{C as h}from"./p-
|
|
1
|
+
import{r as t,c as e,h as s}from"./p-CV0Pyo1O.js";import{m as i}from"./p-DMB1dln7.js";import{C as h}from"./p-C_YFlFQQ.js";import{C as r,b as o,I as a,c as l,d as n}from"./p-AyLerOda.js";import{J as c}from"./p-CGTKc-Ra.js";import{c as d}from"./p-CoY0w4be.js";import"./p-CXZRiaUw.js";import"./p-ClGSzzda.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-DmrfgGzv.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const u=class{constructor(s){t(this,s),this.checkoutCompleted=e(this,"checkout-completed",7),this.checkoutExpired=e(this,"checkout-expired",7),this.errorEvent=e(this,"error-event",7),this.pollIntervalMs=3e3,this.pollTimeoutMs=6e5,this.terminalState="loading",this.paymentStatus="",this.errorMessage="",this.pollIntervalHandle=null,this.pollTimeoutHandle=null,this.failedDismissHandle=null,this.seenCompletionCreatedAts=new Set,this.inFlight=!1}componentWillLoad(){d(),this.analytics=new c(this),this.initialize()}disconnectedCallback(){var t;this.stopAll(),null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.stopAll(),this.initialize()}suppressInnerErrors(t){t.stopPropagation()}get effectivePollInterval(){return Math.max(1e3,this.pollIntervalMs)}initialize(){this.authToken&&this.checkoutId?(this.terminalState="loading",this.getCheckout=i({authToken:this.authToken,checkoutId:this.checkoutId,service:new h}),this.getCheckout({onSuccess:({checkout:t})=>this.handleInitialLoad(t),onError:({error:t,code:e,severity:s})=>{this.terminalState="error",this.errorMessage=t,this.errorEvent.emit({message:t,errorCode:e,severity:s})}})):this.errorEvent.emit({message:"authToken and checkoutId are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}handleInitialLoad(t){var e;switch(t.status){case a.expired:this.terminalState="expired",this.checkoutExpired.emit({checkoutId:this.checkoutId}),this.errorEvent.emit({message:l.CHECKOUT_EXPIRED,errorCode:o.CHECKOUT_EXPIRED,severity:r.ERROR});break;case a.completed:this.terminalState="completed",this.paymentStatus=this.resolvePaymentStatus(t),this.checkoutCompleted.emit({checkoutId:this.checkoutId,paymentStatus:this.paymentStatus});break;default:(null!==(e=t.completions)&&void 0!==e?e:[]).forEach((t=>this.seenCompletionCreatedAts.add(t.created_at))),this.terminalState="ready",this.startPolling()}}startPolling(){this.pollTimeoutHandle=setTimeout((()=>{this.stopAll(),this.terminalState="error",this.errorMessage="Checkout polling timed out",this.errorEvent.emit({message:"Checkout polling timed out",errorCode:o.FETCH_ERROR,severity:r.ERROR})}),this.pollTimeoutMs),this.pollIntervalHandle=setInterval((()=>this.tick()),this.effectivePollInterval)}tick(){this.inFlight||(this.inFlight=!0,this.getCheckout({onSuccess:({checkout:t})=>{this.inFlight=!1,this.handlePollResult(t)},onError:({error:t,code:e,severity:s})=>{this.inFlight=!1,this.stopAll(),this.terminalState="error",this.errorMessage=t,this.errorEvent.emit({message:t,errorCode:e,severity:s})}}))}handlePollResult(t){var e;const s=(null!==(e=t.completions)&&void 0!==e?e:[]).filter((t=>!this.seenCompletionCreatedAts.has(t.created_at)&&"failed"===t.payment_status));if(s.forEach((t=>this.seenCompletionCreatedAts.add(t.created_at))),s.length>0&&(this.terminalState="payment-failed",this.failedDismissHandle&&clearTimeout(this.failedDismissHandle),this.failedDismissHandle=setTimeout((()=>{"payment-failed"===this.terminalState&&(this.terminalState="ready")}),3e3)),t.status===a.completed)return this.stopAll(),this.terminalState="completed",this.paymentStatus=this.resolvePaymentStatus(t),void this.checkoutCompleted.emit({checkoutId:this.checkoutId,paymentStatus:this.paymentStatus});t.status===a.expired&&(this.stopAll(),this.terminalState="expired",this.checkoutExpired.emit({checkoutId:this.checkoutId}),this.errorEvent.emit({message:l.CHECKOUT_EXPIRED,errorCode:o.CHECKOUT_EXPIRED,severity:r.ERROR}))}resolvePaymentStatus(t){var e,s;const i=null===(s=[...null!==(e=t.completions)&&void 0!==e?e:[]].sort(((t,e)=>new Date(e.updated_at).getTime()-new Date(t.updated_at).getTime()))[0])||void 0===s?void 0:s.payment_status;return i===n.succeeded||null==i&&t.successful_payment_id?"succeeded":"pending"}stopAll(){this.pollIntervalHandle&&(clearInterval(this.pollIntervalHandle),this.pollIntervalHandle=null),this.pollTimeoutHandle&&(clearTimeout(this.pollTimeoutHandle),this.pollTimeoutHandle=null),this.failedDismissHandle&&(clearTimeout(this.failedDismissHandle),this.failedDismissHandle=null),this.inFlight=!1}render(){return this.authToken&&this.checkoutId?s("div",null,"loading"===this.terminalState&&null,("ready"===this.terminalState||"payment-failed"===this.terminalState)&&s("div",null,s("justifi-checkout-qr-code",{checkoutId:this.checkoutId}),"payment-failed"===this.terminalState&&s("p",null,"Payment failed. Please try again."),"ready"===this.terminalState&&s("p",null,"Scan to pay")),"completed"===this.terminalState&&s("div",null,s("p",null,"succeeded"===this.paymentStatus?"Payment received":"Payment pending")),"expired"===this.terminalState&&s("p",null,"Checkout expired. Please create a new checkout."),"error"===this.terminalState&&s("p",null,this.errorMessage)):null}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{u as justifi_qr_terminal}
|