diff --git a/dist/index.es.js b/dist/index.es.js index efa2bfa..fd01f34 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -1,4 +1,4 @@ -import React, { useState, useEffect, createContext, forwardRef, useContext } from 'react'; +import React, { createContext, forwardRef, useContext } from 'react'; /****************************************************************************** Copyright (c) Microsoft Corporation. @@ -45,104 +45,21 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }; -var cachedScripts = []; -function usePaystackScript() { - var src = 'https://js.paystack.co/v1/inline.js'; - var _a = useState({ - loaded: false, - error: false, - }), state = _a[0], setState = _a[1]; - useEffect(function () { - if (cachedScripts.includes(src)) { - setState({ - loaded: true, - error: false, - }); - } - else { - cachedScripts.push(src); - var script_1 = document.createElement('script'); - script_1.src = src; - script_1.async = true; - var onScriptLoad_1 = function () { - setState({ - loaded: true, - error: false, - }); - }; - var onScriptError_1 = function () { - var index = cachedScripts.indexOf(src); - if (index >= 0) - cachedScripts.splice(index, 1); - script_1.remove(); - setState({ - loaded: true, - error: true, - }); - }; - script_1.addEventListener('load', onScriptLoad_1); - script_1.addEventListener('complete', onScriptLoad_1); - script_1.addEventListener('error', onScriptError_1); - document.body.appendChild(script_1); - return function () { - script_1.removeEventListener('load', onScriptLoad_1); - script_1.removeEventListener('error', onScriptError_1); - }; - } - }, [src]); - return [state.loaded, state.error]; -} +function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a);}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t]);}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e;}finally{try{i||null==t.return||t.return();}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}));}return e}var b='\n \n \n \n';var k={height:"50px",width:"auto",borderRadius:"3px",padding:"10px",locale:"en",type:"pay"},w=function(e){return e&&"object"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/x-www-form-urlencoded","sec-ch-ua-mobile":"?0","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site"},referrerPolicy:"no-referrer-when-downgrade",method:"POST",mode:"cors",credentials:"omit"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r="".concat(a,"=").concat(o);return [].concat(l(n),[r])}),[]).join("&")}var L=function(e){return {biannually:"BIANNUAL PLAN",annually:"ANNUAL PLAN"}[e]||"".concat(e.toUpperCase()," PLAN")},V=function(){try{return window.location&&"https:"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return !1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes("apple_pay")};function _(e){var n=document.createElement("iframe");return n.setAttribute("frameBorder","0"),n.setAttribute("allowtransparency","true"),n.id=e,n.style.display="none",n}function E(e){return e.querySelector("apple-pay-button")||e.querySelector("#apple-pay-button")}function q(e){return document.querySelector("#".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a("No script url");var o=document.createElement("script");o.src=e,o.addEventListener("load",(function(){t(!0);})),o.addEventListener("error",(function(){o.remove(),a(!1);})),n?n.appendChild(o):document.head.appendChild(o);}))})("https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error("Incorrect data type for 'webpackJsonp', expected array, got ".concat(t(window.webpackJsonp),". Switching to fallback apple pay button"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return "\n apple-pay-button {\n --apple-pay-button-width: ".concat(t,";\n --apple-pay-button-height: ").concat(n,";\n --apple-pay-button-border-radius: ").concat(a,";\n --apple-pay-button-padding: ").concat(o,";\n --apple-pay-button-box-sizing: border-box;\n width: ").concat(t,";\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("apple-pay-button");i.setAttribute("buttonstyle","light"===a?"white":"black"),i.setAttribute("type",t.type),i.setAttribute("locale",t.locale),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return "\n @supports (-webkit-appearance: -apple-pay-button) { \n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n width: ".concat(t,";\n height: ").concat(n,";\n border-radius: ").concat(a,";\n padding: ").concat(o,";\n -apple-pay-button-type: ").concat(r,";\n -webkit-locale: ").concat(i,";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("button");i.classList.add("apple-pay-button","light"===a?"apple-pay-button-white":"apple-pay-button-black"),i.id="apple-pay-button";var c=document.createElement("span");c.classList.add("logo"),i.appendChild(c),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);}));}else o("No wallet payment method is available on this device");else o("Container to mount elements was not provided");}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild);}function I(e){return e.querySelector("#paystackpop-button")}function z(e){return e.querySelector("#payment-request-button")}function O(e,n){var t=document.querySelector("#pre-checkout-modal-".concat(e));if(t){if(I(t)&&z(t))return t;t.remove();}var a,o=document.createElement("div");o.classList.add("pre-checkout-modal"),o.id="pre-checkout-modal-".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll("body *")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t);})),a+1);var r=document.createElement("div");r.classList.add("pre-checkout-modal__content"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement("div"),C=new Intl.NumberFormat("en",{style:"currency",currency:u,currencyDisplay:"code",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add("payment-info"),h.innerHTML='\n
\n
').concat(d||l,'
\n
Pay ').concat(C,"
\n
"),r.appendChild(h),r.innerHTML+='\n \n';var m=document.createElement("div");m.classList.add("modal-wrapper"),m.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n';var y=document.createElement("p");y.id="apple-pay-description",y.innerHTML="Pay with Apple Pay to complete your purchase without filling a form",m.appendChild(y);var f=document.createElement("div");f.id="payment-request-button",m.appendChild(f);var v=document.createElement("button");v.id="paystackpop-button",v.innerText="More payment options",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\n\n\n\n',r.appendChild(m);var g=document.createElement("style");return g.textContent='\n .pre-checkout-modal {\n display: none;\n position: fixed;\n z-index: 1;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.75);\n transition: all 0.2s ease;\n }\n\n .pre-checkout-modal.show {\n display: block;\n }\n\n .pre-checkout-modal__content {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n background-color: #fefefe;\n padding: 30px 24px;\n padding-bottom: max(30px, env(safe-area-inset-bottom));\n width: 100%;\n border-radius: 6px 6px 0 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 450px;\n\n box-sizing: border-box;\n transform: translateY(238px);\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\n }\n\n .modal-wrapper {\n padding: 0 16px;\n }\n\n .payment-info {\n position: relative;\n padding-bottom: 15px;\n border-bottom: solid 1px whitesmoke;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n .customer-email {\n color: #737373;\n font-size: 13px;\n line-height: 16px;\n }\n\n .customer-info {\n flex: 1;\n text-align: right;\n }\n\n .merchant-logo {\n display: flex;\n align-items: center;\n height: 30px;\n }\n .transaction-amount {\n margin-top: 5px;\n font-size: 13px;\n line-height: 16px;\n color: #737373;\n }\n\n .amount {\n color: #29b263;\n font-weight: bold;\n }\n\n @media only screen and (min-width: 500px) {\n .pre-checkout-modal__content {\n bottom: 0;\n top: 0;\n margin: auto;\n border-radius: 6px;\n height: fit-content;\n }\n }\n\n .pre-checkout-modal__content.show {\n transform: translateY(0);\n margin: 0 auto;\n margin-top: 100px;\n }\n\n .pre-checkout-modal__content > * {\n margin-top: 0;\n margin-bottom: 40px;\n }\n .pre-checkout-modal__content > *:last-child {\n margin-bottom: 0;\n }\n\n .pre-checkout-modal__content svg {\n margin: auto;\n width: 100%;\n }\n\n #inline-button-wordmark--white {\n position: absolute;\n bottom: -50px;\n margin: auto;\n right: 0;\n width: fit-content;\n }\n\n #inline-button-wordmark--grey {\n display: none;\n }\n\n .pre-checkout-modal__content #apple-pay-mark--light {\n margin-bottom: 16px;\n }\n\n .pre-checkout-modal p {\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n color: #4E4E4E;\n line-height: 28px;\n font-size: 14px;\n font-weight: 500;\n margin: 0;\n padding: 0 20px;\n text-align: center;\n letter-spacing: -0.3px;\n }\n\n .pre-checkout-modal button {\n height: 42px;\n width: 100%;\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\n border: 1px solid #49a861;\n box-sizing: border-box;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\n color: #ffffff;\n font-weight: 600;\n font-size: 14px;\n line-height: 14px;\n cursor: pointer;\n\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n #payment-request-button {\n width: 100%;\n height: fit-content;\n margin: 24px 0 16px 0;\n }\n\n #paystackpop-button {\n padding: 0 16px;\n }\n\n #apple-pay-close-button {\n position: absolute;\n text-align: center;\n top: 0;\n right: -26px;\n height: 16px;\n width: 16px;\n padding: 0;\n display: inline-block;\n z-index: 3;\n border-radius: 50%;\n background: transparent;\n transition: all 300ms;\n outline: none;\n cursor: pointer;\n border: none;\n }\n\n #apple-pay-close-button svg {\n width: initial;\n }\n \n #apple-pay-close-button:hover {\n background-color: #e22b28;\n }\n\n @media only screen and (max-width: 500px) {\n .pre-checkout-modal__content {\n max-width: 500px;\n border-radius: 0;\n padding-bottom: 0;\n }\n\n .modal-wrapper {\n padding: 0;\n }\n\n #inline-button-wordmark--white {\n display: none\n }\n \n #inline-button-wordmark--grey {\n display: block;\n width: 100%;\n margin: 16px 0;\n height: 13px;\n }\n\n #apple-pay-close-button {\n display: none;\n }\n }\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:"key",required:!0,types:["string"]},{value:"amount",required:!0,or:["plan","planCode"],types:["string","number"]},{value:"currency",required:!1,types:["string"]},{value:"email",required:!0,or:["customerCode"],types:["string"]},{value:"label",required:!1,types:["string"]},{value:"firstName",required:!1,types:["string"]},{value:"lastName",required:!1,types:["string"]},{value:"reference",required:!1,types:["string"]},{value:"phone",required:!1,types:["string"]},{value:"customerCode",required:!1,override:"email",types:["string"]},{value:"channels",required:!1,types:["array"]},{value:"paymentRequest",required:!1,types:["string","number"]},{value:"paymentPage",required:!1,types:["string"]},{value:"hash",required:!1,types:["string"]},{value:"container",required:!1,types:["string"]},{value:"metadata",required:!1,types:["object"]},{value:"subaccountCode",required:!1,types:["string"]},{value:"bearer",required:!1,types:["string"]},{value:"transactionCharge",required:!1,types:["string","number"]},{value:"planCode",required:!1,override:"amount",types:["string"]},{value:"subscriptionCount",required:!1,types:["number"]},{value:"planInterval",required:!1,types:["string"]},{value:"subscriptionLimit",required:!1,types:["number"]},{value:"subscriptionStartDate",required:!1,types:["string"]},{value:"accessCode",required:!1,types:["string"]},{value:"onError",required:!1,types:["function"]},{value:"onLoad",required:!1,types:["function"]},{value:"onSuccess",required:!1,types:["function"]},{value:"onCancel",required:!1,types:["function"]},{value:"callback",required:!1,types:["function"]},{value:"onClose",required:!1,types:["function"]},{value:"onBankTransferConfirmationPending",required:!1,types:["function"]},{value:"firstname",required:!1,types:["string"]},{value:"lastname",required:!1,types:["string"]},{value:"customer_code",required:!1,types:["string"]},{value:"payment_request",required:!1,types:["string","number"]},{value:"subaccount",required:!1,types:["string"]},{value:"transaction_charge",required:!1,types:["number","string"]},{value:"plan",required:!1,types:["string"]},{value:"quantity",required:!1,types:["number"]},{value:"interval",required:!1,types:["string"]},{value:"invoice_limit",required:!1,types:["number","string"]},{value:"start_date",required:!1,types:["string"]},{value:"payment_page",required:!1,types:["number","string"]},{value:"order_id",required:!1,types:["number"]},{value:"ref",required:!1,types:["string"]},{value:"card",required:!1,types:["string"]},{value:"bank",required:!1,types:["string"]},{value:"split",required:!1,types:["object"]},{value:"split_code",required:!1,types:["string"]},{value:"transaction_type",required:!1,types:["string"]},{value:"subscription",required:!1,types:["number"]},{value:"language",required:!1,types:["string"]},{value:"connect_account",required:!1,types:["string"]},{value:"connect_split",required:!1,types:["object"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split("?")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode="popup",e.split&&"string"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&["false",!1].indexOf(a.card)>-1&&(a.channels=["bank"],delete a.card),void 0!==a.bank&&["false",!1].indexOf(a.bank)>-1&&(a.channels=["card"],delete a.bank),[{to:"firstname",from:"firstName"},{to:"lastname",from:"lastName"},{to:"customer_code",from:"customerCode"},{to:"payment_request",from:"paymentRequest"},{to:"subaccount",from:"subaccountCode"},{to:"transaction_charge",from:"transactionCharge"},{to:"plan",from:"planCode"},{to:"quantity",from:"subscriptionCount"},{to:"interval",from:"planInterval"},{to:"invoice_limit",from:"subscriptionLimit"},{to:"start_date",from:"subscriptionStartDate"},{to:"ref",from:"reference"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from]);})),Object.values(e).forEach((function(n,t){if("function"==typeof n){var o=Object.keys(e)[t];delete a[o];}})),a}var U=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes("Mac")&&"ontouchend"in document},B=function(e,n,t){var a="".concat(m.paystackApiUrl,"transaction/update_log/").concat(e),o={Authorization:"Bearer ".concat(n)};return fetch(a,{method:"POST",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t="".concat(m.paystackApiUrl,"transaction/set_ip/").concat(e),a={Authorization:"Bearer ".concat(n)};return fetch(t,{method:"POST",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]};},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case"success":return this.logApiSuccess(n);case"failed":return this.logApiError(e.message);default:return !1}},logValidationResponse:function(e){return this.log.history.push({type:"action",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n="Attempted to pay";return e&&(n+=" with ".concat(e)),this.log.attempts+=1,this.log.history.push({type:"action",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n="Error";return e&&(n+=": ".concat(e)),this.log.errors+=1,this.log.history.push({type:"error",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n="Successfully paid";return e&&(n+=" with ".concat(e)),this.log.success=!0,this.log.history.push({type:"success",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=["language","connect_account"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({"Content-Type":"application/json"},a&&{"Accept-Language":a});return (this.accessCode?fetch(new URL("transaction/verify_access_code/".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL("/checkout/request_inline",m.paystackApiUrl).toString(),{method:"POST",body:JSON.stringify(r),headers:n(n({},i),o&&{"x-connect-account":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[];}if(!e||"object"!==t(e))throw new n("Transaction parameters should be a non-empty object");var a=e;if("accessCode"in a)return {accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e];}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:"Required parameter missing: ".concat(e.value)});})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);"object"===i&&Array.isArray(n)&&(i="array"),o.types.indexOf(i)<=-1&&r.push({message:"Invalid parameter type: ".concat(e),validTypes:o.types});})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override];})),r.length)throw new n("Invalid transaction parameters",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W);}return r(e,[{key:"onSetupError",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e);}},{key:"onLoad",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl="".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a});}},{key:"onSuccess",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e);}},{key:"setStatus",value:function(e){this.status=e;}},{key:"onCancel",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose();}},{key:"cancel",value:function(){this.isActive=!1,this.onCancel();}},{key:"onBankTransferConfirmationPending",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending();}},{key:"logError",value:function(e){this.errors.push(e);}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('"'.concat(e,'" has been deprecated, please use "').concat(n,'". ').concat(t||""));}var G,Y=["preload","inlineTransaction"],X=["container","styles","onElementsMount"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||"abandoned"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join("")===Object.keys(a).sort().join(""),r=Object.values(t).sort().join("")===Object.values(a).sort().join(""),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:"inline:url",path:"newTransaction",params:t},"*");}var ne="trackCheckoutClosed",te="trackPaymentError",ae="trackPaymentAttempt",oe="trackPaymentCompletion";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re("A container is required to mount the payment request button"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_("inline-background-".concat(e));n.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n background: rgba(0, 0, 0, 0.75); \n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.3s;\n -webkit-transition: opacity 0.3s;\n visibility: hidden;\n display: none;\n",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\n \n \n\n \n \n \n \n Paystack Popup Loader\n \n \n\n \n
\n
\n
\n
\n
\n
\n \n\n \n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_("inline-checkout-".concat(t))).src="".concat(m.checkoutUrl,"popup"),o.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n visibility: hidden;\n display: none;\n height: 100%;\n",o.setAttribute("allowpaymentrequest","true"),o.setAttribute("allow","payment; clipboard-read; clipboard-write"),document.body.appendChild(o),o),this.registerListeners();}return r(e,[{key:"registerListeners",value:function(){var e=this;window.addEventListener("message",(function(n){var t="".concat(n.origin,"/")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n);}));}},{key:"sendAnalyticsEventToCheckout",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:"analytics",action:e,params:n},"*");}},{key:"checkout",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\/[\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes("apple_pay")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:"100%",type:"pay",height:"42px",padding:"15px",borderRadius:"5px"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(".pre-checkout-modal__content");t.classList.add("show"),setTimeout((function(){a.classList.add("show"),e(!0);}),50);}catch(e){n(e);}})),e(n);})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n);}))):(G.newTransaction({inlineTransaction:n}),e(n));})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e);}));}))}},{key:"registerPreCheckoutModalEventListeners",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener("touchstart",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1;}),125));}),!0),document.addEventListener("touchend",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1;}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn();},this.preCheckoutModal.querySelector("#apple-pay-close-button").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction();};}},{key:"closePreCheckoutModal",value:function(e){var n;this.preCheckoutModal&&("failed"===e?(n=this.preCheckoutModal)&&(n.querySelector("#apple-pay-mark--light").innerHTML='\n \n \n \n \n \n \n \n',n.querySelector("#apple-pay-description").textContent="An error occurred while paying with Apple Pay. Please try again or use another payment method."):(!function(e){e&&(e.querySelector(".pre-checkout-modal__content").classList.remove("show"),e.classList.remove("show"));}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null));}},{key:"closePreCheckoutModalAndCancelTransaction",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage("close","*"),this.closePreCheckoutModal());}},{key:"newTransaction",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:"preloadTransaction",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:"paymentRequest",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector("#".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re("A container is required to mount the payment request button"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e);})).catch((function(){a&&a(null);})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e;}r(l);}));})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e);}));}else {if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p;}else K("This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'");a&&a(null);var u=G.activeTransaction();r(u);}}))}},{key:"registerApplePayEventListener",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()};}},{key:"registerPaymentRequestEventListeners",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer);}},{key:"startApplePay",value:function(){var e,t,a,o,r,i=this,c="apple pay",s=this.activeTransaction();if(s){var l={channel:"apple_pay",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:"apple_pay",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:"NG",currencyCode:t,merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:["visa","masterCard"],requiredBillingContactFields:["postalAddress","name","phone","email"],total:{label:"".concat(o," - Paystack"),type:"final",amount:String(x(a))}},"string"==typeof r&&""!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c="".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){"success"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message);})).catch((function(e){s.onSetupError(e);}));},d.oncancel=function(){G.preCheckoutModal||s.onCancel();},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o="".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),"success"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Transaction attempt failed"})),G.closePreCheckoutModal(e.status);})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Error occurred"}),G.closePreCheckoutModal("failed");}));},d.begin();}catch(e){s.onSetupError(e);}}else re("Could not initiate apple pay transaction");}},{key:"resumeTransaction",value:function(e){return this.newTransaction({accessCode:e})}},{key:"activeTransaction",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:"cancelTransaction",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close());}},{key:"respondToEvent",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case"loaded:checkout":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case"loaded:transaction":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById("app-loader").style.display="none"),a.onLoad(i);break;case"error":"setup"===i.type?a.onSetupError(i):a.logError(i);break;case"cancel":case"close":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case"transfer:pending":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case"success":this.close(),a.onSuccess(i);}}catch(e){}}}},{key:"respondToEmbedEvents",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&("string"==typeof o||o instanceof String)){var r={action:t=(n=o)&&"string"==typeof n?n.split(" ")[0]:null,data:t?n.split(" ").slice(2).join(" "):null};if(r&&"PaystackClose"===r.action)r.data&&a.onSuccess(o);"PaystackTLSClose"===r.action&&a.cancel();}}},{key:"animateCheckoutIn",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t("No dom element provided");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t("No dom element provided"),a.style.display="",a.style.visibility="visible",o.style.display="",o.style.visibility="visible",n();}))).then((function(){n.checkoutIframe.contentWindow.postMessage("render","*");})),this.isOpen=!0;}}},{key:"open",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn());}},{key:"close",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t("No dom element provided");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t("No dom element provided"),o.style.opacity=0,a.style.display="none",a.style.visibility="hidden",setTimeout((function(){o.style.display="none",o.style.visibility="hidden",o.style.opacity=1,e();}),300);}))).then((function(){e.checkoutIframe.contentWindow.postMessage("close","*");})),this.isOpen=!1;}}},{key:"isLoaded",value:function(){return this.isLoaded}}],[{key:"setup",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q("PaystackPop.setup()","new PaystackPop()","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline");var a=G.newTransaction(n,"deprecated"),o=a.urlParameters;if(t){var r="".concat(m.siteUrl,"/assets/payment/production/inline.html?").concat(y(o)),i=function(e,n){var t=_("embed-checkout-".concat(e));return t.style.cssText="\n background: transparent;\n background: rgba(0,0,0,0);\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n nmargin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n visibility: hidden;\n display: none;\n",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML="",t.removeAttribute("style"),t.className="paystack-embed-container",t.style.position="relative",t.style.width="100%",t.appendChild(n);}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage("PaystackOpen ".concat(G.id),"*"),e=i,new Promise((function(n,t){e||t("No dom element provided"),e.style.display="",e.style.visibility="visible",n();}));};}else a.openIframe=function(){Q("openIframe","open","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline"),G.open(o);};return a}}]),e}();if(ie=g().length>0,ce=f()&&"FORM"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split("data-")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a;})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error("Please make sure the buttonId is an element available in the DOM");var t=n({},e);t.buttonText=e.buttonText||"Pay",t.buttonVariant="normal",t.buttonWordmarkVariant="normal";var a=["normal","light"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute("data-inline-id",e.id);else {var t=document.createElement("div");t.id="inline-button-".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\n \n \n ',light:b};return "\n \n \n
\n ').concat(a[e.wordmarkVariant||"normal"],"\n
\n ")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName("button"),1)[0];}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener("click",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:"hidden",name:"reference",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement("input")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit();}}));}));} -/* eslint-disable */ var callPaystackPop = function (paystackArgs) { - // @ts-ignore - var handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs); - handler && handler.openIframe(); + var paystack = new se(); + paystack.newTransaction(paystackArgs); }; function usePaystackPayment(hookConfig) { - var _a = usePaystackScript(), scriptLoaded = _a[0], scriptError = _a[1]; function initializePayment(_a) { var config = _a.config, onSuccess = _a.onSuccess, onClose = _a.onClose; - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } var args = __assign(__assign({}, hookConfig), config); - var publicKey = args.publicKey, firstname = args.firstname, lastname = args.lastname, phone = args.phone, email = args.email, amount = args.amount, reference = args.reference, _b = args.metadata, metadata = _b === void 0 ? {} : _b, _c = args.currency, currency = _c === void 0 ? 'NGN' : _c, channels = args.channels, _d = args.label, label = _d === void 0 ? '' : _d, _e = args.plan, plan = _e === void 0 ? '' : _e, _f = args.quantity, quantity = _f === void 0 ? '' : _f, _g = args.subaccount, subaccount = _g === void 0 ? '' : _g, _h = args.transaction_charge, transaction_charge = _h === void 0 ? 0 : _h, _j = args.bearer, bearer = _j === void 0 ? 'account' : _j, split = args.split, split_code = args.split_code, connect_account = args.connect_account, connect_split = args.connect_split; - if (scriptLoaded) { - var paystackArgs = { - callback: onSuccess ? onSuccess : function () { return null; }, - onClose: onClose ? onClose : function () { return null; }, - key: publicKey, - ref: reference, - email: email, - firstname: firstname, - lastname: lastname, - phone: phone, - amount: amount, - currency: currency, - plan: plan, - quantity: quantity, - channels: channels, - subaccount: subaccount, - transaction_charge: transaction_charge, - bearer: bearer, - label: label, - metadata: metadata, - split: split, - split_code: split_code, - connect_split: connect_split, - connect_account: connect_account, - 'data-custom-button': args['data-custom-button'] || '', - }; - callPaystackPop(paystackArgs); - } + var publicKey = args.publicKey, firstname = args.firstname, lastname = args.lastname, phone = args.phone, email = args.email, amount = args.amount, reference = args.reference, metadata = args.metadata, _b = args.currency, currency = _b === void 0 ? 'NGN' : _b, channels = args.channels, label = args.label, plan = args.plan, quantity = args.quantity, subaccount = args.subaccount, transaction_charge = args.transaction_charge, bearer = args.bearer, split = args.split, split_code = args.split_code, connect_account = args.connect_account, connect_split = args.connect_split, onBankTransferConfirmationPending = args.onBankTransferConfirmationPending; + var paystackArgs = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ onSuccess: onSuccess ? onSuccess : function () { return null; }, onCancel: onClose ? onClose : function () { return null; }, key: publicKey, email: email, amount: amount }, (firstname && { firstname: firstname })), (lastname && { lastname: lastname })), (phone && { phone: phone })), (reference && { ref: reference })), (currency && { currency: currency })), (channels && { channels: channels })), (metadata && { metadata: metadata })), (label && { label: label })), (onBankTransferConfirmationPending && { onBankTransferConfirmationPending: onBankTransferConfirmationPending })), (subaccount && { subaccount: subaccount })), (transaction_charge && { transaction_charge: transaction_charge })), (bearer && { bearer: bearer })), (split && { split: split })), (split_code && { split_code: split_code })), (plan && { plan: plan })), (quantity && { quantity: quantity })), (connect_split && { connect_split: connect_split })), (connect_account && { connect_account: connect_account })); + callPaystackPop(paystackArgs); } - useEffect(function () { - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - }, [scriptError]); return initializePayment; } diff --git a/dist/index.es.js.map b/dist/index.es.js.map index 6eecbb3..095b7ec 100644 --- a/dist/index.es.js.map +++ b/dist/index.es.js.map @@ -1 +1 @@ -{"version":3,"file":"index.es.js","sources":["../libs/paystack-script.ts","../libs/paystack-actions.ts","../libs/use-paystack.ts","../libs/paystack-button.tsx","../libs/paystack-context.ts","../libs/paystack-provider.tsx","../libs/paystack-consumer.tsx"],"sourcesContent":["import {useState, useEffect} from 'react';\n\nconst cachedScripts: string[] = [];\ninterface IScriptResult {\n loaded: boolean;\n error: boolean;\n}\n\nexport default function usePaystackScript(): boolean[] {\n const src = 'https://js.paystack.co/v1/inline.js';\n\n const [state, setState] = useState({\n loaded: false,\n error: false,\n });\n\n useEffect((): any => {\n if (cachedScripts.includes(src)) {\n setState({\n loaded: true,\n error: false,\n });\n } else {\n cachedScripts.push(src);\n\n const script = document.createElement('script');\n script.src = src;\n script.async = true;\n\n const onScriptLoad = (): void => {\n setState({\n loaded: true,\n error: false,\n });\n };\n\n const onScriptError = (): void => {\n const index = cachedScripts.indexOf(src);\n if (index >= 0) cachedScripts.splice(index, 1);\n script.remove();\n\n setState({\n loaded: true,\n error: true,\n });\n };\n\n script.addEventListener('load', onScriptLoad);\n script.addEventListener('complete', onScriptLoad);\n script.addEventListener('error', onScriptError);\n\n document.body.appendChild(script);\n\n return (): void => {\n script.removeEventListener('load', onScriptLoad);\n script.removeEventListener('error', onScriptError);\n };\n }\n }, [src]);\n\n return [state.loaded, state.error];\n}\n","/* eslint-disable */\nexport let callPaystackPop = (paystackArgs: Record): void => {\n // @ts-ignore\n const handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs);\n handler && handler.openIframe();\n};\n","import {useEffect} from 'react';\nimport {HookConfig, InitializePayment} from './types';\nimport usePaystackScript from './paystack-script';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: HookConfig): InitializePayment {\n const [scriptLoaded, scriptError] = usePaystackScript();\n\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata = {},\n currency = 'NGN',\n channels,\n label = '',\n plan = '',\n quantity = '',\n subaccount = '',\n transaction_charge = 0,\n bearer = 'account',\n split,\n split_code,\n connect_account,\n connect_split,\n } = args;\n\n if (scriptLoaded) {\n const paystackArgs: Record = {\n callback: onSuccess ? onSuccess : () => null,\n onClose: onClose ? onClose : () => null,\n key: publicKey,\n ref: reference,\n email,\n firstname,\n lastname,\n phone,\n amount,\n currency,\n plan,\n quantity,\n channels,\n subaccount,\n transaction_charge,\n bearer,\n label,\n metadata,\n split,\n split_code,\n connect_split,\n connect_account,\n 'data-custom-button': args['data-custom-button'] || '',\n };\n callPaystackPop(paystackArgs);\n }\n }\n\n useEffect(() => {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n }, [scriptError]);\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose : (): any => null;\n return (\n \n {children}\n \n );\n },\n);\n\nexport default PaystackConsumer;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,aAAa,GAAa,EAAE,CAAC;AAMrB,SAAU,iBAAiB,GAAA;IACvC,IAAM,GAAG,GAAG,qCAAqC,CAAC;IAE5C,IAAA,EAAA,GAAoB,QAAQ,CAAgB;AAChD,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,KAAK,EAAE,KAAK;AACb,KAAA,CAAC,EAHK,KAAK,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,QAAQ,QAGpB,CAAC;AAEH,IAAA,SAAS,CAAC,YAAA;AACR,QAAA,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC/B,YAAA,QAAQ,CAAC;AACP,gBAAA,MAAM,EAAE,IAAI;AACZ,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,GAAA,EAAA,CAAA,MAAA,EAAE,iBAAiB,uBAAA,EAAE,SAAS,eAAA,EAAE,OAAO,aAA+B,CAAC;AAEpF,IAAA,IAAM,yBAAyB,GAAG,YAAA,EAAY,OAAA,iBAAiB,CAAC,EAAC,MAAM,EAAA,MAAA,EAAE,SAAS,EAAA,SAAA,EAAE,OAAO,EAAA,OAAA,EAAC,CAAC,CAAA,EAAA,CAAC;IAC9F,OAAO,QAAQ,CAAC,EAAC,iBAAiB,EAAE,yBAAyB,EAAE,GAAG,EAAA,GAAA,EAAC,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF;AACA,IAAM,gBAAgB,GAAG,UAAU,CACjC,UACE,EAAwF,EACxF,GAAQ,EAAA;AADP,IAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAa,WAAW,GAAA,EAAA,CAAA,SAAA,EAAW,SAAS,GAAA,EAAA,CAAA,OAAA,EAAK,MAAM,GAAhE,MAAA,CAAA,EAAA,EAAA,CAAA,UAAA,EAAA,WAAA,EAAA,SAAA,CAAiE,CAAD,CAAA;AAGhE,IAAA,IAAM,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AAC9D,IAAA,IAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;"} \ No newline at end of file +{"version":3,"file":"index.es.js","sources":["../node_modules/@paystack/inline-js/es/inline.js","../libs/paystack-actions.ts","../libs/use-paystack.ts","../libs/paystack-button.tsx","../libs/paystack-context.ts","../libs/paystack-provider.tsx","../libs/paystack-consumer.tsx"],"sourcesContent":["function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function p(e,n){if(e){if(\"string\"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===t&&e.constructor&&(t=e.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(e):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}))}return e}var b='\\n \\n \\n \\n';var k={height:\"50px\",width:\"auto\",borderRadius:\"3px\",padding:\"10px\",locale:\"en\",type:\"pay\"},w=function(e){return e&&\"object\"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:\"application/json, text/plain, */*\",\"accept-language\":\"en-GB,en-US;q=0.9,en;q=0.8\",\"content-type\":\"application/x-www-form-urlencoded\",\"sec-ch-ua-mobile\":\"?0\",\"sec-fetch-dest\":\"empty\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"cross-site\"},referrerPolicy:\"no-referrer-when-downgrade\",method:\"POST\",mode:\"cors\",credentials:\"omit\"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r=\"\".concat(a,\"=\").concat(o);return[].concat(l(n),[r])}),[]).join(\"&\")}var L=function(e){return{biannually:\"BIANNUAL PLAN\",annually:\"ANNUAL PLAN\"}[e]||\"\".concat(e.toUpperCase(),\" PLAN\")},V=function(){try{return window.location&&\"https:\"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return!1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes(\"apple_pay\")};function _(e){var n=document.createElement(\"iframe\");return n.setAttribute(\"frameBorder\",\"0\"),n.setAttribute(\"allowtransparency\",\"true\"),n.id=e,n.style.display=\"none\",n}function E(e){return e.querySelector(\"apple-pay-button\")||e.querySelector(\"#apple-pay-button\")}function q(e){return document.querySelector(\"#\".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a(\"No script url\");var o=document.createElement(\"script\");o.src=e,o.addEventListener(\"load\",(function(){t(!0)})),o.addEventListener(\"error\",(function(){o.remove(),a(!1)})),n?n.appendChild(o):document.head.appendChild(o)}))})(\"https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js\",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error(\"Incorrect data type for 'webpackJsonp', expected array, got \".concat(t(window.webpackJsonp),\". Switching to fallback apple pay button\"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return\"\\n apple-pay-button {\\n --apple-pay-button-width: \".concat(t,\";\\n --apple-pay-button-height: \").concat(n,\";\\n --apple-pay-button-border-radius: \").concat(a,\";\\n --apple-pay-button-padding: \").concat(o,\";\\n --apple-pay-button-box-sizing: border-box;\\n width: \").concat(t,\";\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"apple-pay-button\");i.setAttribute(\"buttonstyle\",\"light\"===a?\"white\":\"black\"),i.setAttribute(\"type\",t.type),i.setAttribute(\"locale\",t.locale),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return\"\\n @supports (-webkit-appearance: -apple-pay-button) { \\n .apple-pay-button {\\n display: inline-block;\\n -webkit-appearance: -apple-pay-button;\\n width: \".concat(t,\";\\n height: \").concat(n,\";\\n border-radius: \").concat(a,\";\\n padding: \").concat(o,\";\\n -apple-pay-button-type: \").concat(r,\";\\n -webkit-locale: \").concat(i,\";\\n }\\n .apple-pay-button-black {\\n -apple-pay-button-style: black;\\n }\\n .apple-pay-button-white {\\n -apple-pay-button-style: white;\\n }\\n .apple-pay-button-white-with-line {\\n -apple-pay-button-style: white-outline;\\n }\\n }\\n\\n @supports not (-webkit-appearance: -apple-pay-button) {\\n .apple-pay-button {\\n display: inline-block;\\n background-size: 100% 60%;\\n background-repeat: no-repeat;\\n background-position: 50% 50%;\\n border-radius: 5px;\\n padding: 0px;\\n box-sizing: border-box;\\n min-width: 200px;\\n min-height: 32px;\\n max-height: 64px;\\n }\\n .apple-pay-button-black {\\n background-image: -webkit-named-image(apple-pay-logo-white);\\n background-color: black;\\n }\\n .apple-pay-button-white {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n }\\n .apple-pay-button-white-with-line {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n border: .5px solid black;\\n }\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"button\");i.classList.add(\"apple-pay-button\",\"light\"===a?\"apple-pay-button-white\":\"apple-pay-button-black\"),i.id=\"apple-pay-button\";var c=document.createElement(\"span\");c.classList.add(\"logo\"),i.appendChild(c),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)}))}else o(\"No wallet payment method is available on this device\");else o(\"Container to mount elements was not provided\")}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function I(e){return e.querySelector(\"#paystackpop-button\")}function z(e){return e.querySelector(\"#payment-request-button\")}function O(e,n){var t=document.querySelector(\"#pre-checkout-modal-\".concat(e));if(t){if(I(t)&&z(t))return t;t.remove()}var a,o=document.createElement(\"div\");o.classList.add(\"pre-checkout-modal\"),o.id=\"pre-checkout-modal-\".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll(\"body *\")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t)})),a+1);var r=document.createElement(\"div\");r.classList.add(\"pre-checkout-modal__content\"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement(\"div\"),C=new Intl.NumberFormat(\"en\",{style:\"currency\",currency:u,currencyDisplay:\"code\",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add(\"payment-info\"),h.innerHTML='\"').concat(s,'\\n
\\n
').concat(d||l,'
\\n
Pay ').concat(C,\"
\\n
\"),r.appendChild(h),r.innerHTML+='\\n \\n';var m=document.createElement(\"div\");m.classList.add(\"modal-wrapper\"),m.innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n';var y=document.createElement(\"p\");y.id=\"apple-pay-description\",y.innerHTML=\"Pay with Apple Pay to complete your purchase without filling a form\",m.appendChild(y);var f=document.createElement(\"div\");f.id=\"payment-request-button\",m.appendChild(f);var v=document.createElement(\"button\");v.id=\"paystackpop-button\",v.innerText=\"More payment options\",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\\n\\n\\n\\n',r.appendChild(m);var g=document.createElement(\"style\");return g.textContent='\\n .pre-checkout-modal {\\n display: none;\\n position: fixed;\\n z-index: 1;\\n left: 0;\\n top: 0;\\n width: 100vw;\\n height: 100%;\\n overflow: auto;\\n background-color: rgba(0, 0, 0, 0.75);\\n transition: all 0.2s ease;\\n }\\n\\n .pre-checkout-modal.show {\\n display: block;\\n }\\n\\n .pre-checkout-modal__content {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n margin-left: auto;\\n margin-right: auto;\\n background-color: #fefefe;\\n padding: 30px 24px;\\n padding-bottom: max(30px, env(safe-area-inset-bottom));\\n width: 100%;\\n border-radius: 6px 6px 0 0;\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n max-width: 450px;\\n\\n box-sizing: border-box;\\n transform: translateY(238px);\\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\\n }\\n\\n .modal-wrapper {\\n padding: 0 16px;\\n }\\n\\n .payment-info {\\n position: relative;\\n padding-bottom: 15px;\\n border-bottom: solid 1px whitesmoke;\\n display: flex;\\n align-items: flex-start;\\n justify-content: space-between;\\n width: 100%;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n .customer-email {\\n color: #737373;\\n font-size: 13px;\\n line-height: 16px;\\n }\\n\\n .customer-info {\\n flex: 1;\\n text-align: right;\\n }\\n\\n .merchant-logo {\\n display: flex;\\n align-items: center;\\n height: 30px;\\n }\\n .transaction-amount {\\n margin-top: 5px;\\n font-size: 13px;\\n line-height: 16px;\\n color: #737373;\\n }\\n\\n .amount {\\n color: #29b263;\\n font-weight: bold;\\n }\\n\\n @media only screen and (min-width: 500px) {\\n .pre-checkout-modal__content {\\n bottom: 0;\\n top: 0;\\n margin: auto;\\n border-radius: 6px;\\n height: fit-content;\\n }\\n }\\n\\n .pre-checkout-modal__content.show {\\n transform: translateY(0);\\n margin: 0 auto;\\n margin-top: 100px;\\n }\\n\\n .pre-checkout-modal__content > * {\\n margin-top: 0;\\n margin-bottom: 40px;\\n }\\n .pre-checkout-modal__content > *:last-child {\\n margin-bottom: 0;\\n }\\n\\n .pre-checkout-modal__content svg {\\n margin: auto;\\n width: 100%;\\n }\\n\\n #inline-button-wordmark--white {\\n position: absolute;\\n bottom: -50px;\\n margin: auto;\\n right: 0;\\n width: fit-content;\\n }\\n\\n #inline-button-wordmark--grey {\\n display: none;\\n }\\n\\n .pre-checkout-modal__content #apple-pay-mark--light {\\n margin-bottom: 16px;\\n }\\n\\n .pre-checkout-modal p {\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n color: #4E4E4E;\\n line-height: 28px;\\n font-size: 14px;\\n font-weight: 500;\\n margin: 0;\\n padding: 0 20px;\\n text-align: center;\\n letter-spacing: -0.3px;\\n }\\n\\n .pre-checkout-modal button {\\n height: 42px;\\n width: 100%;\\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\\n border: 1px solid #49a861;\\n box-sizing: border-box;\\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\\n color: #ffffff;\\n font-weight: 600;\\n font-size: 14px;\\n line-height: 14px;\\n cursor: pointer;\\n\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n #payment-request-button {\\n width: 100%;\\n height: fit-content;\\n margin: 24px 0 16px 0;\\n }\\n\\n #paystackpop-button {\\n padding: 0 16px;\\n }\\n\\n #apple-pay-close-button {\\n position: absolute;\\n text-align: center;\\n top: 0;\\n right: -26px;\\n height: 16px;\\n width: 16px;\\n padding: 0;\\n display: inline-block;\\n z-index: 3;\\n border-radius: 50%;\\n background: transparent;\\n transition: all 300ms;\\n outline: none;\\n cursor: pointer;\\n border: none;\\n }\\n\\n #apple-pay-close-button svg {\\n width: initial;\\n }\\n \\n #apple-pay-close-button:hover {\\n background-color: #e22b28;\\n }\\n\\n @media only screen and (max-width: 500px) {\\n .pre-checkout-modal__content {\\n max-width: 500px;\\n border-radius: 0;\\n padding-bottom: 0;\\n }\\n\\n .modal-wrapper {\\n padding: 0;\\n }\\n\\n #inline-button-wordmark--white {\\n display: none\\n }\\n \\n #inline-button-wordmark--grey {\\n display: block;\\n width: 100%;\\n margin: 16px 0;\\n height: 13px;\\n }\\n\\n #apple-pay-close-button {\\n display: none;\\n }\\n }\\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:\"key\",required:!0,types:[\"string\"]},{value:\"amount\",required:!0,or:[\"plan\",\"planCode\"],types:[\"string\",\"number\"]},{value:\"currency\",required:!1,types:[\"string\"]},{value:\"email\",required:!0,or:[\"customerCode\"],types:[\"string\"]},{value:\"label\",required:!1,types:[\"string\"]},{value:\"firstName\",required:!1,types:[\"string\"]},{value:\"lastName\",required:!1,types:[\"string\"]},{value:\"reference\",required:!1,types:[\"string\"]},{value:\"phone\",required:!1,types:[\"string\"]},{value:\"customerCode\",required:!1,override:\"email\",types:[\"string\"]},{value:\"channels\",required:!1,types:[\"array\"]},{value:\"paymentRequest\",required:!1,types:[\"string\",\"number\"]},{value:\"paymentPage\",required:!1,types:[\"string\"]},{value:\"hash\",required:!1,types:[\"string\"]},{value:\"container\",required:!1,types:[\"string\"]},{value:\"metadata\",required:!1,types:[\"object\"]},{value:\"subaccountCode\",required:!1,types:[\"string\"]},{value:\"bearer\",required:!1,types:[\"string\"]},{value:\"transactionCharge\",required:!1,types:[\"string\",\"number\"]},{value:\"planCode\",required:!1,override:\"amount\",types:[\"string\"]},{value:\"subscriptionCount\",required:!1,types:[\"number\"]},{value:\"planInterval\",required:!1,types:[\"string\"]},{value:\"subscriptionLimit\",required:!1,types:[\"number\"]},{value:\"subscriptionStartDate\",required:!1,types:[\"string\"]},{value:\"accessCode\",required:!1,types:[\"string\"]},{value:\"onError\",required:!1,types:[\"function\"]},{value:\"onLoad\",required:!1,types:[\"function\"]},{value:\"onSuccess\",required:!1,types:[\"function\"]},{value:\"onCancel\",required:!1,types:[\"function\"]},{value:\"callback\",required:!1,types:[\"function\"]},{value:\"onClose\",required:!1,types:[\"function\"]},{value:\"onBankTransferConfirmationPending\",required:!1,types:[\"function\"]},{value:\"firstname\",required:!1,types:[\"string\"]},{value:\"lastname\",required:!1,types:[\"string\"]},{value:\"customer_code\",required:!1,types:[\"string\"]},{value:\"payment_request\",required:!1,types:[\"string\",\"number\"]},{value:\"subaccount\",required:!1,types:[\"string\"]},{value:\"transaction_charge\",required:!1,types:[\"number\",\"string\"]},{value:\"plan\",required:!1,types:[\"string\"]},{value:\"quantity\",required:!1,types:[\"number\"]},{value:\"interval\",required:!1,types:[\"string\"]},{value:\"invoice_limit\",required:!1,types:[\"number\",\"string\"]},{value:\"start_date\",required:!1,types:[\"string\"]},{value:\"payment_page\",required:!1,types:[\"number\",\"string\"]},{value:\"order_id\",required:!1,types:[\"number\"]},{value:\"ref\",required:!1,types:[\"string\"]},{value:\"card\",required:!1,types:[\"string\"]},{value:\"bank\",required:!1,types:[\"string\"]},{value:\"split\",required:!1,types:[\"object\"]},{value:\"split_code\",required:!1,types:[\"string\"]},{value:\"transaction_type\",required:!1,types:[\"string\"]},{value:\"subscription\",required:!1,types:[\"number\"]},{value:\"language\",required:!1,types:[\"string\"]},{value:\"connect_account\",required:!1,types:[\"string\"]},{value:\"connect_split\",required:!1,types:[\"object\"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split(\"?\")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode=\"popup\",e.split&&\"string\"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&[\"false\",!1].indexOf(a.card)>-1&&(a.channels=[\"bank\"],delete a.card),void 0!==a.bank&&[\"false\",!1].indexOf(a.bank)>-1&&(a.channels=[\"card\"],delete a.bank),[{to:\"firstname\",from:\"firstName\"},{to:\"lastname\",from:\"lastName\"},{to:\"customer_code\",from:\"customerCode\"},{to:\"payment_request\",from:\"paymentRequest\"},{to:\"subaccount\",from:\"subaccountCode\"},{to:\"transaction_charge\",from:\"transactionCharge\"},{to:\"plan\",from:\"planCode\"},{to:\"quantity\",from:\"subscriptionCount\"},{to:\"interval\",from:\"planInterval\"},{to:\"invoice_limit\",from:\"subscriptionLimit\"},{to:\"start_date\",from:\"subscriptionStartDate\"},{to:\"ref\",from:\"reference\"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from])})),Object.values(e).forEach((function(n,t){if(\"function\"==typeof n){var o=Object.keys(e)[t];delete a[o]}})),a}var U=[\"iPad Simulator\",\"iPhone Simulator\",\"iPod Simulator\",\"iPad\",\"iPhone\",\"iPod\"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes(\"Mac\")&&\"ontouchend\"in document},B=function(e,n,t){var a=\"\".concat(m.paystackApiUrl,\"transaction/update_log/\").concat(e),o={Authorization:\"Bearer \".concat(n)};return fetch(a,{method:\"POST\",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t=\"\".concat(m.paystackApiUrl,\"transaction/set_ip/\").concat(e),a={Authorization:\"Bearer \".concat(n)};return fetch(t,{method:\"POST\",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]}},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case\"success\":return this.logApiSuccess(n);case\"failed\":return this.logApiError(e.message);default:return!1}},logValidationResponse:function(e){return this.log.history.push({type:\"action\",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n=\"Attempted to pay\";return e&&(n+=\" with \".concat(e)),this.log.attempts+=1,this.log.history.push({type:\"action\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n=\"Error\";return e&&(n+=\": \".concat(e)),this.log.errors+=1,this.log.history.push({type:\"error\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n=\"Successfully paid\";return e&&(n+=\" with \".concat(e)),this.log.success=!0,this.log.history.push({type:\"success\",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=[\"language\",\"connect_account\"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({\"Content-Type\":\"application/json\"},a&&{\"Accept-Language\":a});return(this.accessCode?fetch(new URL(\"transaction/verify_access_code/\".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL(\"/checkout/request_inline\",m.paystackApiUrl).toString(),{method:\"POST\",body:JSON.stringify(r),headers:n(n({},i),o&&{\"x-connect-account\":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[]}if(!e||\"object\"!==t(e))throw new n(\"Transaction parameters should be a non-empty object\");var a=e;if(\"accessCode\"in a)return{accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e]}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:\"Required parameter missing: \".concat(e.value)})})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);\"object\"===i&&Array.isArray(n)&&(i=\"array\"),o.types.indexOf(i)<=-1&&r.push({message:\"Invalid parameter type: \".concat(e),validTypes:o.types})})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override]})),r.length)throw new n(\"Invalid transaction parameters\",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W)}return r(e,[{key:\"onSetupError\",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e)}},{key:\"onLoad\",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl=\"\".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a})}},{key:\"onSuccess\",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e)}},{key:\"setStatus\",value:function(e){this.status=e}},{key:\"onCancel\",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose()}},{key:\"cancel\",value:function(){this.isActive=!1,this.onCancel()}},{key:\"onBankTransferConfirmationPending\",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending()}},{key:\"logError\",value:function(e){this.errors.push(e)}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('\"'.concat(e,'\" has been deprecated, please use \"').concat(n,'\". ').concat(t||\"\"))}var G,Y=[\"preload\",\"inlineTransaction\"],X=[\"container\",\"styles\",\"onElementsMount\"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||\"abandoned\"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join(\"\")===Object.keys(a).sort().join(\"\"),r=Object.values(t).sort().join(\"\")===Object.values(a).sort().join(\"\"),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:\"inline:url\",path:\"newTransaction\",params:t},\"*\")}var ne=\"trackCheckoutClosed\",te=\"trackPaymentError\",ae=\"trackPaymentAttempt\",oe=\"trackPaymentCompletion\";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e=\"\",n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re(\"A container is required to mount the payment request button\"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_(\"inline-background-\".concat(e));n.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n background: rgba(0, 0, 0, 0.75); \\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n transition: opacity 0.3s;\\n -webkit-transition: opacity 0.3s;\\n visibility: hidden;\\n display: none;\\n\",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\\n \\n \\n\\n \\n \\n \\n \\n Paystack Popup Loader\\n \\n \\n\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n\\n \\n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_(\"inline-checkout-\".concat(t))).src=\"\".concat(m.checkoutUrl,\"popup\"),o.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n visibility: hidden;\\n display: none;\\n height: 100%;\\n\",o.setAttribute(\"allowpaymentrequest\",\"true\"),o.setAttribute(\"allow\",\"payment; clipboard-read; clipboard-write\"),document.body.appendChild(o),o),this.registerListeners()}return r(e,[{key:\"registerListeners\",value:function(){var e=this;window.addEventListener(\"message\",(function(n){var t=\"\".concat(n.origin,\"/\")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n)}))}},{key:\"sendAnalyticsEventToCheckout\",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:\"analytics\",action:e,params:n},\"*\")}},{key:\"checkout\",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\\/[\\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes(\"apple_pay\")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:\"100%\",type:\"pay\",height:\"42px\",padding:\"15px\",borderRadius:\"5px\"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(\".pre-checkout-modal__content\");t.classList.add(\"show\"),setTimeout((function(){a.classList.add(\"show\"),e(!0)}),50)}catch(e){n(e)}})),e(n)})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n)}))):(G.newTransaction({inlineTransaction:n}),e(n))})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e)}))}))}},{key:\"registerPreCheckoutModalEventListeners\",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener(\"touchstart\",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1}),125))}),!0),document.addEventListener(\"touchend\",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn()},this.preCheckoutModal.querySelector(\"#apple-pay-close-button\").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction()}}},{key:\"closePreCheckoutModal\",value:function(e){var n;this.preCheckoutModal&&(\"failed\"===e?(n=this.preCheckoutModal)&&(n.querySelector(\"#apple-pay-mark--light\").innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n',n.querySelector(\"#apple-pay-description\").textContent=\"An error occurred while paying with Apple Pay. Please try again or use another payment method.\"):(!function(e){e&&(e.querySelector(\".pre-checkout-modal__content\").classList.remove(\"show\"),e.classList.remove(\"show\"))}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null))}},{key:\"closePreCheckoutModalAndCancelTransaction\",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage(\"close\",\"*\"),this.closePreCheckoutModal())}},{key:\"newTransaction\",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:\"preloadTransaction\",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:\"paymentRequest\",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector(\"#\".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re(\"A container is required to mount the payment request button\"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e)})).catch((function(){a&&a(null)})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e}r(l)}))})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e)}))}else{if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p}else K(\"This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'\");a&&a(null);var u=G.activeTransaction();r(u)}}))}},{key:\"registerApplePayEventListener\",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()}}},{key:\"registerPaymentRequestEventListeners\",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer)}},{key:\"startApplePay\",value:function(){var e,t,a,o,r,i=this,c=\"apple pay\",s=this.activeTransaction();if(s){var l={channel:\"apple_pay\",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:\"apple_pay\",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:\"NG\",currencyCode:t,merchantCapabilities:[\"supports3DS\",\"supportsCredit\",\"supportsDebit\"],supportedNetworks:[\"visa\",\"masterCard\"],requiredBillingContactFields:[\"postalAddress\",\"name\",\"phone\",\"email\"],total:{label:\"\".concat(o,\" - Paystack\"),type:\"final\",amount:String(x(a))}},\"string\"==typeof r&&\"\"!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c=\"\".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){\"success\"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message)})).catch((function(e){s.onSetupError(e)}))},d.oncancel=function(){G.preCheckoutModal||s.onCancel()},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o=\"\".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),\"success\"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Transaction attempt failed\"})),G.closePreCheckoutModal(e.status)})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Error occurred\"}),G.closePreCheckoutModal(\"failed\")}))},d.begin()}catch(e){s.onSetupError(e)}}else re(\"Could not initiate apple pay transaction\")}},{key:\"resumeTransaction\",value:function(e){return this.newTransaction({accessCode:e})}},{key:\"activeTransaction\",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:\"cancelTransaction\",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close())}},{key:\"respondToEvent\",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case\"loaded:checkout\":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case\"loaded:transaction\":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById(\"app-loader\").style.display=\"none\"),a.onLoad(i);break;case\"error\":\"setup\"===i.type?a.onSetupError(i):a.logError(i);break;case\"cancel\":case\"close\":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case\"transfer:pending\":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case\"success\":this.close(),a.onSuccess(i)}}catch(e){}}}},{key:\"respondToEmbedEvents\",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&(\"string\"==typeof o||o instanceof String)){var r={action:t=(n=o)&&\"string\"==typeof n?n.split(\" \")[0]:null,data:t?n.split(\" \").slice(2).join(\" \"):null};if(r&&\"PaystackClose\"===r.action)r.data&&a.onSuccess(o);\"PaystackTLSClose\"===r.action&&a.cancel()}}},{key:\"animateCheckoutIn\",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t(\"No dom element provided\");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t(\"No dom element provided\"),a.style.display=\"\",a.style.visibility=\"visible\",o.style.display=\"\",o.style.visibility=\"visible\",n()}))).then((function(){n.checkoutIframe.contentWindow.postMessage(\"render\",\"*\")})),this.isOpen=!0}}},{key:\"open\",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn())}},{key:\"close\",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t(\"No dom element provided\");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t(\"No dom element provided\"),o.style.opacity=0,a.style.display=\"none\",a.style.visibility=\"hidden\",setTimeout((function(){o.style.display=\"none\",o.style.visibility=\"hidden\",o.style.opacity=1,e()}),300)}))).then((function(){e.checkoutIframe.contentWindow.postMessage(\"close\",\"*\")})),this.isOpen=!1}}},{key:\"isLoaded\",value:function(){return this.isLoaded}}],[{key:\"setup\",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q(\"PaystackPop.setup()\",\"new PaystackPop()\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\");var a=G.newTransaction(n,\"deprecated\"),o=a.urlParameters;if(t){var r=\"\".concat(m.siteUrl,\"/assets/payment/production/inline.html?\").concat(y(o)),i=function(e,n){var t=_(\"embed-checkout-\".concat(e));return t.style.cssText=\"\\n background: transparent;\\n background: rgba(0,0,0,0);\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n nmargin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n visibility: hidden;\\n display: none;\\n\",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML=\"\",t.removeAttribute(\"style\"),t.className=\"paystack-embed-container\",t.style.position=\"relative\",t.style.width=\"100%\",t.appendChild(n)}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage(\"PaystackOpen \".concat(G.id),\"*\"),e=i,new Promise((function(n,t){e||t(\"No dom element provided\"),e.style.display=\"\",e.style.visibility=\"visible\",n()}))}}else a.openIframe=function(){Q(\"openIframe\",\"open\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\"),G.open(o)};return a}}]),e}();if(ie=g().length>0,ce=f()&&\"FORM\"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split(\"data-\")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error(\"Please make sure the buttonId is an element available in the DOM\");var t=n({},e);t.buttonText=e.buttonText||\"Pay\",t.buttonVariant=\"normal\",t.buttonWordmarkVariant=\"normal\";var a=[\"normal\",\"light\"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute(\"data-inline-id\",e.id);else{var t=document.createElement(\"div\");t.id=\"inline-button-\".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\\n \\n \\n ',light:b};return\"\\n \\n \\n
\\n ').concat(a[e.wordmarkVariant||\"normal\"],\"\\n
\\n \")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName(\"button\"),1)[0]}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener(\"click\",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:\"hidden\",name:\"reference\",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement(\"input\")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit()}}))}))}export{se as default};\n","import PaystackPop from '@paystack/inline-js';\n\nexport const callPaystackPop = (paystackArgs: Record): void => {\n const paystack = new PaystackPop();\n paystack.newTransaction(paystackArgs);\n};\n","import {HookConfig, InitializePayment} from './types';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: HookConfig): InitializePayment {\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata,\n currency = 'NGN',\n channels,\n label,\n plan,\n quantity,\n subaccount,\n transaction_charge,\n bearer,\n split,\n split_code,\n connect_account,\n connect_split,\n onBankTransferConfirmationPending,\n } = args;\n const paystackArgs: Record = {\n onSuccess: onSuccess ? onSuccess : () => null,\n onCancel: onClose ? onClose : () => null,\n key: publicKey,\n email,\n amount,\n ...(firstname && {firstname}),\n ...(lastname && {lastname}),\n ...(phone && {phone}),\n ...(reference && {ref: reference}),\n ...(currency && {currency}),\n ...(channels && {channels}),\n ...(metadata && {metadata}),\n ...(label && {label}),\n ...(onBankTransferConfirmationPending && {onBankTransferConfirmationPending}),\n ...(subaccount && {subaccount}),\n ...(transaction_charge && {transaction_charge}),\n ...(bearer && {bearer}),\n ...(split && {split}),\n ...(split_code && {split_code}),\n ...(plan && {plan}),\n ...(quantity && {quantity}),\n ...(connect_split && {connect_split}),\n ...(connect_account && {connect_account}),\n };\n\n callPaystackPop(paystackArgs);\n }\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose : (): any => null;\n return (\n \n {children}\n \n );\n },\n);\n\nexport default PaystackConsumer;\n"],"names":["PaystackPop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,SAA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AAA,EAAY,OAAA,iBAAiB,CAAC,EAAC,MAAM,EAAA,MAAA,EAAE,SAAS,EAAA,SAAA,EAAE,OAAO,EAAA,OAAA,EAAC,CAAC,CAAA,EAAA,CAAC;IAC9F,OAAO,QAAQ,CAAC,EAAC,iBAAiB,EAAE,yBAAyB,EAAE,GAAG,EAAA,GAAA,EAAC,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF;AACA,IAAM,gBAAgB,GAAG,UAAU,CACjC,UACE,EAAwF,EACxF,GAAQ,EAAA;AADP,IAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAa,WAAW,GAAA,EAAA,CAAA,SAAA,EAAW,SAAS,GAAA,EAAA,CAAA,OAAA,EAAK,MAAM,GAAhE,MAAA,CAAA,EAAA,EAAA,CAAA,UAAA,EAAA,WAAA,EAAA,SAAA,CAAiE,CAAD,CAAA;AAGhE,IAAA,IAAM,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AAC9D,IAAA,IAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 1504f0f..6bc85a2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -47,104 +47,21 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }; -var cachedScripts = []; -function usePaystackScript() { - var src = 'https://js.paystack.co/v1/inline.js'; - var _a = React.useState({ - loaded: false, - error: false, - }), state = _a[0], setState = _a[1]; - React.useEffect(function () { - if (cachedScripts.includes(src)) { - setState({ - loaded: true, - error: false, - }); - } - else { - cachedScripts.push(src); - var script_1 = document.createElement('script'); - script_1.src = src; - script_1.async = true; - var onScriptLoad_1 = function () { - setState({ - loaded: true, - error: false, - }); - }; - var onScriptError_1 = function () { - var index = cachedScripts.indexOf(src); - if (index >= 0) - cachedScripts.splice(index, 1); - script_1.remove(); - setState({ - loaded: true, - error: true, - }); - }; - script_1.addEventListener('load', onScriptLoad_1); - script_1.addEventListener('complete', onScriptLoad_1); - script_1.addEventListener('error', onScriptError_1); - document.body.appendChild(script_1); - return function () { - script_1.removeEventListener('load', onScriptLoad_1); - script_1.removeEventListener('error', onScriptError_1); - }; - } - }, [src]); - return [state.loaded, state.error]; -} +function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a);}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t]);}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e;}finally{try{i||null==t.return||t.return();}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}));}return e}var b='\n \n \n \n';var k={height:"50px",width:"auto",borderRadius:"3px",padding:"10px",locale:"en",type:"pay"},w=function(e){return e&&"object"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/x-www-form-urlencoded","sec-ch-ua-mobile":"?0","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site"},referrerPolicy:"no-referrer-when-downgrade",method:"POST",mode:"cors",credentials:"omit"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r="".concat(a,"=").concat(o);return [].concat(l(n),[r])}),[]).join("&")}var L=function(e){return {biannually:"BIANNUAL PLAN",annually:"ANNUAL PLAN"}[e]||"".concat(e.toUpperCase()," PLAN")},V=function(){try{return window.location&&"https:"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return !1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes("apple_pay")};function _(e){var n=document.createElement("iframe");return n.setAttribute("frameBorder","0"),n.setAttribute("allowtransparency","true"),n.id=e,n.style.display="none",n}function E(e){return e.querySelector("apple-pay-button")||e.querySelector("#apple-pay-button")}function q(e){return document.querySelector("#".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a("No script url");var o=document.createElement("script");o.src=e,o.addEventListener("load",(function(){t(!0);})),o.addEventListener("error",(function(){o.remove(),a(!1);})),n?n.appendChild(o):document.head.appendChild(o);}))})("https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error("Incorrect data type for 'webpackJsonp', expected array, got ".concat(t(window.webpackJsonp),". Switching to fallback apple pay button"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return "\n apple-pay-button {\n --apple-pay-button-width: ".concat(t,";\n --apple-pay-button-height: ").concat(n,";\n --apple-pay-button-border-radius: ").concat(a,";\n --apple-pay-button-padding: ").concat(o,";\n --apple-pay-button-box-sizing: border-box;\n width: ").concat(t,";\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("apple-pay-button");i.setAttribute("buttonstyle","light"===a?"white":"black"),i.setAttribute("type",t.type),i.setAttribute("locale",t.locale),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return "\n @supports (-webkit-appearance: -apple-pay-button) { \n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n width: ".concat(t,";\n height: ").concat(n,";\n border-radius: ").concat(a,";\n padding: ").concat(o,";\n -apple-pay-button-type: ").concat(r,";\n -webkit-locale: ").concat(i,";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("button");i.classList.add("apple-pay-button","light"===a?"apple-pay-button-white":"apple-pay-button-black"),i.id="apple-pay-button";var c=document.createElement("span");c.classList.add("logo"),i.appendChild(c),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);}));}else o("No wallet payment method is available on this device");else o("Container to mount elements was not provided");}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild);}function I(e){return e.querySelector("#paystackpop-button")}function z(e){return e.querySelector("#payment-request-button")}function O(e,n){var t=document.querySelector("#pre-checkout-modal-".concat(e));if(t){if(I(t)&&z(t))return t;t.remove();}var a,o=document.createElement("div");o.classList.add("pre-checkout-modal"),o.id="pre-checkout-modal-".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll("body *")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t);})),a+1);var r=document.createElement("div");r.classList.add("pre-checkout-modal__content"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement("div"),C=new Intl.NumberFormat("en",{style:"currency",currency:u,currencyDisplay:"code",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add("payment-info"),h.innerHTML='\n
\n
').concat(d||l,'
\n
Pay ').concat(C,"
\n
"),r.appendChild(h),r.innerHTML+='\n \n';var m=document.createElement("div");m.classList.add("modal-wrapper"),m.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n';var y=document.createElement("p");y.id="apple-pay-description",y.innerHTML="Pay with Apple Pay to complete your purchase without filling a form",m.appendChild(y);var f=document.createElement("div");f.id="payment-request-button",m.appendChild(f);var v=document.createElement("button");v.id="paystackpop-button",v.innerText="More payment options",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\n\n\n\n',r.appendChild(m);var g=document.createElement("style");return g.textContent='\n .pre-checkout-modal {\n display: none;\n position: fixed;\n z-index: 1;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.75);\n transition: all 0.2s ease;\n }\n\n .pre-checkout-modal.show {\n display: block;\n }\n\n .pre-checkout-modal__content {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n background-color: #fefefe;\n padding: 30px 24px;\n padding-bottom: max(30px, env(safe-area-inset-bottom));\n width: 100%;\n border-radius: 6px 6px 0 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 450px;\n\n box-sizing: border-box;\n transform: translateY(238px);\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\n }\n\n .modal-wrapper {\n padding: 0 16px;\n }\n\n .payment-info {\n position: relative;\n padding-bottom: 15px;\n border-bottom: solid 1px whitesmoke;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n .customer-email {\n color: #737373;\n font-size: 13px;\n line-height: 16px;\n }\n\n .customer-info {\n flex: 1;\n text-align: right;\n }\n\n .merchant-logo {\n display: flex;\n align-items: center;\n height: 30px;\n }\n .transaction-amount {\n margin-top: 5px;\n font-size: 13px;\n line-height: 16px;\n color: #737373;\n }\n\n .amount {\n color: #29b263;\n font-weight: bold;\n }\n\n @media only screen and (min-width: 500px) {\n .pre-checkout-modal__content {\n bottom: 0;\n top: 0;\n margin: auto;\n border-radius: 6px;\n height: fit-content;\n }\n }\n\n .pre-checkout-modal__content.show {\n transform: translateY(0);\n margin: 0 auto;\n margin-top: 100px;\n }\n\n .pre-checkout-modal__content > * {\n margin-top: 0;\n margin-bottom: 40px;\n }\n .pre-checkout-modal__content > *:last-child {\n margin-bottom: 0;\n }\n\n .pre-checkout-modal__content svg {\n margin: auto;\n width: 100%;\n }\n\n #inline-button-wordmark--white {\n position: absolute;\n bottom: -50px;\n margin: auto;\n right: 0;\n width: fit-content;\n }\n\n #inline-button-wordmark--grey {\n display: none;\n }\n\n .pre-checkout-modal__content #apple-pay-mark--light {\n margin-bottom: 16px;\n }\n\n .pre-checkout-modal p {\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n color: #4E4E4E;\n line-height: 28px;\n font-size: 14px;\n font-weight: 500;\n margin: 0;\n padding: 0 20px;\n text-align: center;\n letter-spacing: -0.3px;\n }\n\n .pre-checkout-modal button {\n height: 42px;\n width: 100%;\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\n border: 1px solid #49a861;\n box-sizing: border-box;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\n color: #ffffff;\n font-weight: 600;\n font-size: 14px;\n line-height: 14px;\n cursor: pointer;\n\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n #payment-request-button {\n width: 100%;\n height: fit-content;\n margin: 24px 0 16px 0;\n }\n\n #paystackpop-button {\n padding: 0 16px;\n }\n\n #apple-pay-close-button {\n position: absolute;\n text-align: center;\n top: 0;\n right: -26px;\n height: 16px;\n width: 16px;\n padding: 0;\n display: inline-block;\n z-index: 3;\n border-radius: 50%;\n background: transparent;\n transition: all 300ms;\n outline: none;\n cursor: pointer;\n border: none;\n }\n\n #apple-pay-close-button svg {\n width: initial;\n }\n \n #apple-pay-close-button:hover {\n background-color: #e22b28;\n }\n\n @media only screen and (max-width: 500px) {\n .pre-checkout-modal__content {\n max-width: 500px;\n border-radius: 0;\n padding-bottom: 0;\n }\n\n .modal-wrapper {\n padding: 0;\n }\n\n #inline-button-wordmark--white {\n display: none\n }\n \n #inline-button-wordmark--grey {\n display: block;\n width: 100%;\n margin: 16px 0;\n height: 13px;\n }\n\n #apple-pay-close-button {\n display: none;\n }\n }\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:"key",required:!0,types:["string"]},{value:"amount",required:!0,or:["plan","planCode"],types:["string","number"]},{value:"currency",required:!1,types:["string"]},{value:"email",required:!0,or:["customerCode"],types:["string"]},{value:"label",required:!1,types:["string"]},{value:"firstName",required:!1,types:["string"]},{value:"lastName",required:!1,types:["string"]},{value:"reference",required:!1,types:["string"]},{value:"phone",required:!1,types:["string"]},{value:"customerCode",required:!1,override:"email",types:["string"]},{value:"channels",required:!1,types:["array"]},{value:"paymentRequest",required:!1,types:["string","number"]},{value:"paymentPage",required:!1,types:["string"]},{value:"hash",required:!1,types:["string"]},{value:"container",required:!1,types:["string"]},{value:"metadata",required:!1,types:["object"]},{value:"subaccountCode",required:!1,types:["string"]},{value:"bearer",required:!1,types:["string"]},{value:"transactionCharge",required:!1,types:["string","number"]},{value:"planCode",required:!1,override:"amount",types:["string"]},{value:"subscriptionCount",required:!1,types:["number"]},{value:"planInterval",required:!1,types:["string"]},{value:"subscriptionLimit",required:!1,types:["number"]},{value:"subscriptionStartDate",required:!1,types:["string"]},{value:"accessCode",required:!1,types:["string"]},{value:"onError",required:!1,types:["function"]},{value:"onLoad",required:!1,types:["function"]},{value:"onSuccess",required:!1,types:["function"]},{value:"onCancel",required:!1,types:["function"]},{value:"callback",required:!1,types:["function"]},{value:"onClose",required:!1,types:["function"]},{value:"onBankTransferConfirmationPending",required:!1,types:["function"]},{value:"firstname",required:!1,types:["string"]},{value:"lastname",required:!1,types:["string"]},{value:"customer_code",required:!1,types:["string"]},{value:"payment_request",required:!1,types:["string","number"]},{value:"subaccount",required:!1,types:["string"]},{value:"transaction_charge",required:!1,types:["number","string"]},{value:"plan",required:!1,types:["string"]},{value:"quantity",required:!1,types:["number"]},{value:"interval",required:!1,types:["string"]},{value:"invoice_limit",required:!1,types:["number","string"]},{value:"start_date",required:!1,types:["string"]},{value:"payment_page",required:!1,types:["number","string"]},{value:"order_id",required:!1,types:["number"]},{value:"ref",required:!1,types:["string"]},{value:"card",required:!1,types:["string"]},{value:"bank",required:!1,types:["string"]},{value:"split",required:!1,types:["object"]},{value:"split_code",required:!1,types:["string"]},{value:"transaction_type",required:!1,types:["string"]},{value:"subscription",required:!1,types:["number"]},{value:"language",required:!1,types:["string"]},{value:"connect_account",required:!1,types:["string"]},{value:"connect_split",required:!1,types:["object"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split("?")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode="popup",e.split&&"string"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&["false",!1].indexOf(a.card)>-1&&(a.channels=["bank"],delete a.card),void 0!==a.bank&&["false",!1].indexOf(a.bank)>-1&&(a.channels=["card"],delete a.bank),[{to:"firstname",from:"firstName"},{to:"lastname",from:"lastName"},{to:"customer_code",from:"customerCode"},{to:"payment_request",from:"paymentRequest"},{to:"subaccount",from:"subaccountCode"},{to:"transaction_charge",from:"transactionCharge"},{to:"plan",from:"planCode"},{to:"quantity",from:"subscriptionCount"},{to:"interval",from:"planInterval"},{to:"invoice_limit",from:"subscriptionLimit"},{to:"start_date",from:"subscriptionStartDate"},{to:"ref",from:"reference"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from]);})),Object.values(e).forEach((function(n,t){if("function"==typeof n){var o=Object.keys(e)[t];delete a[o];}})),a}var U=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes("Mac")&&"ontouchend"in document},B=function(e,n,t){var a="".concat(m.paystackApiUrl,"transaction/update_log/").concat(e),o={Authorization:"Bearer ".concat(n)};return fetch(a,{method:"POST",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t="".concat(m.paystackApiUrl,"transaction/set_ip/").concat(e),a={Authorization:"Bearer ".concat(n)};return fetch(t,{method:"POST",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]};},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case"success":return this.logApiSuccess(n);case"failed":return this.logApiError(e.message);default:return !1}},logValidationResponse:function(e){return this.log.history.push({type:"action",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n="Attempted to pay";return e&&(n+=" with ".concat(e)),this.log.attempts+=1,this.log.history.push({type:"action",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n="Error";return e&&(n+=": ".concat(e)),this.log.errors+=1,this.log.history.push({type:"error",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n="Successfully paid";return e&&(n+=" with ".concat(e)),this.log.success=!0,this.log.history.push({type:"success",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=["language","connect_account"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({"Content-Type":"application/json"},a&&{"Accept-Language":a});return (this.accessCode?fetch(new URL("transaction/verify_access_code/".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL("/checkout/request_inline",m.paystackApiUrl).toString(),{method:"POST",body:JSON.stringify(r),headers:n(n({},i),o&&{"x-connect-account":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[];}if(!e||"object"!==t(e))throw new n("Transaction parameters should be a non-empty object");var a=e;if("accessCode"in a)return {accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e];}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:"Required parameter missing: ".concat(e.value)});})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);"object"===i&&Array.isArray(n)&&(i="array"),o.types.indexOf(i)<=-1&&r.push({message:"Invalid parameter type: ".concat(e),validTypes:o.types});})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override];})),r.length)throw new n("Invalid transaction parameters",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W);}return r(e,[{key:"onSetupError",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e);}},{key:"onLoad",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl="".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a});}},{key:"onSuccess",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e);}},{key:"setStatus",value:function(e){this.status=e;}},{key:"onCancel",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose();}},{key:"cancel",value:function(){this.isActive=!1,this.onCancel();}},{key:"onBankTransferConfirmationPending",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending();}},{key:"logError",value:function(e){this.errors.push(e);}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('"'.concat(e,'" has been deprecated, please use "').concat(n,'". ').concat(t||""));}var G,Y=["preload","inlineTransaction"],X=["container","styles","onElementsMount"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||"abandoned"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join("")===Object.keys(a).sort().join(""),r=Object.values(t).sort().join("")===Object.values(a).sort().join(""),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:"inline:url",path:"newTransaction",params:t},"*");}var ne="trackCheckoutClosed",te="trackPaymentError",ae="trackPaymentAttempt",oe="trackPaymentCompletion";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re("A container is required to mount the payment request button"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_("inline-background-".concat(e));n.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n background: rgba(0, 0, 0, 0.75); \n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.3s;\n -webkit-transition: opacity 0.3s;\n visibility: hidden;\n display: none;\n",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\n \n \n\n \n \n \n \n Paystack Popup Loader\n \n \n\n \n
\n
\n
\n
\n
\n
\n \n\n \n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_("inline-checkout-".concat(t))).src="".concat(m.checkoutUrl,"popup"),o.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n visibility: hidden;\n display: none;\n height: 100%;\n",o.setAttribute("allowpaymentrequest","true"),o.setAttribute("allow","payment; clipboard-read; clipboard-write"),document.body.appendChild(o),o),this.registerListeners();}return r(e,[{key:"registerListeners",value:function(){var e=this;window.addEventListener("message",(function(n){var t="".concat(n.origin,"/")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n);}));}},{key:"sendAnalyticsEventToCheckout",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:"analytics",action:e,params:n},"*");}},{key:"checkout",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\/[\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes("apple_pay")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:"100%",type:"pay",height:"42px",padding:"15px",borderRadius:"5px"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(".pre-checkout-modal__content");t.classList.add("show"),setTimeout((function(){a.classList.add("show"),e(!0);}),50);}catch(e){n(e);}})),e(n);})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n);}))):(G.newTransaction({inlineTransaction:n}),e(n));})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e);}));}))}},{key:"registerPreCheckoutModalEventListeners",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener("touchstart",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1;}),125));}),!0),document.addEventListener("touchend",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1;}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn();},this.preCheckoutModal.querySelector("#apple-pay-close-button").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction();};}},{key:"closePreCheckoutModal",value:function(e){var n;this.preCheckoutModal&&("failed"===e?(n=this.preCheckoutModal)&&(n.querySelector("#apple-pay-mark--light").innerHTML='\n \n \n \n \n \n \n \n',n.querySelector("#apple-pay-description").textContent="An error occurred while paying with Apple Pay. Please try again or use another payment method."):(!function(e){e&&(e.querySelector(".pre-checkout-modal__content").classList.remove("show"),e.classList.remove("show"));}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null));}},{key:"closePreCheckoutModalAndCancelTransaction",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage("close","*"),this.closePreCheckoutModal());}},{key:"newTransaction",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:"preloadTransaction",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:"paymentRequest",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector("#".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re("A container is required to mount the payment request button"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e);})).catch((function(){a&&a(null);})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e;}r(l);}));})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e);}));}else {if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p;}else K("This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'");a&&a(null);var u=G.activeTransaction();r(u);}}))}},{key:"registerApplePayEventListener",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()};}},{key:"registerPaymentRequestEventListeners",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer);}},{key:"startApplePay",value:function(){var e,t,a,o,r,i=this,c="apple pay",s=this.activeTransaction();if(s){var l={channel:"apple_pay",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:"apple_pay",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:"NG",currencyCode:t,merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:["visa","masterCard"],requiredBillingContactFields:["postalAddress","name","phone","email"],total:{label:"".concat(o," - Paystack"),type:"final",amount:String(x(a))}},"string"==typeof r&&""!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c="".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){"success"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message);})).catch((function(e){s.onSetupError(e);}));},d.oncancel=function(){G.preCheckoutModal||s.onCancel();},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o="".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),"success"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Transaction attempt failed"})),G.closePreCheckoutModal(e.status);})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Error occurred"}),G.closePreCheckoutModal("failed");}));},d.begin();}catch(e){s.onSetupError(e);}}else re("Could not initiate apple pay transaction");}},{key:"resumeTransaction",value:function(e){return this.newTransaction({accessCode:e})}},{key:"activeTransaction",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:"cancelTransaction",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close());}},{key:"respondToEvent",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case"loaded:checkout":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case"loaded:transaction":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById("app-loader").style.display="none"),a.onLoad(i);break;case"error":"setup"===i.type?a.onSetupError(i):a.logError(i);break;case"cancel":case"close":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case"transfer:pending":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case"success":this.close(),a.onSuccess(i);}}catch(e){}}}},{key:"respondToEmbedEvents",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&("string"==typeof o||o instanceof String)){var r={action:t=(n=o)&&"string"==typeof n?n.split(" ")[0]:null,data:t?n.split(" ").slice(2).join(" "):null};if(r&&"PaystackClose"===r.action)r.data&&a.onSuccess(o);"PaystackTLSClose"===r.action&&a.cancel();}}},{key:"animateCheckoutIn",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t("No dom element provided");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t("No dom element provided"),a.style.display="",a.style.visibility="visible",o.style.display="",o.style.visibility="visible",n();}))).then((function(){n.checkoutIframe.contentWindow.postMessage("render","*");})),this.isOpen=!0;}}},{key:"open",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn());}},{key:"close",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t("No dom element provided");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t("No dom element provided"),o.style.opacity=0,a.style.display="none",a.style.visibility="hidden",setTimeout((function(){o.style.display="none",o.style.visibility="hidden",o.style.opacity=1,e();}),300);}))).then((function(){e.checkoutIframe.contentWindow.postMessage("close","*");})),this.isOpen=!1;}}},{key:"isLoaded",value:function(){return this.isLoaded}}],[{key:"setup",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q("PaystackPop.setup()","new PaystackPop()","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline");var a=G.newTransaction(n,"deprecated"),o=a.urlParameters;if(t){var r="".concat(m.siteUrl,"/assets/payment/production/inline.html?").concat(y(o)),i=function(e,n){var t=_("embed-checkout-".concat(e));return t.style.cssText="\n background: transparent;\n background: rgba(0,0,0,0);\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n nmargin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n visibility: hidden;\n display: none;\n",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML="",t.removeAttribute("style"),t.className="paystack-embed-container",t.style.position="relative",t.style.width="100%",t.appendChild(n);}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage("PaystackOpen ".concat(G.id),"*"),e=i,new Promise((function(n,t){e||t("No dom element provided"),e.style.display="",e.style.visibility="visible",n();}));};}else a.openIframe=function(){Q("openIframe","open","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline"),G.open(o);};return a}}]),e}();if(ie=g().length>0,ce=f()&&"FORM"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split("data-")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a;})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error("Please make sure the buttonId is an element available in the DOM");var t=n({},e);t.buttonText=e.buttonText||"Pay",t.buttonVariant="normal",t.buttonWordmarkVariant="normal";var a=["normal","light"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute("data-inline-id",e.id);else {var t=document.createElement("div");t.id="inline-button-".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\n \n \n ',light:b};return "\n \n \n
\n ').concat(a[e.wordmarkVariant||"normal"],"\n
\n ")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName("button"),1)[0];}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener("click",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:"hidden",name:"reference",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement("input")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit();}}));}));} -/* eslint-disable */ var callPaystackPop = function (paystackArgs) { - // @ts-ignore - var handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs); - handler && handler.openIframe(); + var paystack = new se(); + paystack.newTransaction(paystackArgs); }; function usePaystackPayment(hookConfig) { - var _a = usePaystackScript(), scriptLoaded = _a[0], scriptError = _a[1]; function initializePayment(_a) { var config = _a.config, onSuccess = _a.onSuccess, onClose = _a.onClose; - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } var args = __assign(__assign({}, hookConfig), config); - var publicKey = args.publicKey, firstname = args.firstname, lastname = args.lastname, phone = args.phone, email = args.email, amount = args.amount, reference = args.reference, _b = args.metadata, metadata = _b === void 0 ? {} : _b, _c = args.currency, currency = _c === void 0 ? 'NGN' : _c, channels = args.channels, _d = args.label, label = _d === void 0 ? '' : _d, _e = args.plan, plan = _e === void 0 ? '' : _e, _f = args.quantity, quantity = _f === void 0 ? '' : _f, _g = args.subaccount, subaccount = _g === void 0 ? '' : _g, _h = args.transaction_charge, transaction_charge = _h === void 0 ? 0 : _h, _j = args.bearer, bearer = _j === void 0 ? 'account' : _j, split = args.split, split_code = args.split_code, connect_account = args.connect_account, connect_split = args.connect_split; - if (scriptLoaded) { - var paystackArgs = { - callback: onSuccess ? onSuccess : function () { return null; }, - onClose: onClose ? onClose : function () { return null; }, - key: publicKey, - ref: reference, - email: email, - firstname: firstname, - lastname: lastname, - phone: phone, - amount: amount, - currency: currency, - plan: plan, - quantity: quantity, - channels: channels, - subaccount: subaccount, - transaction_charge: transaction_charge, - bearer: bearer, - label: label, - metadata: metadata, - split: split, - split_code: split_code, - connect_split: connect_split, - connect_account: connect_account, - 'data-custom-button': args['data-custom-button'] || '', - }; - callPaystackPop(paystackArgs); - } + var publicKey = args.publicKey, firstname = args.firstname, lastname = args.lastname, phone = args.phone, email = args.email, amount = args.amount, reference = args.reference, metadata = args.metadata, _b = args.currency, currency = _b === void 0 ? 'NGN' : _b, channels = args.channels, label = args.label, plan = args.plan, quantity = args.quantity, subaccount = args.subaccount, transaction_charge = args.transaction_charge, bearer = args.bearer, split = args.split, split_code = args.split_code, connect_account = args.connect_account, connect_split = args.connect_split, onBankTransferConfirmationPending = args.onBankTransferConfirmationPending; + var paystackArgs = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ onSuccess: onSuccess ? onSuccess : function () { return null; }, onCancel: onClose ? onClose : function () { return null; }, key: publicKey, email: email, amount: amount }, (firstname && { firstname: firstname })), (lastname && { lastname: lastname })), (phone && { phone: phone })), (reference && { ref: reference })), (currency && { currency: currency })), (channels && { channels: channels })), (metadata && { metadata: metadata })), (label && { label: label })), (onBankTransferConfirmationPending && { onBankTransferConfirmationPending: onBankTransferConfirmationPending })), (subaccount && { subaccount: subaccount })), (transaction_charge && { transaction_charge: transaction_charge })), (bearer && { bearer: bearer })), (split && { split: split })), (split_code && { split_code: split_code })), (plan && { plan: plan })), (quantity && { quantity: quantity })), (connect_split && { connect_split: connect_split })), (connect_account && { connect_account: connect_account })); + callPaystackPop(paystackArgs); } - React.useEffect(function () { - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - }, [scriptError]); return initializePayment; } diff --git a/dist/index.js.map b/dist/index.js.map index b5e2b89..3318bbc 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../libs/paystack-script.ts","../libs/paystack-actions.ts","../libs/use-paystack.ts","../libs/paystack-button.tsx","../libs/paystack-context.ts","../libs/paystack-provider.tsx","../libs/paystack-consumer.tsx"],"sourcesContent":["import {useState, useEffect} from 'react';\n\nconst cachedScripts: string[] = [];\ninterface IScriptResult {\n loaded: boolean;\n error: boolean;\n}\n\nexport default function usePaystackScript(): boolean[] {\n const src = 'https://js.paystack.co/v1/inline.js';\n\n const [state, setState] = useState({\n loaded: false,\n error: false,\n });\n\n useEffect((): any => {\n if (cachedScripts.includes(src)) {\n setState({\n loaded: true,\n error: false,\n });\n } else {\n cachedScripts.push(src);\n\n const script = document.createElement('script');\n script.src = src;\n script.async = true;\n\n const onScriptLoad = (): void => {\n setState({\n loaded: true,\n error: false,\n });\n };\n\n const onScriptError = (): void => {\n const index = cachedScripts.indexOf(src);\n if (index >= 0) cachedScripts.splice(index, 1);\n script.remove();\n\n setState({\n loaded: true,\n error: true,\n });\n };\n\n script.addEventListener('load', onScriptLoad);\n script.addEventListener('complete', onScriptLoad);\n script.addEventListener('error', onScriptError);\n\n document.body.appendChild(script);\n\n return (): void => {\n script.removeEventListener('load', onScriptLoad);\n script.removeEventListener('error', onScriptError);\n };\n }\n }, [src]);\n\n return [state.loaded, state.error];\n}\n","/* eslint-disable */\nexport let callPaystackPop = (paystackArgs: Record): void => {\n // @ts-ignore\n const handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs);\n handler && handler.openIframe();\n};\n","import {useEffect} from 'react';\nimport {HookConfig, InitializePayment} from './types';\nimport usePaystackScript from './paystack-script';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: HookConfig): InitializePayment {\n const [scriptLoaded, scriptError] = usePaystackScript();\n\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata = {},\n currency = 'NGN',\n channels,\n label = '',\n plan = '',\n quantity = '',\n subaccount = '',\n transaction_charge = 0,\n bearer = 'account',\n split,\n split_code,\n connect_account,\n connect_split,\n } = args;\n\n if (scriptLoaded) {\n const paystackArgs: Record = {\n callback: onSuccess ? onSuccess : () => null,\n onClose: onClose ? onClose : () => null,\n key: publicKey,\n ref: reference,\n email,\n firstname,\n lastname,\n phone,\n amount,\n currency,\n plan,\n quantity,\n channels,\n subaccount,\n transaction_charge,\n bearer,\n label,\n metadata,\n split,\n split_code,\n connect_split,\n connect_account,\n 'data-custom-button': args['data-custom-button'] || '',\n };\n callPaystackPop(paystackArgs);\n }\n }\n\n useEffect(() => {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n }, [scriptError]);\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose : (): any => null;\n return (\n \n {children}\n \n );\n },\n);\n\nexport default PaystackConsumer;\n"],"names":["useState","useEffect","createContext","useContext","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,aAAa,GAAa,EAAE,CAAC;AAMrB,SAAU,iBAAiB,GAAA;IACvC,IAAM,GAAG,GAAG,qCAAqC,CAAC;IAE5C,IAAA,EAAA,GAAoBA,cAAQ,CAAgB;AAChD,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,KAAK,EAAE,KAAK;AACb,KAAA,CAAC,EAHK,KAAK,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,QAAQ,QAGpB,CAAC;AAEH,IAAAC,eAAS,CAAC,YAAA;AACR,QAAA,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC/B,YAAA,QAAQ,CAAC;AACP,gBAAA,MAAM,EAAE,IAAI;AACZ,gBAAA,KAAK,EAAE,KAAK;AACb,aAAA,CAAC,CAAC;SACJ;aAAM;AACL,YAAA,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAExB,IAAM,QAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChD,YAAA,QAAM,CAAC,GAAG,GAAG,GAAG,CAAC;AACjB,YAAA,QAAM,CAAC,KAAK,GAAG,IAAI,CAAC;AAEpB,YAAA,IAAM,cAA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AiB,EAAE,yBAAyB,EAAE,GAAG,EAAA,GAAA,EAAC,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF;AACA,IAAM,gBAAgB,GAAGC,gBAAU,CACjC,UACE,EAAwF,EACxF,GAAQ,EAAA;AADP,IAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAa,WAAW,GAAA,EAAA,CAAA,SAAA,EAAW,SAAS,GAAA,EAAA,CAAA,OAAA,EAAK,MAAM,GAAhE,MAAA,CAAA,EAAA,EAAA,CAAA,UAAA,EAAA,WAAA,EAAA,SAAA,CAAiE,CAAD,CAAA;AAGhE,IAAA,IAAM,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AAC9D,IAAA,IAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;;;"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../node_modules/@paystack/inline-js/es/inline.js","../libs/paystack-actions.ts","../libs/use-paystack.ts","../libs/paystack-button.tsx","../libs/paystack-context.ts","../libs/paystack-provider.tsx","../libs/paystack-consumer.tsx"],"sourcesContent":["function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function p(e,n){if(e){if(\"string\"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===t&&e.constructor&&(t=e.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(e):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}))}return e}var b='\\n \\n \\n \\n';var k={height:\"50px\",width:\"auto\",borderRadius:\"3px\",padding:\"10px\",locale:\"en\",type:\"pay\"},w=function(e){return e&&\"object\"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:\"application/json, text/plain, */*\",\"accept-language\":\"en-GB,en-US;q=0.9,en;q=0.8\",\"content-type\":\"application/x-www-form-urlencoded\",\"sec-ch-ua-mobile\":\"?0\",\"sec-fetch-dest\":\"empty\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"cross-site\"},referrerPolicy:\"no-referrer-when-downgrade\",method:\"POST\",mode:\"cors\",credentials:\"omit\"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r=\"\".concat(a,\"=\").concat(o);return[].concat(l(n),[r])}),[]).join(\"&\")}var L=function(e){return{biannually:\"BIANNUAL PLAN\",annually:\"ANNUAL PLAN\"}[e]||\"\".concat(e.toUpperCase(),\" PLAN\")},V=function(){try{return window.location&&\"https:\"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return!1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes(\"apple_pay\")};function _(e){var n=document.createElement(\"iframe\");return n.setAttribute(\"frameBorder\",\"0\"),n.setAttribute(\"allowtransparency\",\"true\"),n.id=e,n.style.display=\"none\",n}function E(e){return e.querySelector(\"apple-pay-button\")||e.querySelector(\"#apple-pay-button\")}function q(e){return document.querySelector(\"#\".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a(\"No script url\");var o=document.createElement(\"script\");o.src=e,o.addEventListener(\"load\",(function(){t(!0)})),o.addEventListener(\"error\",(function(){o.remove(),a(!1)})),n?n.appendChild(o):document.head.appendChild(o)}))})(\"https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js\",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error(\"Incorrect data type for 'webpackJsonp', expected array, got \".concat(t(window.webpackJsonp),\". Switching to fallback apple pay button\"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return\"\\n apple-pay-button {\\n --apple-pay-button-width: \".concat(t,\";\\n --apple-pay-button-height: \").concat(n,\";\\n --apple-pay-button-border-radius: \").concat(a,\";\\n --apple-pay-button-padding: \").concat(o,\";\\n --apple-pay-button-box-sizing: border-box;\\n width: \").concat(t,\";\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"apple-pay-button\");i.setAttribute(\"buttonstyle\",\"light\"===a?\"white\":\"black\"),i.setAttribute(\"type\",t.type),i.setAttribute(\"locale\",t.locale),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return\"\\n @supports (-webkit-appearance: -apple-pay-button) { \\n .apple-pay-button {\\n display: inline-block;\\n -webkit-appearance: -apple-pay-button;\\n width: \".concat(t,\";\\n height: \").concat(n,\";\\n border-radius: \").concat(a,\";\\n padding: \").concat(o,\";\\n -apple-pay-button-type: \").concat(r,\";\\n -webkit-locale: \").concat(i,\";\\n }\\n .apple-pay-button-black {\\n -apple-pay-button-style: black;\\n }\\n .apple-pay-button-white {\\n -apple-pay-button-style: white;\\n }\\n .apple-pay-button-white-with-line {\\n -apple-pay-button-style: white-outline;\\n }\\n }\\n\\n @supports not (-webkit-appearance: -apple-pay-button) {\\n .apple-pay-button {\\n display: inline-block;\\n background-size: 100% 60%;\\n background-repeat: no-repeat;\\n background-position: 50% 50%;\\n border-radius: 5px;\\n padding: 0px;\\n box-sizing: border-box;\\n min-width: 200px;\\n min-height: 32px;\\n max-height: 64px;\\n }\\n .apple-pay-button-black {\\n background-image: -webkit-named-image(apple-pay-logo-white);\\n background-color: black;\\n }\\n .apple-pay-button-white {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n }\\n .apple-pay-button-white-with-line {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n border: .5px solid black;\\n }\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"button\");i.classList.add(\"apple-pay-button\",\"light\"===a?\"apple-pay-button-white\":\"apple-pay-button-black\"),i.id=\"apple-pay-button\";var c=document.createElement(\"span\");c.classList.add(\"logo\"),i.appendChild(c),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)}))}else o(\"No wallet payment method is available on this device\");else o(\"Container to mount elements was not provided\")}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function I(e){return e.querySelector(\"#paystackpop-button\")}function z(e){return e.querySelector(\"#payment-request-button\")}function O(e,n){var t=document.querySelector(\"#pre-checkout-modal-\".concat(e));if(t){if(I(t)&&z(t))return t;t.remove()}var a,o=document.createElement(\"div\");o.classList.add(\"pre-checkout-modal\"),o.id=\"pre-checkout-modal-\".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll(\"body *\")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t)})),a+1);var r=document.createElement(\"div\");r.classList.add(\"pre-checkout-modal__content\"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement(\"div\"),C=new Intl.NumberFormat(\"en\",{style:\"currency\",currency:u,currencyDisplay:\"code\",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add(\"payment-info\"),h.innerHTML='\"').concat(s,'\\n
\\n
').concat(d||l,'
\\n
Pay ').concat(C,\"
\\n
\"),r.appendChild(h),r.innerHTML+='\\n \\n';var m=document.createElement(\"div\");m.classList.add(\"modal-wrapper\"),m.innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n';var y=document.createElement(\"p\");y.id=\"apple-pay-description\",y.innerHTML=\"Pay with Apple Pay to complete your purchase without filling a form\",m.appendChild(y);var f=document.createElement(\"div\");f.id=\"payment-request-button\",m.appendChild(f);var v=document.createElement(\"button\");v.id=\"paystackpop-button\",v.innerText=\"More payment options\",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\\n\\n\\n\\n',r.appendChild(m);var g=document.createElement(\"style\");return g.textContent='\\n .pre-checkout-modal {\\n display: none;\\n position: fixed;\\n z-index: 1;\\n left: 0;\\n top: 0;\\n width: 100vw;\\n height: 100%;\\n overflow: auto;\\n background-color: rgba(0, 0, 0, 0.75);\\n transition: all 0.2s ease;\\n }\\n\\n .pre-checkout-modal.show {\\n display: block;\\n }\\n\\n .pre-checkout-modal__content {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n margin-left: auto;\\n margin-right: auto;\\n background-color: #fefefe;\\n padding: 30px 24px;\\n padding-bottom: max(30px, env(safe-area-inset-bottom));\\n width: 100%;\\n border-radius: 6px 6px 0 0;\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n max-width: 450px;\\n\\n box-sizing: border-box;\\n transform: translateY(238px);\\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\\n }\\n\\n .modal-wrapper {\\n padding: 0 16px;\\n }\\n\\n .payment-info {\\n position: relative;\\n padding-bottom: 15px;\\n border-bottom: solid 1px whitesmoke;\\n display: flex;\\n align-items: flex-start;\\n justify-content: space-between;\\n width: 100%;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n .customer-email {\\n color: #737373;\\n font-size: 13px;\\n line-height: 16px;\\n }\\n\\n .customer-info {\\n flex: 1;\\n text-align: right;\\n }\\n\\n .merchant-logo {\\n display: flex;\\n align-items: center;\\n height: 30px;\\n }\\n .transaction-amount {\\n margin-top: 5px;\\n font-size: 13px;\\n line-height: 16px;\\n color: #737373;\\n }\\n\\n .amount {\\n color: #29b263;\\n font-weight: bold;\\n }\\n\\n @media only screen and (min-width: 500px) {\\n .pre-checkout-modal__content {\\n bottom: 0;\\n top: 0;\\n margin: auto;\\n border-radius: 6px;\\n height: fit-content;\\n }\\n }\\n\\n .pre-checkout-modal__content.show {\\n transform: translateY(0);\\n margin: 0 auto;\\n margin-top: 100px;\\n }\\n\\n .pre-checkout-modal__content > * {\\n margin-top: 0;\\n margin-bottom: 40px;\\n }\\n .pre-checkout-modal__content > *:last-child {\\n margin-bottom: 0;\\n }\\n\\n .pre-checkout-modal__content svg {\\n margin: auto;\\n width: 100%;\\n }\\n\\n #inline-button-wordmark--white {\\n position: absolute;\\n bottom: -50px;\\n margin: auto;\\n right: 0;\\n width: fit-content;\\n }\\n\\n #inline-button-wordmark--grey {\\n display: none;\\n }\\n\\n .pre-checkout-modal__content #apple-pay-mark--light {\\n margin-bottom: 16px;\\n }\\n\\n .pre-checkout-modal p {\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n color: #4E4E4E;\\n line-height: 28px;\\n font-size: 14px;\\n font-weight: 500;\\n margin: 0;\\n padding: 0 20px;\\n text-align: center;\\n letter-spacing: -0.3px;\\n }\\n\\n .pre-checkout-modal button {\\n height: 42px;\\n width: 100%;\\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\\n border: 1px solid #49a861;\\n box-sizing: border-box;\\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\\n color: #ffffff;\\n font-weight: 600;\\n font-size: 14px;\\n line-height: 14px;\\n cursor: pointer;\\n\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n #payment-request-button {\\n width: 100%;\\n height: fit-content;\\n margin: 24px 0 16px 0;\\n }\\n\\n #paystackpop-button {\\n padding: 0 16px;\\n }\\n\\n #apple-pay-close-button {\\n position: absolute;\\n text-align: center;\\n top: 0;\\n right: -26px;\\n height: 16px;\\n width: 16px;\\n padding: 0;\\n display: inline-block;\\n z-index: 3;\\n border-radius: 50%;\\n background: transparent;\\n transition: all 300ms;\\n outline: none;\\n cursor: pointer;\\n border: none;\\n }\\n\\n #apple-pay-close-button svg {\\n width: initial;\\n }\\n \\n #apple-pay-close-button:hover {\\n background-color: #e22b28;\\n }\\n\\n @media only screen and (max-width: 500px) {\\n .pre-checkout-modal__content {\\n max-width: 500px;\\n border-radius: 0;\\n padding-bottom: 0;\\n }\\n\\n .modal-wrapper {\\n padding: 0;\\n }\\n\\n #inline-button-wordmark--white {\\n display: none\\n }\\n \\n #inline-button-wordmark--grey {\\n display: block;\\n width: 100%;\\n margin: 16px 0;\\n height: 13px;\\n }\\n\\n #apple-pay-close-button {\\n display: none;\\n }\\n }\\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:\"key\",required:!0,types:[\"string\"]},{value:\"amount\",required:!0,or:[\"plan\",\"planCode\"],types:[\"string\",\"number\"]},{value:\"currency\",required:!1,types:[\"string\"]},{value:\"email\",required:!0,or:[\"customerCode\"],types:[\"string\"]},{value:\"label\",required:!1,types:[\"string\"]},{value:\"firstName\",required:!1,types:[\"string\"]},{value:\"lastName\",required:!1,types:[\"string\"]},{value:\"reference\",required:!1,types:[\"string\"]},{value:\"phone\",required:!1,types:[\"string\"]},{value:\"customerCode\",required:!1,override:\"email\",types:[\"string\"]},{value:\"channels\",required:!1,types:[\"array\"]},{value:\"paymentRequest\",required:!1,types:[\"string\",\"number\"]},{value:\"paymentPage\",required:!1,types:[\"string\"]},{value:\"hash\",required:!1,types:[\"string\"]},{value:\"container\",required:!1,types:[\"string\"]},{value:\"metadata\",required:!1,types:[\"object\"]},{value:\"subaccountCode\",required:!1,types:[\"string\"]},{value:\"bearer\",required:!1,types:[\"string\"]},{value:\"transactionCharge\",required:!1,types:[\"string\",\"number\"]},{value:\"planCode\",required:!1,override:\"amount\",types:[\"string\"]},{value:\"subscriptionCount\",required:!1,types:[\"number\"]},{value:\"planInterval\",required:!1,types:[\"string\"]},{value:\"subscriptionLimit\",required:!1,types:[\"number\"]},{value:\"subscriptionStartDate\",required:!1,types:[\"string\"]},{value:\"accessCode\",required:!1,types:[\"string\"]},{value:\"onError\",required:!1,types:[\"function\"]},{value:\"onLoad\",required:!1,types:[\"function\"]},{value:\"onSuccess\",required:!1,types:[\"function\"]},{value:\"onCancel\",required:!1,types:[\"function\"]},{value:\"callback\",required:!1,types:[\"function\"]},{value:\"onClose\",required:!1,types:[\"function\"]},{value:\"onBankTransferConfirmationPending\",required:!1,types:[\"function\"]},{value:\"firstname\",required:!1,types:[\"string\"]},{value:\"lastname\",required:!1,types:[\"string\"]},{value:\"customer_code\",required:!1,types:[\"string\"]},{value:\"payment_request\",required:!1,types:[\"string\",\"number\"]},{value:\"subaccount\",required:!1,types:[\"string\"]},{value:\"transaction_charge\",required:!1,types:[\"number\",\"string\"]},{value:\"plan\",required:!1,types:[\"string\"]},{value:\"quantity\",required:!1,types:[\"number\"]},{value:\"interval\",required:!1,types:[\"string\"]},{value:\"invoice_limit\",required:!1,types:[\"number\",\"string\"]},{value:\"start_date\",required:!1,types:[\"string\"]},{value:\"payment_page\",required:!1,types:[\"number\",\"string\"]},{value:\"order_id\",required:!1,types:[\"number\"]},{value:\"ref\",required:!1,types:[\"string\"]},{value:\"card\",required:!1,types:[\"string\"]},{value:\"bank\",required:!1,types:[\"string\"]},{value:\"split\",required:!1,types:[\"object\"]},{value:\"split_code\",required:!1,types:[\"string\"]},{value:\"transaction_type\",required:!1,types:[\"string\"]},{value:\"subscription\",required:!1,types:[\"number\"]},{value:\"language\",required:!1,types:[\"string\"]},{value:\"connect_account\",required:!1,types:[\"string\"]},{value:\"connect_split\",required:!1,types:[\"object\"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split(\"?\")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode=\"popup\",e.split&&\"string\"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&[\"false\",!1].indexOf(a.card)>-1&&(a.channels=[\"bank\"],delete a.card),void 0!==a.bank&&[\"false\",!1].indexOf(a.bank)>-1&&(a.channels=[\"card\"],delete a.bank),[{to:\"firstname\",from:\"firstName\"},{to:\"lastname\",from:\"lastName\"},{to:\"customer_code\",from:\"customerCode\"},{to:\"payment_request\",from:\"paymentRequest\"},{to:\"subaccount\",from:\"subaccountCode\"},{to:\"transaction_charge\",from:\"transactionCharge\"},{to:\"plan\",from:\"planCode\"},{to:\"quantity\",from:\"subscriptionCount\"},{to:\"interval\",from:\"planInterval\"},{to:\"invoice_limit\",from:\"subscriptionLimit\"},{to:\"start_date\",from:\"subscriptionStartDate\"},{to:\"ref\",from:\"reference\"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from])})),Object.values(e).forEach((function(n,t){if(\"function\"==typeof n){var o=Object.keys(e)[t];delete a[o]}})),a}var U=[\"iPad Simulator\",\"iPhone Simulator\",\"iPod Simulator\",\"iPad\",\"iPhone\",\"iPod\"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes(\"Mac\")&&\"ontouchend\"in document},B=function(e,n,t){var a=\"\".concat(m.paystackApiUrl,\"transaction/update_log/\").concat(e),o={Authorization:\"Bearer \".concat(n)};return fetch(a,{method:\"POST\",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t=\"\".concat(m.paystackApiUrl,\"transaction/set_ip/\").concat(e),a={Authorization:\"Bearer \".concat(n)};return fetch(t,{method:\"POST\",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]}},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case\"success\":return this.logApiSuccess(n);case\"failed\":return this.logApiError(e.message);default:return!1}},logValidationResponse:function(e){return this.log.history.push({type:\"action\",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n=\"Attempted to pay\";return e&&(n+=\" with \".concat(e)),this.log.attempts+=1,this.log.history.push({type:\"action\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n=\"Error\";return e&&(n+=\": \".concat(e)),this.log.errors+=1,this.log.history.push({type:\"error\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n=\"Successfully paid\";return e&&(n+=\" with \".concat(e)),this.log.success=!0,this.log.history.push({type:\"success\",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=[\"language\",\"connect_account\"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({\"Content-Type\":\"application/json\"},a&&{\"Accept-Language\":a});return(this.accessCode?fetch(new URL(\"transaction/verify_access_code/\".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL(\"/checkout/request_inline\",m.paystackApiUrl).toString(),{method:\"POST\",body:JSON.stringify(r),headers:n(n({},i),o&&{\"x-connect-account\":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[]}if(!e||\"object\"!==t(e))throw new n(\"Transaction parameters should be a non-empty object\");var a=e;if(\"accessCode\"in a)return{accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e]}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:\"Required parameter missing: \".concat(e.value)})})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);\"object\"===i&&Array.isArray(n)&&(i=\"array\"),o.types.indexOf(i)<=-1&&r.push({message:\"Invalid parameter type: \".concat(e),validTypes:o.types})})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override]})),r.length)throw new n(\"Invalid transaction parameters\",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W)}return r(e,[{key:\"onSetupError\",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e)}},{key:\"onLoad\",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl=\"\".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a})}},{key:\"onSuccess\",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e)}},{key:\"setStatus\",value:function(e){this.status=e}},{key:\"onCancel\",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose()}},{key:\"cancel\",value:function(){this.isActive=!1,this.onCancel()}},{key:\"onBankTransferConfirmationPending\",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending()}},{key:\"logError\",value:function(e){this.errors.push(e)}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('\"'.concat(e,'\" has been deprecated, please use \"').concat(n,'\". ').concat(t||\"\"))}var G,Y=[\"preload\",\"inlineTransaction\"],X=[\"container\",\"styles\",\"onElementsMount\"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||\"abandoned\"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join(\"\")===Object.keys(a).sort().join(\"\"),r=Object.values(t).sort().join(\"\")===Object.values(a).sort().join(\"\"),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:\"inline:url\",path:\"newTransaction\",params:t},\"*\")}var ne=\"trackCheckoutClosed\",te=\"trackPaymentError\",ae=\"trackPaymentAttempt\",oe=\"trackPaymentCompletion\";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e=\"\",n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re(\"A container is required to mount the payment request button\"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_(\"inline-background-\".concat(e));n.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n background: rgba(0, 0, 0, 0.75); \\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n transition: opacity 0.3s;\\n -webkit-transition: opacity 0.3s;\\n visibility: hidden;\\n display: none;\\n\",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\\n \\n \\n\\n \\n \\n \\n \\n Paystack Popup Loader\\n \\n \\n\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n\\n \\n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_(\"inline-checkout-\".concat(t))).src=\"\".concat(m.checkoutUrl,\"popup\"),o.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n visibility: hidden;\\n display: none;\\n height: 100%;\\n\",o.setAttribute(\"allowpaymentrequest\",\"true\"),o.setAttribute(\"allow\",\"payment; clipboard-read; clipboard-write\"),document.body.appendChild(o),o),this.registerListeners()}return r(e,[{key:\"registerListeners\",value:function(){var e=this;window.addEventListener(\"message\",(function(n){var t=\"\".concat(n.origin,\"/\")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n)}))}},{key:\"sendAnalyticsEventToCheckout\",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:\"analytics\",action:e,params:n},\"*\")}},{key:\"checkout\",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\\/[\\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes(\"apple_pay\")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:\"100%\",type:\"pay\",height:\"42px\",padding:\"15px\",borderRadius:\"5px\"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(\".pre-checkout-modal__content\");t.classList.add(\"show\"),setTimeout((function(){a.classList.add(\"show\"),e(!0)}),50)}catch(e){n(e)}})),e(n)})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n)}))):(G.newTransaction({inlineTransaction:n}),e(n))})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e)}))}))}},{key:\"registerPreCheckoutModalEventListeners\",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener(\"touchstart\",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1}),125))}),!0),document.addEventListener(\"touchend\",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn()},this.preCheckoutModal.querySelector(\"#apple-pay-close-button\").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction()}}},{key:\"closePreCheckoutModal\",value:function(e){var n;this.preCheckoutModal&&(\"failed\"===e?(n=this.preCheckoutModal)&&(n.querySelector(\"#apple-pay-mark--light\").innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n',n.querySelector(\"#apple-pay-description\").textContent=\"An error occurred while paying with Apple Pay. Please try again or use another payment method.\"):(!function(e){e&&(e.querySelector(\".pre-checkout-modal__content\").classList.remove(\"show\"),e.classList.remove(\"show\"))}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null))}},{key:\"closePreCheckoutModalAndCancelTransaction\",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage(\"close\",\"*\"),this.closePreCheckoutModal())}},{key:\"newTransaction\",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:\"preloadTransaction\",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:\"paymentRequest\",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector(\"#\".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re(\"A container is required to mount the payment request button\"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e)})).catch((function(){a&&a(null)})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e}r(l)}))})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e)}))}else{if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p}else K(\"This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'\");a&&a(null);var u=G.activeTransaction();r(u)}}))}},{key:\"registerApplePayEventListener\",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()}}},{key:\"registerPaymentRequestEventListeners\",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer)}},{key:\"startApplePay\",value:function(){var e,t,a,o,r,i=this,c=\"apple pay\",s=this.activeTransaction();if(s){var l={channel:\"apple_pay\",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:\"apple_pay\",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:\"NG\",currencyCode:t,merchantCapabilities:[\"supports3DS\",\"supportsCredit\",\"supportsDebit\"],supportedNetworks:[\"visa\",\"masterCard\"],requiredBillingContactFields:[\"postalAddress\",\"name\",\"phone\",\"email\"],total:{label:\"\".concat(o,\" - Paystack\"),type:\"final\",amount:String(x(a))}},\"string\"==typeof r&&\"\"!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c=\"\".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){\"success\"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message)})).catch((function(e){s.onSetupError(e)}))},d.oncancel=function(){G.preCheckoutModal||s.onCancel()},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o=\"\".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),\"success\"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Transaction attempt failed\"})),G.closePreCheckoutModal(e.status)})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Error occurred\"}),G.closePreCheckoutModal(\"failed\")}))},d.begin()}catch(e){s.onSetupError(e)}}else re(\"Could not initiate apple pay transaction\")}},{key:\"resumeTransaction\",value:function(e){return this.newTransaction({accessCode:e})}},{key:\"activeTransaction\",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:\"cancelTransaction\",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close())}},{key:\"respondToEvent\",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case\"loaded:checkout\":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case\"loaded:transaction\":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById(\"app-loader\").style.display=\"none\"),a.onLoad(i);break;case\"error\":\"setup\"===i.type?a.onSetupError(i):a.logError(i);break;case\"cancel\":case\"close\":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case\"transfer:pending\":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case\"success\":this.close(),a.onSuccess(i)}}catch(e){}}}},{key:\"respondToEmbedEvents\",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&(\"string\"==typeof o||o instanceof String)){var r={action:t=(n=o)&&\"string\"==typeof n?n.split(\" \")[0]:null,data:t?n.split(\" \").slice(2).join(\" \"):null};if(r&&\"PaystackClose\"===r.action)r.data&&a.onSuccess(o);\"PaystackTLSClose\"===r.action&&a.cancel()}}},{key:\"animateCheckoutIn\",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t(\"No dom element provided\");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t(\"No dom element provided\"),a.style.display=\"\",a.style.visibility=\"visible\",o.style.display=\"\",o.style.visibility=\"visible\",n()}))).then((function(){n.checkoutIframe.contentWindow.postMessage(\"render\",\"*\")})),this.isOpen=!0}}},{key:\"open\",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn())}},{key:\"close\",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t(\"No dom element provided\");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t(\"No dom element provided\"),o.style.opacity=0,a.style.display=\"none\",a.style.visibility=\"hidden\",setTimeout((function(){o.style.display=\"none\",o.style.visibility=\"hidden\",o.style.opacity=1,e()}),300)}))).then((function(){e.checkoutIframe.contentWindow.postMessage(\"close\",\"*\")})),this.isOpen=!1}}},{key:\"isLoaded\",value:function(){return this.isLoaded}}],[{key:\"setup\",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q(\"PaystackPop.setup()\",\"new PaystackPop()\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\");var a=G.newTransaction(n,\"deprecated\"),o=a.urlParameters;if(t){var r=\"\".concat(m.siteUrl,\"/assets/payment/production/inline.html?\").concat(y(o)),i=function(e,n){var t=_(\"embed-checkout-\".concat(e));return t.style.cssText=\"\\n background: transparent;\\n background: rgba(0,0,0,0);\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n nmargin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n visibility: hidden;\\n display: none;\\n\",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML=\"\",t.removeAttribute(\"style\"),t.className=\"paystack-embed-container\",t.style.position=\"relative\",t.style.width=\"100%\",t.appendChild(n)}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage(\"PaystackOpen \".concat(G.id),\"*\"),e=i,new Promise((function(n,t){e||t(\"No dom element provided\"),e.style.display=\"\",e.style.visibility=\"visible\",n()}))}}else a.openIframe=function(){Q(\"openIframe\",\"open\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\"),G.open(o)};return a}}]),e}();if(ie=g().length>0,ce=f()&&\"FORM\"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split(\"data-\")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error(\"Please make sure the buttonId is an element available in the DOM\");var t=n({},e);t.buttonText=e.buttonText||\"Pay\",t.buttonVariant=\"normal\",t.buttonWordmarkVariant=\"normal\";var a=[\"normal\",\"light\"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute(\"data-inline-id\",e.id);else{var t=document.createElement(\"div\");t.id=\"inline-button-\".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\\n \\n \\n ',light:b};return\"\\n \\n \\n
\\n ').concat(a[e.wordmarkVariant||\"normal\"],\"\\n
\\n \")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName(\"button\"),1)[0]}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener(\"click\",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:\"hidden\",name:\"reference\",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement(\"input\")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit()}}))}))}export{se as default};\n","import PaystackPop from '@paystack/inline-js';\n\nexport const callPaystackPop = (paystackArgs: Record): void => {\n const paystack = new PaystackPop();\n paystack.newTransaction(paystackArgs);\n};\n","import {HookConfig, InitializePayment} from './types';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: HookConfig): InitializePayment {\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata,\n currency = 'NGN',\n channels,\n label,\n plan,\n quantity,\n subaccount,\n transaction_charge,\n bearer,\n split,\n split_code,\n connect_account,\n connect_split,\n onBankTransferConfirmationPending,\n } = args;\n const paystackArgs: Record = {\n onSuccess: onSuccess ? onSuccess : () => null,\n onCancel: onClose ? onClose : () => null,\n key: publicKey,\n email,\n amount,\n ...(firstname && {firstname}),\n ...(lastname && {lastname}),\n ...(phone && {phone}),\n ...(reference && {ref: reference}),\n ...(currency && {currency}),\n ...(channels && {channels}),\n ...(metadata && {metadata}),\n ...(label && {label}),\n ...(onBankTransferConfirmationPending && {onBankTransferConfirmationPending}),\n ...(subaccount && {subaccount}),\n ...(transaction_charge && {transaction_charge}),\n ...(bearer && {bearer}),\n ...(split && {split}),\n ...(split_code && {split_code}),\n ...(plan && {plan}),\n ...(quantity && {quantity}),\n ...(connect_split && {connect_split}),\n ...(connect_account && {connect_account}),\n };\n\n callPaystackPop(paystackArgs);\n }\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose :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AAgB,GAAGC,gBAAU,CACjC,UACE,EAAwF,EACxF,GAAQ,EAAA;AADP,IAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAa,WAAW,GAAA,EAAA,CAAA,SAAA,EAAW,SAAS,GAAA,EAAA,CAAA,OAAA,EAAK,MAAM,GAAhE,MAAA,CAAA,EAAA,EAAA,CAAA,UAAA,EAAA,WAAA,EAAA,SAAA,CAAiE,CAAD,CAAA;AAGhE,IAAA,IAAM,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AAC9D,IAAA,IAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/paystack-actions.d.ts b/dist/paystack-actions.d.ts index 8c618f0..0fe1c23 100644 --- a/dist/paystack-actions.d.ts +++ b/dist/paystack-actions.d.ts @@ -1 +1 @@ -export declare let callPaystackPop: (paystackArgs: Record) => void; +export declare const callPaystackPop: (paystackArgs: Record) => void; diff --git a/dist/paystack-script.d.ts b/dist/paystack-script.d.ts deleted file mode 100644 index 242f723..0000000 --- a/dist/paystack-script.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function usePaystackScript(): boolean[]; diff --git a/dist/test/paystack-script.test.d.ts b/dist/test/paystack-script.test.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/test/paystack-script.test.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/types.d.ts b/dist/types.d.ts index 20ded01..11c12cf 100644 --- a/dist/types.d.ts +++ b/dist/types.d.ts @@ -35,11 +35,11 @@ export interface PaystackProps { subaccount?: string; transaction_charge?: number; bearer?: Bearer; - 'data-custom-button'?: string; split_code?: string; split?: Record; connect_split?: PaystackConnectSplit[]; connect_account?: string; + onBankTransferConfirmationPending?: callback; } export type InitializePayment = (options: { onSuccess?: callback; diff --git a/example/src/dist/index.es.js b/example/src/dist/index.es.js index 82817ea..fd01f34 100644 --- a/example/src/dist/index.es.js +++ b/example/src/dist/index.es.js @@ -1,282 +1,101 @@ -import React, {useState, useEffect, createContext, forwardRef, useContext} from 'react'; +import React, { createContext, forwardRef, useContext } from 'react'; -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise, SuppressedError, Symbol */ - -var __assign = function () { - __assign = - Object.assign || - function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; + +function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }; -function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === 'function') - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} +function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a);}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t]);}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e;}finally{try{i||null==t.return||t.return();}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}));}return e}var b='\n \n \n \n';var k={height:"50px",width:"auto",borderRadius:"3px",padding:"10px",locale:"en",type:"pay"},w=function(e){return e&&"object"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/x-www-form-urlencoded","sec-ch-ua-mobile":"?0","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site"},referrerPolicy:"no-referrer-when-downgrade",method:"POST",mode:"cors",credentials:"omit"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r="".concat(a,"=").concat(o);return [].concat(l(n),[r])}),[]).join("&")}var L=function(e){return {biannually:"BIANNUAL PLAN",annually:"ANNUAL PLAN"}[e]||"".concat(e.toUpperCase()," PLAN")},V=function(){try{return window.location&&"https:"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return !1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes("apple_pay")};function _(e){var n=document.createElement("iframe");return n.setAttribute("frameBorder","0"),n.setAttribute("allowtransparency","true"),n.id=e,n.style.display="none",n}function E(e){return e.querySelector("apple-pay-button")||e.querySelector("#apple-pay-button")}function q(e){return document.querySelector("#".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a("No script url");var o=document.createElement("script");o.src=e,o.addEventListener("load",(function(){t(!0);})),o.addEventListener("error",(function(){o.remove(),a(!1);})),n?n.appendChild(o):document.head.appendChild(o);}))})("https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error("Incorrect data type for 'webpackJsonp', expected array, got ".concat(t(window.webpackJsonp),". Switching to fallback apple pay button"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return "\n apple-pay-button {\n --apple-pay-button-width: ".concat(t,";\n --apple-pay-button-height: ").concat(n,";\n --apple-pay-button-border-radius: ").concat(a,";\n --apple-pay-button-padding: ").concat(o,";\n --apple-pay-button-box-sizing: border-box;\n width: ").concat(t,";\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("apple-pay-button");i.setAttribute("buttonstyle","light"===a?"white":"black"),i.setAttribute("type",t.type),i.setAttribute("locale",t.locale),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return "\n @supports (-webkit-appearance: -apple-pay-button) { \n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n width: ".concat(t,";\n height: ").concat(n,";\n border-radius: ").concat(a,";\n padding: ").concat(o,";\n -apple-pay-button-type: ").concat(r,";\n -webkit-locale: ").concat(i,";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("button");i.classList.add("apple-pay-button","light"===a?"apple-pay-button-white":"apple-pay-button-black"),i.id="apple-pay-button";var c=document.createElement("span");c.classList.add("logo"),i.appendChild(c),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);}));}else o("No wallet payment method is available on this device");else o("Container to mount elements was not provided");}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild);}function I(e){return e.querySelector("#paystackpop-button")}function z(e){return e.querySelector("#payment-request-button")}function O(e,n){var t=document.querySelector("#pre-checkout-modal-".concat(e));if(t){if(I(t)&&z(t))return t;t.remove();}var a,o=document.createElement("div");o.classList.add("pre-checkout-modal"),o.id="pre-checkout-modal-".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll("body *")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t);})),a+1);var r=document.createElement("div");r.classList.add("pre-checkout-modal__content"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement("div"),C=new Intl.NumberFormat("en",{style:"currency",currency:u,currencyDisplay:"code",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add("payment-info"),h.innerHTML='\n
\n
').concat(d||l,'
\n
Pay ').concat(C,"
\n
"),r.appendChild(h),r.innerHTML+='\n \n';var m=document.createElement("div");m.classList.add("modal-wrapper"),m.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n';var y=document.createElement("p");y.id="apple-pay-description",y.innerHTML="Pay with Apple Pay to complete your purchase without filling a form",m.appendChild(y);var f=document.createElement("div");f.id="payment-request-button",m.appendChild(f);var v=document.createElement("button");v.id="paystackpop-button",v.innerText="More payment options",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\n\n\n\n',r.appendChild(m);var g=document.createElement("style");return g.textContent='\n .pre-checkout-modal {\n display: none;\n position: fixed;\n z-index: 1;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.75);\n transition: all 0.2s ease;\n }\n\n .pre-checkout-modal.show {\n display: block;\n }\n\n .pre-checkout-modal__content {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n background-color: #fefefe;\n padding: 30px 24px;\n padding-bottom: max(30px, env(safe-area-inset-bottom));\n width: 100%;\n border-radius: 6px 6px 0 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 450px;\n\n box-sizing: border-box;\n transform: translateY(238px);\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\n }\n\n .modal-wrapper {\n padding: 0 16px;\n }\n\n .payment-info {\n position: relative;\n padding-bottom: 15px;\n border-bottom: solid 1px whitesmoke;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n .customer-email {\n color: #737373;\n font-size: 13px;\n line-height: 16px;\n }\n\n .customer-info {\n flex: 1;\n text-align: right;\n }\n\n .merchant-logo {\n display: flex;\n align-items: center;\n height: 30px;\n }\n .transaction-amount {\n margin-top: 5px;\n font-size: 13px;\n line-height: 16px;\n color: #737373;\n }\n\n .amount {\n color: #29b263;\n font-weight: bold;\n }\n\n @media only screen and (min-width: 500px) {\n .pre-checkout-modal__content {\n bottom: 0;\n top: 0;\n margin: auto;\n border-radius: 6px;\n height: fit-content;\n }\n }\n\n .pre-checkout-modal__content.show {\n transform: translateY(0);\n margin: 0 auto;\n margin-top: 100px;\n }\n\n .pre-checkout-modal__content > * {\n margin-top: 0;\n margin-bottom: 40px;\n }\n .pre-checkout-modal__content > *:last-child {\n margin-bottom: 0;\n }\n\n .pre-checkout-modal__content svg {\n margin: auto;\n width: 100%;\n }\n\n #inline-button-wordmark--white {\n position: absolute;\n bottom: -50px;\n margin: auto;\n right: 0;\n width: fit-content;\n }\n\n #inline-button-wordmark--grey {\n display: none;\n }\n\n .pre-checkout-modal__content #apple-pay-mark--light {\n margin-bottom: 16px;\n }\n\n .pre-checkout-modal p {\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n color: #4E4E4E;\n line-height: 28px;\n font-size: 14px;\n font-weight: 500;\n margin: 0;\n padding: 0 20px;\n text-align: center;\n letter-spacing: -0.3px;\n }\n\n .pre-checkout-modal button {\n height: 42px;\n width: 100%;\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\n border: 1px solid #49a861;\n box-sizing: border-box;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\n color: #ffffff;\n font-weight: 600;\n font-size: 14px;\n line-height: 14px;\n cursor: pointer;\n\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n #payment-request-button {\n width: 100%;\n height: fit-content;\n margin: 24px 0 16px 0;\n }\n\n #paystackpop-button {\n padding: 0 16px;\n }\n\n #apple-pay-close-button {\n position: absolute;\n text-align: center;\n top: 0;\n right: -26px;\n height: 16px;\n width: 16px;\n padding: 0;\n display: inline-block;\n z-index: 3;\n border-radius: 50%;\n background: transparent;\n transition: all 300ms;\n outline: none;\n cursor: pointer;\n border: none;\n }\n\n #apple-pay-close-button svg {\n width: initial;\n }\n \n #apple-pay-close-button:hover {\n background-color: #e22b28;\n }\n\n @media only screen and (max-width: 500px) {\n .pre-checkout-modal__content {\n max-width: 500px;\n border-radius: 0;\n padding-bottom: 0;\n }\n\n .modal-wrapper {\n padding: 0;\n }\n\n #inline-button-wordmark--white {\n display: none\n }\n \n #inline-button-wordmark--grey {\n display: block;\n width: 100%;\n margin: 16px 0;\n height: 13px;\n }\n\n #apple-pay-close-button {\n display: none;\n }\n }\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:"key",required:!0,types:["string"]},{value:"amount",required:!0,or:["plan","planCode"],types:["string","number"]},{value:"currency",required:!1,types:["string"]},{value:"email",required:!0,or:["customerCode"],types:["string"]},{value:"label",required:!1,types:["string"]},{value:"firstName",required:!1,types:["string"]},{value:"lastName",required:!1,types:["string"]},{value:"reference",required:!1,types:["string"]},{value:"phone",required:!1,types:["string"]},{value:"customerCode",required:!1,override:"email",types:["string"]},{value:"channels",required:!1,types:["array"]},{value:"paymentRequest",required:!1,types:["string","number"]},{value:"paymentPage",required:!1,types:["string"]},{value:"hash",required:!1,types:["string"]},{value:"container",required:!1,types:["string"]},{value:"metadata",required:!1,types:["object"]},{value:"subaccountCode",required:!1,types:["string"]},{value:"bearer",required:!1,types:["string"]},{value:"transactionCharge",required:!1,types:["string","number"]},{value:"planCode",required:!1,override:"amount",types:["string"]},{value:"subscriptionCount",required:!1,types:["number"]},{value:"planInterval",required:!1,types:["string"]},{value:"subscriptionLimit",required:!1,types:["number"]},{value:"subscriptionStartDate",required:!1,types:["string"]},{value:"accessCode",required:!1,types:["string"]},{value:"onError",required:!1,types:["function"]},{value:"onLoad",required:!1,types:["function"]},{value:"onSuccess",required:!1,types:["function"]},{value:"onCancel",required:!1,types:["function"]},{value:"callback",required:!1,types:["function"]},{value:"onClose",required:!1,types:["function"]},{value:"onBankTransferConfirmationPending",required:!1,types:["function"]},{value:"firstname",required:!1,types:["string"]},{value:"lastname",required:!1,types:["string"]},{value:"customer_code",required:!1,types:["string"]},{value:"payment_request",required:!1,types:["string","number"]},{value:"subaccount",required:!1,types:["string"]},{value:"transaction_charge",required:!1,types:["number","string"]},{value:"plan",required:!1,types:["string"]},{value:"quantity",required:!1,types:["number"]},{value:"interval",required:!1,types:["string"]},{value:"invoice_limit",required:!1,types:["number","string"]},{value:"start_date",required:!1,types:["string"]},{value:"payment_page",required:!1,types:["number","string"]},{value:"order_id",required:!1,types:["number"]},{value:"ref",required:!1,types:["string"]},{value:"card",required:!1,types:["string"]},{value:"bank",required:!1,types:["string"]},{value:"split",required:!1,types:["object"]},{value:"split_code",required:!1,types:["string"]},{value:"transaction_type",required:!1,types:["string"]},{value:"subscription",required:!1,types:["number"]},{value:"language",required:!1,types:["string"]},{value:"connect_account",required:!1,types:["string"]},{value:"connect_split",required:!1,types:["object"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split("?")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode="popup",e.split&&"string"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&["false",!1].indexOf(a.card)>-1&&(a.channels=["bank"],delete a.card),void 0!==a.bank&&["false",!1].indexOf(a.bank)>-1&&(a.channels=["card"],delete a.bank),[{to:"firstname",from:"firstName"},{to:"lastname",from:"lastName"},{to:"customer_code",from:"customerCode"},{to:"payment_request",from:"paymentRequest"},{to:"subaccount",from:"subaccountCode"},{to:"transaction_charge",from:"transactionCharge"},{to:"plan",from:"planCode"},{to:"quantity",from:"subscriptionCount"},{to:"interval",from:"planInterval"},{to:"invoice_limit",from:"subscriptionLimit"},{to:"start_date",from:"subscriptionStartDate"},{to:"ref",from:"reference"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from]);})),Object.values(e).forEach((function(n,t){if("function"==typeof n){var o=Object.keys(e)[t];delete a[o];}})),a}var U=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes("Mac")&&"ontouchend"in document},B=function(e,n,t){var a="".concat(m.paystackApiUrl,"transaction/update_log/").concat(e),o={Authorization:"Bearer ".concat(n)};return fetch(a,{method:"POST",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t="".concat(m.paystackApiUrl,"transaction/set_ip/").concat(e),a={Authorization:"Bearer ".concat(n)};return fetch(t,{method:"POST",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]};},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case"success":return this.logApiSuccess(n);case"failed":return this.logApiError(e.message);default:return !1}},logValidationResponse:function(e){return this.log.history.push({type:"action",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n="Attempted to pay";return e&&(n+=" with ".concat(e)),this.log.attempts+=1,this.log.history.push({type:"action",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n="Error";return e&&(n+=": ".concat(e)),this.log.errors+=1,this.log.history.push({type:"error",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n="Successfully paid";return e&&(n+=" with ".concat(e)),this.log.success=!0,this.log.history.push({type:"success",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=["language","connect_account"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({"Content-Type":"application/json"},a&&{"Accept-Language":a});return (this.accessCode?fetch(new URL("transaction/verify_access_code/".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL("/checkout/request_inline",m.paystackApiUrl).toString(),{method:"POST",body:JSON.stringify(r),headers:n(n({},i),o&&{"x-connect-account":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[];}if(!e||"object"!==t(e))throw new n("Transaction parameters should be a non-empty object");var a=e;if("accessCode"in a)return {accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e];}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:"Required parameter missing: ".concat(e.value)});})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);"object"===i&&Array.isArray(n)&&(i="array"),o.types.indexOf(i)<=-1&&r.push({message:"Invalid parameter type: ".concat(e),validTypes:o.types});})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override];})),r.length)throw new n("Invalid transaction parameters",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W);}return r(e,[{key:"onSetupError",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e);}},{key:"onLoad",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl="".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a});}},{key:"onSuccess",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e);}},{key:"setStatus",value:function(e){this.status=e;}},{key:"onCancel",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose();}},{key:"cancel",value:function(){this.isActive=!1,this.onCancel();}},{key:"onBankTransferConfirmationPending",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending();}},{key:"logError",value:function(e){this.errors.push(e);}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('"'.concat(e,'" has been deprecated, please use "').concat(n,'". ').concat(t||""));}var G,Y=["preload","inlineTransaction"],X=["container","styles","onElementsMount"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||"abandoned"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join("")===Object.keys(a).sort().join(""),r=Object.values(t).sort().join("")===Object.values(a).sort().join(""),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:"inline:url",path:"newTransaction",params:t},"*");}var ne="trackCheckoutClosed",te="trackPaymentError",ae="trackPaymentAttempt",oe="trackPaymentCompletion";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re("A container is required to mount the payment request button"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_("inline-background-".concat(e));n.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n background: rgba(0, 0, 0, 0.75); \n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.3s;\n -webkit-transition: opacity 0.3s;\n visibility: hidden;\n display: none;\n",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\n \n \n\n \n \n \n \n Paystack Popup Loader\n \n \n\n \n
\n
\n
\n
\n
\n
\n \n\n \n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_("inline-checkout-".concat(t))).src="".concat(m.checkoutUrl,"popup"),o.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n visibility: hidden;\n display: none;\n height: 100%;\n",o.setAttribute("allowpaymentrequest","true"),o.setAttribute("allow","payment; clipboard-read; clipboard-write"),document.body.appendChild(o),o),this.registerListeners();}return r(e,[{key:"registerListeners",value:function(){var e=this;window.addEventListener("message",(function(n){var t="".concat(n.origin,"/")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n);}));}},{key:"sendAnalyticsEventToCheckout",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:"analytics",action:e,params:n},"*");}},{key:"checkout",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\/[\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes("apple_pay")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:"100%",type:"pay",height:"42px",padding:"15px",borderRadius:"5px"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(".pre-checkout-modal__content");t.classList.add("show"),setTimeout((function(){a.classList.add("show"),e(!0);}),50);}catch(e){n(e);}})),e(n);})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n);}))):(G.newTransaction({inlineTransaction:n}),e(n));})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e);}));}))}},{key:"registerPreCheckoutModalEventListeners",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener("touchstart",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1;}),125));}),!0),document.addEventListener("touchend",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1;}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn();},this.preCheckoutModal.querySelector("#apple-pay-close-button").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction();};}},{key:"closePreCheckoutModal",value:function(e){var n;this.preCheckoutModal&&("failed"===e?(n=this.preCheckoutModal)&&(n.querySelector("#apple-pay-mark--light").innerHTML='\n \n \n \n \n \n \n \n',n.querySelector("#apple-pay-description").textContent="An error occurred while paying with Apple Pay. Please try again or use another payment method."):(!function(e){e&&(e.querySelector(".pre-checkout-modal__content").classList.remove("show"),e.classList.remove("show"));}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null));}},{key:"closePreCheckoutModalAndCancelTransaction",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage("close","*"),this.closePreCheckoutModal());}},{key:"newTransaction",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:"preloadTransaction",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:"paymentRequest",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector("#".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re("A container is required to mount the payment request button"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e);})).catch((function(){a&&a(null);})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e;}r(l);}));})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e);}));}else {if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p;}else K("This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'");a&&a(null);var u=G.activeTransaction();r(u);}}))}},{key:"registerApplePayEventListener",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()};}},{key:"registerPaymentRequestEventListeners",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer);}},{key:"startApplePay",value:function(){var e,t,a,o,r,i=this,c="apple pay",s=this.activeTransaction();if(s){var l={channel:"apple_pay",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:"apple_pay",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:"NG",currencyCode:t,merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:["visa","masterCard"],requiredBillingContactFields:["postalAddress","name","phone","email"],total:{label:"".concat(o," - Paystack"),type:"final",amount:String(x(a))}},"string"==typeof r&&""!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c="".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){"success"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message);})).catch((function(e){s.onSetupError(e);}));},d.oncancel=function(){G.preCheckoutModal||s.onCancel();},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o="".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),"success"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Transaction attempt failed"})),G.closePreCheckoutModal(e.status);})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Error occurred"}),G.closePreCheckoutModal("failed");}));},d.begin();}catch(e){s.onSetupError(e);}}else re("Could not initiate apple pay transaction");}},{key:"resumeTransaction",value:function(e){return this.newTransaction({accessCode:e})}},{key:"activeTransaction",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:"cancelTransaction",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close());}},{key:"respondToEvent",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case"loaded:checkout":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case"loaded:transaction":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById("app-loader").style.display="none"),a.onLoad(i);break;case"error":"setup"===i.type?a.onSetupError(i):a.logError(i);break;case"cancel":case"close":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case"transfer:pending":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case"success":this.close(),a.onSuccess(i);}}catch(e){}}}},{key:"respondToEmbedEvents",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&("string"==typeof o||o instanceof String)){var r={action:t=(n=o)&&"string"==typeof n?n.split(" ")[0]:null,data:t?n.split(" ").slice(2).join(" "):null};if(r&&"PaystackClose"===r.action)r.data&&a.onSuccess(o);"PaystackTLSClose"===r.action&&a.cancel();}}},{key:"animateCheckoutIn",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t("No dom element provided");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t("No dom element provided"),a.style.display="",a.style.visibility="visible",o.style.display="",o.style.visibility="visible",n();}))).then((function(){n.checkoutIframe.contentWindow.postMessage("render","*");})),this.isOpen=!0;}}},{key:"open",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn());}},{key:"close",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t("No dom element provided");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t("No dom element provided"),o.style.opacity=0,a.style.display="none",a.style.visibility="hidden",setTimeout((function(){o.style.display="none",o.style.visibility="hidden",o.style.opacity=1,e();}),300);}))).then((function(){e.checkoutIframe.contentWindow.postMessage("close","*");})),this.isOpen=!1;}}},{key:"isLoaded",value:function(){return this.isLoaded}}],[{key:"setup",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q("PaystackPop.setup()","new PaystackPop()","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline");var a=G.newTransaction(n,"deprecated"),o=a.urlParameters;if(t){var r="".concat(m.siteUrl,"/assets/payment/production/inline.html?").concat(y(o)),i=function(e,n){var t=_("embed-checkout-".concat(e));return t.style.cssText="\n background: transparent;\n background: rgba(0,0,0,0);\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n nmargin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n visibility: hidden;\n display: none;\n",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML="",t.removeAttribute("style"),t.className="paystack-embed-container",t.style.position="relative",t.style.width="100%",t.appendChild(n);}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage("PaystackOpen ".concat(G.id),"*"),e=i,new Promise((function(n,t){e||t("No dom element provided"),e.style.display="",e.style.visibility="visible",n();}));};}else a.openIframe=function(){Q("openIframe","open","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline"),G.open(o);};return a}}]),e}();if(ie=g().length>0,ce=f()&&"FORM"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split("data-")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a;})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error("Please make sure the buttonId is an element available in the DOM");var t=n({},e);t.buttonText=e.buttonText||"Pay",t.buttonVariant="normal",t.buttonWordmarkVariant="normal";var a=["normal","light"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute("data-inline-id",e.id);else {var t=document.createElement("div");t.id="inline-button-".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\n \n \n ',light:b};return "\n \n \n
\n ').concat(a[e.wordmarkVariant||"normal"],"\n
\n ")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName("button"),1)[0];}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener("click",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:"hidden",name:"reference",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement("input")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit();}}));}));} -typeof SuppressedError === 'function' - ? SuppressedError - : function (error, suppressed, message) { - var e = new Error(message); - return (e.name = 'SuppressedError'), (e.error = error), (e.suppressed = suppressed), e; - }; - -var cachedScripts = []; -function usePaystackScript() { - var src = 'https://js.paystack.co/v1/inline.js'; - var _a = useState({ - loaded: false, - error: false, - }), - state = _a[0], - setState = _a[1]; - useEffect( - function () { - if (cachedScripts.includes(src)) { - setState({ - loaded: true, - error: false, - }); - } else { - cachedScripts.push(src); - var script_1 = document.createElement('script'); - script_1.src = src; - script_1.async = true; - var onScriptLoad_1 = function () { - setState({ - loaded: true, - error: false, - }); - }; - var onScriptError_1 = function () { - var index = cachedScripts.indexOf(src); - if (index >= 0) cachedScripts.splice(index, 1); - script_1.remove(); - setState({ - loaded: true, - error: true, - }); - }; - script_1.addEventListener('load', onScriptLoad_1); - script_1.addEventListener('complete', onScriptLoad_1); - script_1.addEventListener('error', onScriptError_1); - document.body.appendChild(script_1); - return function () { - script_1.removeEventListener('load', onScriptLoad_1); - script_1.removeEventListener('error', onScriptError_1); - }; - } - }, - [src], - ); - return [state.loaded, state.error]; -} - -/* eslint-disable */ var callPaystackPop = function (paystackArgs) { - // @ts-ignore - var handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs); - handler && handler.openIframe(); + var paystack = new se(); + paystack.newTransaction(paystackArgs); }; function usePaystackPayment(hookConfig) { - var _a = usePaystackScript(), - scriptLoaded = _a[0], - scriptError = _a[1]; - function initializePayment(_a) { - var config = _a.config, - onSuccess = _a.onSuccess, - onClose = _a.onClose; - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - var args = __assign(__assign({}, hookConfig), config); - var publicKey = args.publicKey, - firstname = args.firstname, - lastname = args.lastname, - phone = args.phone, - email = args.email, - amount = args.amount, - reference = args.reference, - _b = args.metadata, - metadata = _b === void 0 ? {} : _b, - _c = args.currency, - currency = _c === void 0 ? 'NGN' : _c, - channels = args.channels, - _d = args.label, - label = _d === void 0 ? '' : _d, - _e = args.plan, - plan = _e === void 0 ? '' : _e, - _f = args.quantity, - quantity = _f === void 0 ? '' : _f, - _g = args.subaccount, - subaccount = _g === void 0 ? '' : _g, - _h = args.transaction_charge, - transaction_charge = _h === void 0 ? 0 : _h, - _j = args.bearer, - bearer = _j === void 0 ? 'account' : _j, - split = args.split, - split_code = args.split_code; - if (scriptLoaded) { - var paystackArgs = { - callback: onSuccess - ? onSuccess - : function () { - return null; - }, - onClose: onClose - ? onClose - : function () { - return null; - }, - key: publicKey, - ref: reference, - email: email, - firstname: firstname, - lastname: lastname, - phone: phone, - amount: amount, - currency: currency, - plan: plan, - quantity: quantity, - channels: channels, - subaccount: subaccount, - transaction_charge: transaction_charge, - bearer: bearer, - label: label, - metadata: metadata, - split: split, - split_code: split_code, - 'data-custom-button': args['data-custom-button'] || '', - }; - callPaystackPop(paystackArgs); + function initializePayment(_a) { + var config = _a.config, onSuccess = _a.onSuccess, onClose = _a.onClose; + var args = __assign(__assign({}, hookConfig), config); + var publicKey = args.publicKey, firstname = args.firstname, lastname = args.lastname, phone = args.phone, email = args.email, amount = args.amount, reference = args.reference, metadata = args.metadata, _b = args.currency, currency = _b === void 0 ? 'NGN' : _b, channels = args.channels, label = args.label, plan = args.plan, quantity = args.quantity, subaccount = args.subaccount, transaction_charge = args.transaction_charge, bearer = args.bearer, split = args.split, split_code = args.split_code, connect_account = args.connect_account, connect_split = args.connect_split, onBankTransferConfirmationPending = args.onBankTransferConfirmationPending; + var paystackArgs = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ onSuccess: onSuccess ? onSuccess : function () { return null; }, onCancel: onClose ? onClose : function () { return null; }, key: publicKey, email: email, amount: amount }, (firstname && { firstname: firstname })), (lastname && { lastname: lastname })), (phone && { phone: phone })), (reference && { ref: reference })), (currency && { currency: currency })), (channels && { channels: channels })), (metadata && { metadata: metadata })), (label && { label: label })), (onBankTransferConfirmationPending && { onBankTransferConfirmationPending: onBankTransferConfirmationPending })), (subaccount && { subaccount: subaccount })), (transaction_charge && { transaction_charge: transaction_charge })), (bearer && { bearer: bearer })), (split && { split: split })), (split_code && { split_code: split_code })), (plan && { plan: plan })), (quantity && { quantity: quantity })), (connect_split && { connect_split: connect_split })), (connect_account && { connect_account: connect_account })); + callPaystackPop(paystackArgs); } - } - useEffect( - function () { - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - }, - [scriptError], - ); - return initializePayment; + return initializePayment; } var PaystackButton = function (_a) { - var text = _a.text, - className = _a.className, - children = _a.children, - onSuccess = _a.onSuccess, - onClose = _a.onClose, - config = __rest(_a, ['text', 'className', 'children', 'onSuccess', 'onClose']); - var initializePayment = usePaystackPayment(config); - return React.createElement( - 'button', - { - className: className, - onClick: function () { - return initializePayment({config: config, onSuccess: onSuccess, onClose: onClose}); - }, - }, - text || children, - ); + var text = _a.text, className = _a.className, children = _a.children, onSuccess = _a.onSuccess, onClose = _a.onClose, config = __rest(_a, ["text", "className", "children", "onSuccess", "onClose"]); + var initializePayment = usePaystackPayment(config); + return (React.createElement("button", { className: className, onClick: function () { return initializePayment({ config: config, onSuccess: onSuccess, onClose: onClose }); } }, text || children)); }; var PaystackContext = createContext({ - config: {}, - initializePayment: function () { - return null; - }, - onSuccess: function () { - return null; - }, - onClose: function () { - return null; - }, + config: {}, + initializePayment: function () { return null; }, + onSuccess: function () { return null; }, + onClose: function () { return null; }, }); var PaystackProvider = function (_a) { - var children = _a.children, - onSuccess = _a.onSuccess, - onClose = _a.onClose, - config = __rest(_a, ['children', 'onSuccess', 'onClose']); - var initializePayment = usePaystackPayment(config); - return React.createElement( - PaystackContext.Provider, - { - value: { - config: config, - initializePayment: initializePayment, - onSuccess: onSuccess, - onClose: onClose, - }, - }, - children, - ); + var children = _a.children, onSuccess = _a.onSuccess, onClose = _a.onClose, config = __rest(_a, ["children", "onSuccess", "onClose"]); + var initializePayment = usePaystackPayment(config); + return (React.createElement(PaystackContext.Provider, { value: { config: config, initializePayment: initializePayment, onSuccess: onSuccess, onClose: onClose } }, children)); }; var PaystackConsumerChild = function (_a) { - var children = _a.children, - ref = _a.ref; - var _b = useContext(PaystackContext), - config = _b.config, - initializePayment = _b.initializePayment, - onSuccess = _b.onSuccess, - onClose = _b.onClose; - var completeInitializePayment = function () { - return initializePayment({config: config, onSuccess: onSuccess, onClose: onClose}); - }; - return children({initializePayment: completeInitializePayment, ref: ref}); + var children = _a.children, ref = _a.ref; + var _b = useContext(PaystackContext), config = _b.config, initializePayment = _b.initializePayment, onSuccess = _b.onSuccess, onClose = _b.onClose; + var completeInitializePayment = function () { return initializePayment({ config: config, onSuccess: onSuccess, onClose: onClose }); }; + return children({ initializePayment: completeInitializePayment, ref: ref }); }; // eslint-disable-next-line react/display-name var PaystackConsumer = forwardRef(function (_a, ref) { - var children = _a.children, - paraSuccess = _a.onSuccess, - paraClose = _a.onClose, - others = __rest(_a, ['children', 'onSuccess', 'onClose']); - var onSuccess = paraSuccess - ? paraSuccess - : function () { - return null; - }; - var onClose = paraClose - ? paraClose - : function () { - return null; - }; - return React.createElement( - PaystackProvider, - __assign({}, others, {onSuccess: onSuccess, onClose: onClose}), - React.createElement(PaystackConsumerChild, {ref: ref}, children), - ); + var children = _a.children, paraSuccess = _a.onSuccess, paraClose = _a.onClose, others = __rest(_a, ["children", "onSuccess", "onClose"]); + var onSuccess = paraSuccess ? paraSuccess : function () { return null; }; + var onClose = paraClose ? paraClose : function () { return null; }; + return (React.createElement(PaystackProvider, __assign({}, others, { onSuccess: onSuccess, onClose: onClose }), + React.createElement(PaystackConsumerChild, { ref: ref }, children))); }); -export {PaystackButton, PaystackConsumer, usePaystackPayment}; +export { PaystackButton, PaystackConsumer, usePaystackPayment }; //# sourceMappingURL=index.es.js.map diff --git a/example/src/dist/index.es.js.map b/example/src/dist/index.es.js.map index 2920845..fa6d808 100644 --- a/example/src/dist/index.es.js.map +++ b/example/src/dist/index.es.js.map @@ -1 +1 @@ -{"version":3,"file":"index.es.js","sources":["../libs/paystack-script.ts","../libs/paystack-actions.ts","../libs/use-paystack.ts","../libs/paystack-button.tsx","../libs/paystack-context.ts","../libs/paystack-provider.tsx","../libs/paystack-consumer.tsx"],"sourcesContent":["import {useState, useEffect} from 'react';\n\nconst cachedScripts: string[] = [];\ninterface IScriptResult {\n loaded: boolean;\n error: boolean;\n}\n\nexport default function usePaystackScript(): boolean[] {\n const src = 'https://js.paystack.co/v1/inline.js';\n\n const [state, setState] = useState({\n loaded: false,\n error: false,\n });\n\n useEffect((): any => {\n if (cachedScripts.includes(src)) {\n setState({\n loaded: true,\n error: false,\n });\n } else {\n cachedScripts.push(src);\n\n const script = document.createElement('script');\n script.src = src;\n script.async = true;\n\n const onScriptLoad = (): void => {\n setState({\n loaded: true,\n error: false,\n });\n };\n\n const onScriptError = (): void => {\n const index = cachedScripts.indexOf(src);\n if (index >= 0) cachedScripts.splice(index, 1);\n script.remove();\n\n setState({\n loaded: true,\n error: true,\n });\n };\n\n script.addEventListener('load', onScriptLoad);\n script.addEventListener('complete', onScriptLoad);\n script.addEventListener('error', onScriptError);\n\n document.body.appendChild(script);\n\n return (): void => {\n script.removeEventListener('load', onScriptLoad);\n script.removeEventListener('error', onScriptError);\n };\n }\n }, [src]);\n\n return [state.loaded, state.error];\n}\n","/* eslint-disable */\nexport let callPaystackPop = (paystackArgs: Record): void => {\n // @ts-ignore\n const handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs);\n handler && handler.openIframe();\n};\n","import {useEffect} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\nimport usePaystackScript from './paystack-script';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: Partial): InitializePayment {\n const [scriptLoaded, scriptError] = usePaystackScript();\n\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata = {},\n currency = 'NGN',\n channels,\n label = '',\n plan = '',\n quantity = '',\n subaccount = '',\n transaction_charge = 0,\n bearer = 'account',\n split,\n split_code,\n } = args;\n\n if (scriptLoaded) {\n const paystackArgs: Record = {\n callback: onSuccess ? onSuccess : () => null,\n onClose: onClose ? onClose : () => null,\n key: publicKey,\n ref: reference,\n email,\n firstname,\n lastname,\n phone,\n amount,\n currency,\n plan,\n quantity,\n channels,\n subaccount,\n transaction_charge,\n bearer,\n label,\n metadata,\n split,\n split_code,\n 'data-custom-button': args['data-custom-button'] || '',\n };\n callPaystackPop(paystackArgs);\n }\n }\n\n useEffect(() => {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n }, [scriptError]);\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose : (): any => null;\n return (\n \n {children}\n \n );\n },\n);\n\nexport default PaystackConsumer;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,aAAa,GAAa,EAAE,CAAC;AAMrB,SAAU,iBAAiB,GAAA;IACvC,IAAM,GAAG,GAAG,qCAAqC,CAAC;IAE5C,IAAA,EAAA,GAAoB,QAAQ,CAAgB;AAChD,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,KAAK,EAAE,KAAK;AACb,KAAA,CAAC,EAHK,KAAK,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,QAAQ,QAGpB,CAAC;AAEH,IAAA,SAAS,CAAC,YAAA;AACR,QAAA,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC/B,YAAA,QAAQ,CAAC;AACP,gBAAA,MAAM,EAAE,IAAI;AACZ,gBAAA,KAAK,EAAE,KAAK;AACb,aAAA,CAAC,CAAC;SACJ;aAAM;AACL,YAAA,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAExB,IAAM,QAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChD,YAAA,QAAM,CAAC,GAAG,GAAG,GAAG,CAAC;AACjB,YAAA,QAAM,CAAC,KAAK,GAAG,IAAI,CAAC;AAEpB,YAAA,IAAM,cAAY,GAAG,YAAA;AACnB,gBAAA,QAAQ,CAAC;AACP,oBAAA,MAAM,EAAE,IAAI;AACZ,oBAAA,KAAK,EAAE,KAAK;AACb,iBAAA,CAAC,CAAC;AACL,aAAC,CAAC;AAEF,YAAA,IAAM,eAAa,GAAG,YAAA;gBACpB,IAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;gBACzC,IAAI,KAAK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GAAG,WAAW,GAAG,WAAW,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AAC9D,IAAA,IAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;"} \ No newline at end of file +{"version":3,"file":"index.es.js","sources":["../../../node_modules/@paystack/inline-js/es/inline.js","../../../libs/paystack-actions.ts","../../../libs/use-paystack.ts","../../../libs/paystack-button.tsx","../../../libs/paystack-context.ts","../../../libs/paystack-provider.tsx","../../../libs/paystack-consumer.tsx"],"sourcesContent":["function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function p(e,n){if(e){if(\"string\"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===t&&e.constructor&&(t=e.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(e):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}))}return e}var b='\\n \\n \\n \\n';var k={height:\"50px\",width:\"auto\",borderRadius:\"3px\",padding:\"10px\",locale:\"en\",type:\"pay\"},w=function(e){return e&&\"object\"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:\"application/json, text/plain, */*\",\"accept-language\":\"en-GB,en-US;q=0.9,en;q=0.8\",\"content-type\":\"application/x-www-form-urlencoded\",\"sec-ch-ua-mobile\":\"?0\",\"sec-fetch-dest\":\"empty\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"cross-site\"},referrerPolicy:\"no-referrer-when-downgrade\",method:\"POST\",mode:\"cors\",credentials:\"omit\"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r=\"\".concat(a,\"=\").concat(o);return[].concat(l(n),[r])}),[]).join(\"&\")}var L=function(e){return{biannually:\"BIANNUAL PLAN\",annually:\"ANNUAL PLAN\"}[e]||\"\".concat(e.toUpperCase(),\" PLAN\")},V=function(){try{return window.location&&\"https:\"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return!1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes(\"apple_pay\")};function _(e){var n=document.createElement(\"iframe\");return n.setAttribute(\"frameBorder\",\"0\"),n.setAttribute(\"allowtransparency\",\"true\"),n.id=e,n.style.display=\"none\",n}function E(e){return e.querySelector(\"apple-pay-button\")||e.querySelector(\"#apple-pay-button\")}function q(e){return document.querySelector(\"#\".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a(\"No script url\");var o=document.createElement(\"script\");o.src=e,o.addEventListener(\"load\",(function(){t(!0)})),o.addEventListener(\"error\",(function(){o.remove(),a(!1)})),n?n.appendChild(o):document.head.appendChild(o)}))})(\"https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js\",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error(\"Incorrect data type for 'webpackJsonp', expected array, got \".concat(t(window.webpackJsonp),\". Switching to fallback apple pay button\"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return\"\\n apple-pay-button {\\n --apple-pay-button-width: \".concat(t,\";\\n --apple-pay-button-height: \").concat(n,\";\\n --apple-pay-button-border-radius: \").concat(a,\";\\n --apple-pay-button-padding: \").concat(o,\";\\n --apple-pay-button-box-sizing: border-box;\\n width: \").concat(t,\";\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"apple-pay-button\");i.setAttribute(\"buttonstyle\",\"light\"===a?\"white\":\"black\"),i.setAttribute(\"type\",t.type),i.setAttribute(\"locale\",t.locale),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return\"\\n @supports (-webkit-appearance: -apple-pay-button) { \\n .apple-pay-button {\\n display: inline-block;\\n -webkit-appearance: -apple-pay-button;\\n width: \".concat(t,\";\\n height: \").concat(n,\";\\n border-radius: \").concat(a,\";\\n padding: \").concat(o,\";\\n -apple-pay-button-type: \").concat(r,\";\\n -webkit-locale: \").concat(i,\";\\n }\\n .apple-pay-button-black {\\n -apple-pay-button-style: black;\\n }\\n .apple-pay-button-white {\\n -apple-pay-button-style: white;\\n }\\n .apple-pay-button-white-with-line {\\n -apple-pay-button-style: white-outline;\\n }\\n }\\n\\n @supports not (-webkit-appearance: -apple-pay-button) {\\n .apple-pay-button {\\n display: inline-block;\\n background-size: 100% 60%;\\n background-repeat: no-repeat;\\n background-position: 50% 50%;\\n border-radius: 5px;\\n padding: 0px;\\n box-sizing: border-box;\\n min-width: 200px;\\n min-height: 32px;\\n max-height: 64px;\\n }\\n .apple-pay-button-black {\\n background-image: -webkit-named-image(apple-pay-logo-white);\\n background-color: black;\\n }\\n .apple-pay-button-white {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n }\\n .apple-pay-button-white-with-line {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n border: .5px solid black;\\n }\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"button\");i.classList.add(\"apple-pay-button\",\"light\"===a?\"apple-pay-button-white\":\"apple-pay-button-black\"),i.id=\"apple-pay-button\";var c=document.createElement(\"span\");c.classList.add(\"logo\"),i.appendChild(c),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)}))}else o(\"No wallet payment method is available on this device\");else o(\"Container to mount elements was not provided\")}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function I(e){return e.querySelector(\"#paystackpop-button\")}function z(e){return e.querySelector(\"#payment-request-button\")}function O(e,n){var t=document.querySelector(\"#pre-checkout-modal-\".concat(e));if(t){if(I(t)&&z(t))return t;t.remove()}var a,o=document.createElement(\"div\");o.classList.add(\"pre-checkout-modal\"),o.id=\"pre-checkout-modal-\".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll(\"body *\")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t)})),a+1);var r=document.createElement(\"div\");r.classList.add(\"pre-checkout-modal__content\"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement(\"div\"),C=new Intl.NumberFormat(\"en\",{style:\"currency\",currency:u,currencyDisplay:\"code\",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add(\"payment-info\"),h.innerHTML='\"').concat(s,'\\n
\\n
').concat(d||l,'
\\n
Pay ').concat(C,\"
\\n
\"),r.appendChild(h),r.innerHTML+='\\n \\n';var m=document.createElement(\"div\");m.classList.add(\"modal-wrapper\"),m.innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n';var y=document.createElement(\"p\");y.id=\"apple-pay-description\",y.innerHTML=\"Pay with Apple Pay to complete your purchase without filling a form\",m.appendChild(y);var f=document.createElement(\"div\");f.id=\"payment-request-button\",m.appendChild(f);var v=document.createElement(\"button\");v.id=\"paystackpop-button\",v.innerText=\"More payment options\",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\\n\\n\\n\\n',r.appendChild(m);var g=document.createElement(\"style\");return g.textContent='\\n .pre-checkout-modal {\\n display: none;\\n position: fixed;\\n z-index: 1;\\n left: 0;\\n top: 0;\\n width: 100vw;\\n height: 100%;\\n overflow: auto;\\n background-color: rgba(0, 0, 0, 0.75);\\n transition: all 0.2s ease;\\n }\\n\\n .pre-checkout-modal.show {\\n display: block;\\n }\\n\\n .pre-checkout-modal__content {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n margin-left: auto;\\n margin-right: auto;\\n background-color: #fefefe;\\n padding: 30px 24px;\\n padding-bottom: max(30px, env(safe-area-inset-bottom));\\n width: 100%;\\n border-radius: 6px 6px 0 0;\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n max-width: 450px;\\n\\n box-sizing: border-box;\\n transform: translateY(238px);\\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\\n }\\n\\n .modal-wrapper {\\n padding: 0 16px;\\n }\\n\\n .payment-info {\\n position: relative;\\n padding-bottom: 15px;\\n border-bottom: solid 1px whitesmoke;\\n display: flex;\\n align-items: flex-start;\\n justify-content: space-between;\\n width: 100%;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n .customer-email {\\n color: #737373;\\n font-size: 13px;\\n line-height: 16px;\\n }\\n\\n .customer-info {\\n flex: 1;\\n text-align: right;\\n }\\n\\n .merchant-logo {\\n display: flex;\\n align-items: center;\\n height: 30px;\\n }\\n .transaction-amount {\\n margin-top: 5px;\\n font-size: 13px;\\n line-height: 16px;\\n color: #737373;\\n }\\n\\n .amount {\\n color: #29b263;\\n font-weight: bold;\\n }\\n\\n @media only screen and (min-width: 500px) {\\n .pre-checkout-modal__content {\\n bottom: 0;\\n top: 0;\\n margin: auto;\\n border-radius: 6px;\\n height: fit-content;\\n }\\n }\\n\\n .pre-checkout-modal__content.show {\\n transform: translateY(0);\\n margin: 0 auto;\\n margin-top: 100px;\\n }\\n\\n .pre-checkout-modal__content > * {\\n margin-top: 0;\\n margin-bottom: 40px;\\n }\\n .pre-checkout-modal__content > *:last-child {\\n margin-bottom: 0;\\n }\\n\\n .pre-checkout-modal__content svg {\\n margin: auto;\\n width: 100%;\\n }\\n\\n #inline-button-wordmark--white {\\n position: absolute;\\n bottom: -50px;\\n margin: auto;\\n right: 0;\\n width: fit-content;\\n }\\n\\n #inline-button-wordmark--grey {\\n display: none;\\n }\\n\\n .pre-checkout-modal__content #apple-pay-mark--light {\\n margin-bottom: 16px;\\n }\\n\\n .pre-checkout-modal p {\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n color: #4E4E4E;\\n line-height: 28px;\\n font-size: 14px;\\n font-weight: 500;\\n margin: 0;\\n padding: 0 20px;\\n text-align: center;\\n letter-spacing: -0.3px;\\n }\\n\\n .pre-checkout-modal button {\\n height: 42px;\\n width: 100%;\\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\\n border: 1px solid #49a861;\\n box-sizing: border-box;\\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\\n color: #ffffff;\\n font-weight: 600;\\n font-size: 14px;\\n line-height: 14px;\\n cursor: pointer;\\n\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n #payment-request-button {\\n width: 100%;\\n height: fit-content;\\n margin: 24px 0 16px 0;\\n }\\n\\n #paystackpop-button {\\n padding: 0 16px;\\n }\\n\\n #apple-pay-close-button {\\n position: absolute;\\n text-align: center;\\n top: 0;\\n right: -26px;\\n height: 16px;\\n width: 16px;\\n padding: 0;\\n display: inline-block;\\n z-index: 3;\\n border-radius: 50%;\\n background: transparent;\\n transition: all 300ms;\\n outline: none;\\n cursor: pointer;\\n border: none;\\n }\\n\\n #apple-pay-close-button svg {\\n width: initial;\\n }\\n \\n #apple-pay-close-button:hover {\\n background-color: #e22b28;\\n }\\n\\n @media only screen and (max-width: 500px) {\\n .pre-checkout-modal__content {\\n max-width: 500px;\\n border-radius: 0;\\n padding-bottom: 0;\\n }\\n\\n .modal-wrapper {\\n padding: 0;\\n }\\n\\n #inline-button-wordmark--white {\\n display: none\\n }\\n \\n #inline-button-wordmark--grey {\\n display: block;\\n width: 100%;\\n margin: 16px 0;\\n height: 13px;\\n }\\n\\n #apple-pay-close-button {\\n display: none;\\n }\\n }\\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:\"key\",required:!0,types:[\"string\"]},{value:\"amount\",required:!0,or:[\"plan\",\"planCode\"],types:[\"string\",\"number\"]},{value:\"currency\",required:!1,types:[\"string\"]},{value:\"email\",required:!0,or:[\"customerCode\"],types:[\"string\"]},{value:\"label\",required:!1,types:[\"string\"]},{value:\"firstName\",required:!1,types:[\"string\"]},{value:\"lastName\",required:!1,types:[\"string\"]},{value:\"reference\",required:!1,types:[\"string\"]},{value:\"phone\",required:!1,types:[\"string\"]},{value:\"customerCode\",required:!1,override:\"email\",types:[\"string\"]},{value:\"channels\",required:!1,types:[\"array\"]},{value:\"paymentRequest\",required:!1,types:[\"string\",\"number\"]},{value:\"paymentPage\",required:!1,types:[\"string\"]},{value:\"hash\",required:!1,types:[\"string\"]},{value:\"container\",required:!1,types:[\"string\"]},{value:\"metadata\",required:!1,types:[\"object\"]},{value:\"subaccountCode\",required:!1,types:[\"string\"]},{value:\"bearer\",required:!1,types:[\"string\"]},{value:\"transactionCharge\",required:!1,types:[\"string\",\"number\"]},{value:\"planCode\",required:!1,override:\"amount\",types:[\"string\"]},{value:\"subscriptionCount\",required:!1,types:[\"number\"]},{value:\"planInterval\",required:!1,types:[\"string\"]},{value:\"subscriptionLimit\",required:!1,types:[\"number\"]},{value:\"subscriptionStartDate\",required:!1,types:[\"string\"]},{value:\"accessCode\",required:!1,types:[\"string\"]},{value:\"onError\",required:!1,types:[\"function\"]},{value:\"onLoad\",required:!1,types:[\"function\"]},{value:\"onSuccess\",required:!1,types:[\"function\"]},{value:\"onCancel\",required:!1,types:[\"function\"]},{value:\"callback\",required:!1,types:[\"function\"]},{value:\"onClose\",required:!1,types:[\"function\"]},{value:\"onBankTransferConfirmationPending\",required:!1,types:[\"function\"]},{value:\"firstname\",required:!1,types:[\"string\"]},{value:\"lastname\",required:!1,types:[\"string\"]},{value:\"customer_code\",required:!1,types:[\"string\"]},{value:\"payment_request\",required:!1,types:[\"string\",\"number\"]},{value:\"subaccount\",required:!1,types:[\"string\"]},{value:\"transaction_charge\",required:!1,types:[\"number\",\"string\"]},{value:\"plan\",required:!1,types:[\"string\"]},{value:\"quantity\",required:!1,types:[\"number\"]},{value:\"interval\",required:!1,types:[\"string\"]},{value:\"invoice_limit\",required:!1,types:[\"number\",\"string\"]},{value:\"start_date\",required:!1,types:[\"string\"]},{value:\"payment_page\",required:!1,types:[\"number\",\"string\"]},{value:\"order_id\",required:!1,types:[\"number\"]},{value:\"ref\",required:!1,types:[\"string\"]},{value:\"card\",required:!1,types:[\"string\"]},{value:\"bank\",required:!1,types:[\"string\"]},{value:\"split\",required:!1,types:[\"object\"]},{value:\"split_code\",required:!1,types:[\"string\"]},{value:\"transaction_type\",required:!1,types:[\"string\"]},{value:\"subscription\",required:!1,types:[\"number\"]},{value:\"language\",required:!1,types:[\"string\"]},{value:\"connect_account\",required:!1,types:[\"string\"]},{value:\"connect_split\",required:!1,types:[\"object\"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split(\"?\")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode=\"popup\",e.split&&\"string\"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&[\"false\",!1].indexOf(a.card)>-1&&(a.channels=[\"bank\"],delete a.card),void 0!==a.bank&&[\"false\",!1].indexOf(a.bank)>-1&&(a.channels=[\"card\"],delete a.bank),[{to:\"firstname\",from:\"firstName\"},{to:\"lastname\",from:\"lastName\"},{to:\"customer_code\",from:\"customerCode\"},{to:\"payment_request\",from:\"paymentRequest\"},{to:\"subaccount\",from:\"subaccountCode\"},{to:\"transaction_charge\",from:\"transactionCharge\"},{to:\"plan\",from:\"planCode\"},{to:\"quantity\",from:\"subscriptionCount\"},{to:\"interval\",from:\"planInterval\"},{to:\"invoice_limit\",from:\"subscriptionLimit\"},{to:\"start_date\",from:\"subscriptionStartDate\"},{to:\"ref\",from:\"reference\"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from])})),Object.values(e).forEach((function(n,t){if(\"function\"==typeof n){var o=Object.keys(e)[t];delete a[o]}})),a}var U=[\"iPad Simulator\",\"iPhone Simulator\",\"iPod Simulator\",\"iPad\",\"iPhone\",\"iPod\"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes(\"Mac\")&&\"ontouchend\"in document},B=function(e,n,t){var a=\"\".concat(m.paystackApiUrl,\"transaction/update_log/\").concat(e),o={Authorization:\"Bearer \".concat(n)};return fetch(a,{method:\"POST\",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t=\"\".concat(m.paystackApiUrl,\"transaction/set_ip/\").concat(e),a={Authorization:\"Bearer \".concat(n)};return fetch(t,{method:\"POST\",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]}},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case\"success\":return this.logApiSuccess(n);case\"failed\":return this.logApiError(e.message);default:return!1}},logValidationResponse:function(e){return this.log.history.push({type:\"action\",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n=\"Attempted to pay\";return e&&(n+=\" with \".concat(e)),this.log.attempts+=1,this.log.history.push({type:\"action\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n=\"Error\";return e&&(n+=\": \".concat(e)),this.log.errors+=1,this.log.history.push({type:\"error\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n=\"Successfully paid\";return e&&(n+=\" with \".concat(e)),this.log.success=!0,this.log.history.push({type:\"success\",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=[\"language\",\"connect_account\"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({\"Content-Type\":\"application/json\"},a&&{\"Accept-Language\":a});return(this.accessCode?fetch(new URL(\"transaction/verify_access_code/\".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL(\"/checkout/request_inline\",m.paystackApiUrl).toString(),{method:\"POST\",body:JSON.stringify(r),headers:n(n({},i),o&&{\"x-connect-account\":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[]}if(!e||\"object\"!==t(e))throw new n(\"Transaction parameters should be a non-empty object\");var a=e;if(\"accessCode\"in a)return{accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e]}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:\"Required parameter missing: \".concat(e.value)})})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);\"object\"===i&&Array.isArray(n)&&(i=\"array\"),o.types.indexOf(i)<=-1&&r.push({message:\"Invalid parameter type: \".concat(e),validTypes:o.types})})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override]})),r.length)throw new n(\"Invalid transaction parameters\",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W)}return r(e,[{key:\"onSetupError\",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e)}},{key:\"onLoad\",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl=\"\".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a})}},{key:\"onSuccess\",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e)}},{key:\"setStatus\",value:function(e){this.status=e}},{key:\"onCancel\",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose()}},{key:\"cancel\",value:function(){this.isActive=!1,this.onCancel()}},{key:\"onBankTransferConfirmationPending\",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending()}},{key:\"logError\",value:function(e){this.errors.push(e)}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('\"'.concat(e,'\" has been deprecated, please use \"').concat(n,'\". ').concat(t||\"\"))}var G,Y=[\"preload\",\"inlineTransaction\"],X=[\"container\",\"styles\",\"onElementsMount\"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||\"abandoned\"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join(\"\")===Object.keys(a).sort().join(\"\"),r=Object.values(t).sort().join(\"\")===Object.values(a).sort().join(\"\"),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:\"inline:url\",path:\"newTransaction\",params:t},\"*\")}var ne=\"trackCheckoutClosed\",te=\"trackPaymentError\",ae=\"trackPaymentAttempt\",oe=\"trackPaymentCompletion\";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e=\"\",n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re(\"A container is required to mount the payment request button\"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_(\"inline-background-\".concat(e));n.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n background: rgba(0, 0, 0, 0.75); \\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n transition: opacity 0.3s;\\n -webkit-transition: opacity 0.3s;\\n visibility: hidden;\\n display: none;\\n\",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\\n \\n \\n\\n \\n \\n \\n \\n Paystack Popup Loader\\n \\n \\n\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n\\n \\n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_(\"inline-checkout-\".concat(t))).src=\"\".concat(m.checkoutUrl,\"popup\"),o.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n visibility: hidden;\\n display: none;\\n height: 100%;\\n\",o.setAttribute(\"allowpaymentrequest\",\"true\"),o.setAttribute(\"allow\",\"payment; clipboard-read; clipboard-write\"),document.body.appendChild(o),o),this.registerListeners()}return r(e,[{key:\"registerListeners\",value:function(){var e=this;window.addEventListener(\"message\",(function(n){var t=\"\".concat(n.origin,\"/\")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n)}))}},{key:\"sendAnalyticsEventToCheckout\",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:\"analytics\",action:e,params:n},\"*\")}},{key:\"checkout\",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\\/[\\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes(\"apple_pay\")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:\"100%\",type:\"pay\",height:\"42px\",padding:\"15px\",borderRadius:\"5px\"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(\".pre-checkout-modal__content\");t.classList.add(\"show\"),setTimeout((function(){a.classList.add(\"show\"),e(!0)}),50)}catch(e){n(e)}})),e(n)})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n)}))):(G.newTransaction({inlineTransaction:n}),e(n))})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e)}))}))}},{key:\"registerPreCheckoutModalEventListeners\",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener(\"touchstart\",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1}),125))}),!0),document.addEventListener(\"touchend\",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn()},this.preCheckoutModal.querySelector(\"#apple-pay-close-button\").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction()}}},{key:\"closePreCheckoutModal\",value:function(e){var n;this.preCheckoutModal&&(\"failed\"===e?(n=this.preCheckoutModal)&&(n.querySelector(\"#apple-pay-mark--light\").innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n',n.querySelector(\"#apple-pay-description\").textContent=\"An error occurred while paying with Apple Pay. Please try again or use another payment method.\"):(!function(e){e&&(e.querySelector(\".pre-checkout-modal__content\").classList.remove(\"show\"),e.classList.remove(\"show\"))}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null))}},{key:\"closePreCheckoutModalAndCancelTransaction\",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage(\"close\",\"*\"),this.closePreCheckoutModal())}},{key:\"newTransaction\",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:\"preloadTransaction\",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:\"paymentRequest\",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector(\"#\".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re(\"A container is required to mount the payment request button\"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e)})).catch((function(){a&&a(null)})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e}r(l)}))})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e)}))}else{if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p}else K(\"This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'\");a&&a(null);var u=G.activeTransaction();r(u)}}))}},{key:\"registerApplePayEventListener\",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()}}},{key:\"registerPaymentRequestEventListeners\",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer)}},{key:\"startApplePay\",value:function(){var e,t,a,o,r,i=this,c=\"apple pay\",s=this.activeTransaction();if(s){var l={channel:\"apple_pay\",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:\"apple_pay\",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:\"NG\",currencyCode:t,merchantCapabilities:[\"supports3DS\",\"supportsCredit\",\"supportsDebit\"],supportedNetworks:[\"visa\",\"masterCard\"],requiredBillingContactFields:[\"postalAddress\",\"name\",\"phone\",\"email\"],total:{label:\"\".concat(o,\" - Paystack\"),type:\"final\",amount:String(x(a))}},\"string\"==typeof r&&\"\"!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c=\"\".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){\"success\"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message)})).catch((function(e){s.onSetupError(e)}))},d.oncancel=function(){G.preCheckoutModal||s.onCancel()},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o=\"\".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),\"success\"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Transaction attempt failed\"})),G.closePreCheckoutModal(e.status)})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Error occurred\"}),G.closePreCheckoutModal(\"failed\")}))},d.begin()}catch(e){s.onSetupError(e)}}else re(\"Could not initiate apple pay transaction\")}},{key:\"resumeTransaction\",value:function(e){return this.newTransaction({accessCode:e})}},{key:\"activeTransaction\",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:\"cancelTransaction\",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close())}},{key:\"respondToEvent\",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case\"loaded:checkout\":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case\"loaded:transaction\":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById(\"app-loader\").style.display=\"none\"),a.onLoad(i);break;case\"error\":\"setup\"===i.type?a.onSetupError(i):a.logError(i);break;case\"cancel\":case\"close\":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case\"transfer:pending\":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case\"success\":this.close(),a.onSuccess(i)}}catch(e){}}}},{key:\"respondToEmbedEvents\",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&(\"string\"==typeof o||o instanceof String)){var r={action:t=(n=o)&&\"string\"==typeof n?n.split(\" \")[0]:null,data:t?n.split(\" \").slice(2).join(\" \"):null};if(r&&\"PaystackClose\"===r.action)r.data&&a.onSuccess(o);\"PaystackTLSClose\"===r.action&&a.cancel()}}},{key:\"animateCheckoutIn\",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t(\"No dom element provided\");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t(\"No dom element provided\"),a.style.display=\"\",a.style.visibility=\"visible\",o.style.display=\"\",o.style.visibility=\"visible\",n()}))).then((function(){n.checkoutIframe.contentWindow.postMessage(\"render\",\"*\")})),this.isOpen=!0}}},{key:\"open\",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn())}},{key:\"close\",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t(\"No dom element provided\");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t(\"No dom element provided\"),o.style.opacity=0,a.style.display=\"none\",a.style.visibility=\"hidden\",setTimeout((function(){o.style.display=\"none\",o.style.visibility=\"hidden\",o.style.opacity=1,e()}),300)}))).then((function(){e.checkoutIframe.contentWindow.postMessage(\"close\",\"*\")})),this.isOpen=!1}}},{key:\"isLoaded\",value:function(){return this.isLoaded}}],[{key:\"setup\",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q(\"PaystackPop.setup()\",\"new PaystackPop()\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\");var a=G.newTransaction(n,\"deprecated\"),o=a.urlParameters;if(t){var r=\"\".concat(m.siteUrl,\"/assets/payment/production/inline.html?\").concat(y(o)),i=function(e,n){var t=_(\"embed-checkout-\".concat(e));return t.style.cssText=\"\\n background: transparent;\\n background: rgba(0,0,0,0);\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n nmargin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n visibility: hidden;\\n display: none;\\n\",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML=\"\",t.removeAttribute(\"style\"),t.className=\"paystack-embed-container\",t.style.position=\"relative\",t.style.width=\"100%\",t.appendChild(n)}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage(\"PaystackOpen \".concat(G.id),\"*\"),e=i,new Promise((function(n,t){e||t(\"No dom element provided\"),e.style.display=\"\",e.style.visibility=\"visible\",n()}))}}else a.openIframe=function(){Q(\"openIframe\",\"open\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\"),G.open(o)};return a}}]),e}();if(ie=g().length>0,ce=f()&&\"FORM\"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split(\"data-\")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error(\"Please make sure the buttonId is an element available in the DOM\");var t=n({},e);t.buttonText=e.buttonText||\"Pay\",t.buttonVariant=\"normal\",t.buttonWordmarkVariant=\"normal\";var a=[\"normal\",\"light\"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute(\"data-inline-id\",e.id);else{var t=document.createElement(\"div\");t.id=\"inline-button-\".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\\n \\n \\n ',light:b};return\"\\n \\n \\n
\\n ').concat(a[e.wordmarkVariant||\"normal\"],\"\\n
\\n \")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName(\"button\"),1)[0]}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener(\"click\",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:\"hidden\",name:\"reference\",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement(\"input\")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit()}}))}))}export{se as default};\n","import PaystackPop from '@paystack/inline-js';\n\nexport const callPaystackPop = (paystackArgs: Record): void => {\n const paystack = new PaystackPop();\n paystack.newTransaction(paystackArgs);\n};\n","import {HookConfig, InitializePayment} from './types';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: HookConfig): InitializePayment {\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata,\n currency = 'NGN',\n channels,\n label,\n plan,\n quantity,\n subaccount,\n transaction_charge,\n bearer,\n split,\n split_code,\n connect_account,\n connect_split,\n onBankTransferConfirmationPending,\n } = args;\n const paystackArgs: Record = {\n onSuccess: onSuccess ? onSuccess : () => null,\n onCancel: onClose ? onClose : () => null,\n key: publicKey,\n email,\n amount,\n ...(firstname && {firstname}),\n ...(lastname && {lastname}),\n ...(phone && {phone}),\n ...(reference && {ref: reference}),\n ...(currency && {currency}),\n ...(channels && {channels}),\n ...(metadata && {metadata}),\n ...(label && {label}),\n ...(onBankTransferConfirmationPending && {onBankTransferConfirmationPending}),\n ...(subaccount && {subaccount}),\n ...(transaction_charge && {transaction_charge}),\n ...(bearer && {bearer}),\n ...(split && {split}),\n ...(split_code && {split_code}),\n ...(plan && {plan}),\n ...(quantity && {quantity}),\n ...(connect_split && {connect_split}),\n ...(connect_account && {connect_account}),\n };\n\n callPaystackPop(paystackArgs);\n }\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose : (): any => null;\n return (\n \n {children}\n \n );\n },\n);\n\nexport default PaystackConsumer;\n"],"names":["PaystackPop"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAA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,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/example/src/dist/index.js b/example/src/dist/index.js index 3a47f46..6bc85a2 100644 --- a/example/src/dist/index.js +++ b/example/src/dist/index.js @@ -2,282 +2,101 @@ var React = require('react'); -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise, SuppressedError, Symbol */ - -var __assign = function () { - __assign = - Object.assign || - function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global Reflect, Promise, SuppressedError, Symbol */ + + +var __assign = function() { + __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; + +function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +} + +typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { + var e = new Error(message); + return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; }; -function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === 'function') - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} +function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a);}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t]);}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e;}finally{try{i||null==t.return||t.return();}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}));}return e}var b='\n \n \n \n';var k={height:"50px",width:"auto",borderRadius:"3px",padding:"10px",locale:"en",type:"pay"},w=function(e){return e&&"object"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:"application/json, text/plain, */*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/x-www-form-urlencoded","sec-ch-ua-mobile":"?0","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"cross-site"},referrerPolicy:"no-referrer-when-downgrade",method:"POST",mode:"cors",credentials:"omit"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r="".concat(a,"=").concat(o);return [].concat(l(n),[r])}),[]).join("&")}var L=function(e){return {biannually:"BIANNUAL PLAN",annually:"ANNUAL PLAN"}[e]||"".concat(e.toUpperCase()," PLAN")},V=function(){try{return window.location&&"https:"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return !1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes("apple_pay")};function _(e){var n=document.createElement("iframe");return n.setAttribute("frameBorder","0"),n.setAttribute("allowtransparency","true"),n.id=e,n.style.display="none",n}function E(e){return e.querySelector("apple-pay-button")||e.querySelector("#apple-pay-button")}function q(e){return document.querySelector("#".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a("No script url");var o=document.createElement("script");o.src=e,o.addEventListener("load",(function(){t(!0);})),o.addEventListener("error",(function(){o.remove(),a(!1);})),n?n.appendChild(o):document.head.appendChild(o);}))})("https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error("Incorrect data type for 'webpackJsonp', expected array, got ".concat(t(window.webpackJsonp),". Switching to fallback apple pay button"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return "\n apple-pay-button {\n --apple-pay-button-width: ".concat(t,";\n --apple-pay-button-height: ").concat(n,";\n --apple-pay-button-border-radius: ").concat(a,";\n --apple-pay-button-padding: ").concat(o,";\n --apple-pay-button-box-sizing: border-box;\n width: ").concat(t,";\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("apple-pay-button");i.setAttribute("buttonstyle","light"===a?"white":"black"),i.setAttribute("type",t.type),i.setAttribute("locale",t.locale),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement("style"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return "\n @supports (-webkit-appearance: -apple-pay-button) { \n .apple-pay-button {\n display: inline-block;\n -webkit-appearance: -apple-pay-button;\n width: ".concat(t,";\n height: ").concat(n,";\n border-radius: ").concat(a,";\n padding: ").concat(o,";\n -apple-pay-button-type: ").concat(r,";\n -webkit-locale: ").concat(i,";\n }\n .apple-pay-button-black {\n -apple-pay-button-style: black;\n }\n .apple-pay-button-white {\n -apple-pay-button-style: white;\n }\n .apple-pay-button-white-with-line {\n -apple-pay-button-style: white-outline;\n }\n }\n\n @supports not (-webkit-appearance: -apple-pay-button) {\n .apple-pay-button {\n display: inline-block;\n background-size: 100% 60%;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n border-radius: 5px;\n padding: 0px;\n box-sizing: border-box;\n min-width: 200px;\n min-height: 32px;\n max-height: 64px;\n }\n .apple-pay-button-black {\n background-image: -webkit-named-image(apple-pay-logo-white);\n background-color: black;\n }\n .apple-pay-button-white {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n }\n .apple-pay-button-white-with-line {\n background-image: -webkit-named-image(apple-pay-logo-black);\n background-color: white;\n border: .5px solid black;\n }\n }\n")}(t);o.type="text/css",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement("button");i.classList.add("apple-pay-button","light"===a?"apple-pay-button-white":"apple-pay-button-black"),i.id="apple-pay-button";var c=document.createElement("span");c.classList.add("logo"),i.appendChild(c),e.appendChild(i);}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s);}));}else o("No wallet payment method is available on this device");else o("Container to mount elements was not provided");}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild);}function I(e){return e.querySelector("#paystackpop-button")}function z(e){return e.querySelector("#payment-request-button")}function O(e,n){var t=document.querySelector("#pre-checkout-modal-".concat(e));if(t){if(I(t)&&z(t))return t;t.remove();}var a,o=document.createElement("div");o.classList.add("pre-checkout-modal"),o.id="pre-checkout-modal-".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll("body *")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t);})),a+1);var r=document.createElement("div");r.classList.add("pre-checkout-modal__content"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement("div"),C=new Intl.NumberFormat("en",{style:"currency",currency:u,currencyDisplay:"code",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add("payment-info"),h.innerHTML='\n
\n
').concat(d||l,'
\n
Pay ').concat(C,"
\n
"),r.appendChild(h),r.innerHTML+='\n \n';var m=document.createElement("div");m.classList.add("modal-wrapper"),m.innerHTML='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n';var y=document.createElement("p");y.id="apple-pay-description",y.innerHTML="Pay with Apple Pay to complete your purchase without filling a form",m.appendChild(y);var f=document.createElement("div");f.id="payment-request-button",m.appendChild(f);var v=document.createElement("button");v.id="paystackpop-button",v.innerText="More payment options",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\n\n\n\n',r.appendChild(m);var g=document.createElement("style");return g.textContent='\n .pre-checkout-modal {\n display: none;\n position: fixed;\n z-index: 1;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100%;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.75);\n transition: all 0.2s ease;\n }\n\n .pre-checkout-modal.show {\n display: block;\n }\n\n .pre-checkout-modal__content {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n background-color: #fefefe;\n padding: 30px 24px;\n padding-bottom: max(30px, env(safe-area-inset-bottom));\n width: 100%;\n border-radius: 6px 6px 0 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 450px;\n\n box-sizing: border-box;\n transform: translateY(238px);\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\n }\n\n .modal-wrapper {\n padding: 0 16px;\n }\n\n .payment-info {\n position: relative;\n padding-bottom: 15px;\n border-bottom: solid 1px whitesmoke;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n .customer-email {\n color: #737373;\n font-size: 13px;\n line-height: 16px;\n }\n\n .customer-info {\n flex: 1;\n text-align: right;\n }\n\n .merchant-logo {\n display: flex;\n align-items: center;\n height: 30px;\n }\n .transaction-amount {\n margin-top: 5px;\n font-size: 13px;\n line-height: 16px;\n color: #737373;\n }\n\n .amount {\n color: #29b263;\n font-weight: bold;\n }\n\n @media only screen and (min-width: 500px) {\n .pre-checkout-modal__content {\n bottom: 0;\n top: 0;\n margin: auto;\n border-radius: 6px;\n height: fit-content;\n }\n }\n\n .pre-checkout-modal__content.show {\n transform: translateY(0);\n margin: 0 auto;\n margin-top: 100px;\n }\n\n .pre-checkout-modal__content > * {\n margin-top: 0;\n margin-bottom: 40px;\n }\n .pre-checkout-modal__content > *:last-child {\n margin-bottom: 0;\n }\n\n .pre-checkout-modal__content svg {\n margin: auto;\n width: 100%;\n }\n\n #inline-button-wordmark--white {\n position: absolute;\n bottom: -50px;\n margin: auto;\n right: 0;\n width: fit-content;\n }\n\n #inline-button-wordmark--grey {\n display: none;\n }\n\n .pre-checkout-modal__content #apple-pay-mark--light {\n margin-bottom: 16px;\n }\n\n .pre-checkout-modal p {\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n color: #4E4E4E;\n line-height: 28px;\n font-size: 14px;\n font-weight: 500;\n margin: 0;\n padding: 0 20px;\n text-align: center;\n letter-spacing: -0.3px;\n }\n\n .pre-checkout-modal button {\n height: 42px;\n width: 100%;\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\n border: 1px solid #49a861;\n box-sizing: border-box;\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\n border-radius: 5px;\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\n color: #ffffff;\n font-weight: 600;\n font-size: 14px;\n line-height: 14px;\n cursor: pointer;\n\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",\n "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;\n }\n\n #payment-request-button {\n width: 100%;\n height: fit-content;\n margin: 24px 0 16px 0;\n }\n\n #paystackpop-button {\n padding: 0 16px;\n }\n\n #apple-pay-close-button {\n position: absolute;\n text-align: center;\n top: 0;\n right: -26px;\n height: 16px;\n width: 16px;\n padding: 0;\n display: inline-block;\n z-index: 3;\n border-radius: 50%;\n background: transparent;\n transition: all 300ms;\n outline: none;\n cursor: pointer;\n border: none;\n }\n\n #apple-pay-close-button svg {\n width: initial;\n }\n \n #apple-pay-close-button:hover {\n background-color: #e22b28;\n }\n\n @media only screen and (max-width: 500px) {\n .pre-checkout-modal__content {\n max-width: 500px;\n border-radius: 0;\n padding-bottom: 0;\n }\n\n .modal-wrapper {\n padding: 0;\n }\n\n #inline-button-wordmark--white {\n display: none\n }\n \n #inline-button-wordmark--grey {\n display: block;\n width: 100%;\n margin: 16px 0;\n height: 13px;\n }\n\n #apple-pay-close-button {\n display: none;\n }\n }\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:"key",required:!0,types:["string"]},{value:"amount",required:!0,or:["plan","planCode"],types:["string","number"]},{value:"currency",required:!1,types:["string"]},{value:"email",required:!0,or:["customerCode"],types:["string"]},{value:"label",required:!1,types:["string"]},{value:"firstName",required:!1,types:["string"]},{value:"lastName",required:!1,types:["string"]},{value:"reference",required:!1,types:["string"]},{value:"phone",required:!1,types:["string"]},{value:"customerCode",required:!1,override:"email",types:["string"]},{value:"channels",required:!1,types:["array"]},{value:"paymentRequest",required:!1,types:["string","number"]},{value:"paymentPage",required:!1,types:["string"]},{value:"hash",required:!1,types:["string"]},{value:"container",required:!1,types:["string"]},{value:"metadata",required:!1,types:["object"]},{value:"subaccountCode",required:!1,types:["string"]},{value:"bearer",required:!1,types:["string"]},{value:"transactionCharge",required:!1,types:["string","number"]},{value:"planCode",required:!1,override:"amount",types:["string"]},{value:"subscriptionCount",required:!1,types:["number"]},{value:"planInterval",required:!1,types:["string"]},{value:"subscriptionLimit",required:!1,types:["number"]},{value:"subscriptionStartDate",required:!1,types:["string"]},{value:"accessCode",required:!1,types:["string"]},{value:"onError",required:!1,types:["function"]},{value:"onLoad",required:!1,types:["function"]},{value:"onSuccess",required:!1,types:["function"]},{value:"onCancel",required:!1,types:["function"]},{value:"callback",required:!1,types:["function"]},{value:"onClose",required:!1,types:["function"]},{value:"onBankTransferConfirmationPending",required:!1,types:["function"]},{value:"firstname",required:!1,types:["string"]},{value:"lastname",required:!1,types:["string"]},{value:"customer_code",required:!1,types:["string"]},{value:"payment_request",required:!1,types:["string","number"]},{value:"subaccount",required:!1,types:["string"]},{value:"transaction_charge",required:!1,types:["number","string"]},{value:"plan",required:!1,types:["string"]},{value:"quantity",required:!1,types:["number"]},{value:"interval",required:!1,types:["string"]},{value:"invoice_limit",required:!1,types:["number","string"]},{value:"start_date",required:!1,types:["string"]},{value:"payment_page",required:!1,types:["number","string"]},{value:"order_id",required:!1,types:["number"]},{value:"ref",required:!1,types:["string"]},{value:"card",required:!1,types:["string"]},{value:"bank",required:!1,types:["string"]},{value:"split",required:!1,types:["object"]},{value:"split_code",required:!1,types:["string"]},{value:"transaction_type",required:!1,types:["string"]},{value:"subscription",required:!1,types:["number"]},{value:"language",required:!1,types:["string"]},{value:"connect_account",required:!1,types:["string"]},{value:"connect_split",required:!1,types:["object"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split("?")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode="popup",e.split&&"string"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&["false",!1].indexOf(a.card)>-1&&(a.channels=["bank"],delete a.card),void 0!==a.bank&&["false",!1].indexOf(a.bank)>-1&&(a.channels=["card"],delete a.bank),[{to:"firstname",from:"firstName"},{to:"lastname",from:"lastName"},{to:"customer_code",from:"customerCode"},{to:"payment_request",from:"paymentRequest"},{to:"subaccount",from:"subaccountCode"},{to:"transaction_charge",from:"transactionCharge"},{to:"plan",from:"planCode"},{to:"quantity",from:"subscriptionCount"},{to:"interval",from:"planInterval"},{to:"invoice_limit",from:"subscriptionLimit"},{to:"start_date",from:"subscriptionStartDate"},{to:"ref",from:"reference"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from]);})),Object.values(e).forEach((function(n,t){if("function"==typeof n){var o=Object.keys(e)[t];delete a[o];}})),a}var U=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes("Mac")&&"ontouchend"in document},B=function(e,n,t){var a="".concat(m.paystackApiUrl,"transaction/update_log/").concat(e),o={Authorization:"Bearer ".concat(n)};return fetch(a,{method:"POST",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t="".concat(m.paystackApiUrl,"transaction/set_ip/").concat(e),a={Authorization:"Bearer ".concat(n)};return fetch(t,{method:"POST",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]};},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case"success":return this.logApiSuccess(n);case"failed":return this.logApiError(e.message);default:return !1}},logValidationResponse:function(e){return this.log.history.push({type:"action",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n="Attempted to pay";return e&&(n+=" with ".concat(e)),this.log.attempts+=1,this.log.history.push({type:"action",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n="Error";return e&&(n+=": ".concat(e)),this.log.errors+=1,this.log.history.push({type:"error",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n="Successfully paid";return e&&(n+=" with ".concat(e)),this.log.success=!0,this.log.history.push({type:"success",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=["language","connect_account"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({"Content-Type":"application/json"},a&&{"Accept-Language":a});return (this.accessCode?fetch(new URL("transaction/verify_access_code/".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL("/checkout/request_inline",m.paystackApiUrl).toString(),{method:"POST",body:JSON.stringify(r),headers:n(n({},i),o&&{"x-connect-account":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[];}if(!e||"object"!==t(e))throw new n("Transaction parameters should be a non-empty object");var a=e;if("accessCode"in a)return {accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e];}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:"Required parameter missing: ".concat(e.value)});})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);"object"===i&&Array.isArray(n)&&(i="array"),o.types.indexOf(i)<=-1&&r.push({message:"Invalid parameter type: ".concat(e),validTypes:o.types});})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override];})),r.length)throw new n("Invalid transaction parameters",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W);}return r(e,[{key:"onSetupError",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e);}},{key:"onLoad",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl="".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a});}},{key:"onSuccess",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e);}},{key:"setStatus",value:function(e){this.status=e;}},{key:"onCancel",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose();}},{key:"cancel",value:function(){this.isActive=!1,this.onCancel();}},{key:"onBankTransferConfirmationPending",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending();}},{key:"logError",value:function(e){this.errors.push(e);}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('"'.concat(e,'" has been deprecated, please use "').concat(n,'". ').concat(t||""));}var G,Y=["preload","inlineTransaction"],X=["container","styles","onElementsMount"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||"abandoned"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join("")===Object.keys(a).sort().join(""),r=Object.values(t).sort().join("")===Object.values(a).sort().join(""),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:"inline:url",path:"newTransaction",params:t},"*");}var ne="trackCheckoutClosed",te="trackPaymentError",ae="trackPaymentAttempt",oe="trackPaymentCompletion";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re("A container is required to mount the payment request button"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_("inline-background-".concat(e));n.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n background: rgba(0, 0, 0, 0.75); \n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transition: opacity 0.3s;\n -webkit-transition: opacity 0.3s;\n visibility: hidden;\n display: none;\n",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\n \n \n\n \n \n \n \n Paystack Popup Loader\n \n \n\n \n
\n
\n
\n
\n
\n
\n \n\n \n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_("inline-checkout-".concat(t))).src="".concat(m.checkoutUrl,"popup"),o.style.cssText="\n z-index: 999999999999999;\n background: transparent;\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n margin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n visibility: hidden;\n display: none;\n height: 100%;\n",o.setAttribute("allowpaymentrequest","true"),o.setAttribute("allow","payment; clipboard-read; clipboard-write"),document.body.appendChild(o),o),this.registerListeners();}return r(e,[{key:"registerListeners",value:function(){var e=this;window.addEventListener("message",(function(n){var t="".concat(n.origin,"/")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n);}));}},{key:"sendAnalyticsEventToCheckout",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:"analytics",action:e,params:n},"*");}},{key:"checkout",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\/[\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes("apple_pay")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:"100%",type:"pay",height:"42px",padding:"15px",borderRadius:"5px"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(".pre-checkout-modal__content");t.classList.add("show"),setTimeout((function(){a.classList.add("show"),e(!0);}),50);}catch(e){n(e);}})),e(n);})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n);}))):(G.newTransaction({inlineTransaction:n}),e(n));})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e);}));}))}},{key:"registerPreCheckoutModalEventListeners",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener("touchstart",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1;}),125));}),!0),document.addEventListener("touchend",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1;}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn();},this.preCheckoutModal.querySelector("#apple-pay-close-button").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction();};}},{key:"closePreCheckoutModal",value:function(e){var n;this.preCheckoutModal&&("failed"===e?(n=this.preCheckoutModal)&&(n.querySelector("#apple-pay-mark--light").innerHTML='\n \n \n \n \n \n \n \n',n.querySelector("#apple-pay-description").textContent="An error occurred while paying with Apple Pay. Please try again or use another payment method."):(!function(e){e&&(e.querySelector(".pre-checkout-modal__content").classList.remove("show"),e.classList.remove("show"));}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null));}},{key:"closePreCheckoutModalAndCancelTransaction",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage("close","*"),this.closePreCheckoutModal());}},{key:"newTransaction",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:"preloadTransaction",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:"paymentRequest",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector("#".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re("A container is required to mount the payment request button"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e);})).catch((function(){a&&a(null);})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e;}r(l);}));})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e);}));}else {if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p;}else K("This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'");a&&a(null);var u=G.activeTransaction();r(u);}}))}},{key:"registerApplePayEventListener",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()};}},{key:"registerPaymentRequestEventListeners",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer);}},{key:"startApplePay",value:function(){var e,t,a,o,r,i=this,c="apple pay",s=this.activeTransaction();if(s){var l={channel:"apple_pay",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:"apple_pay",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:"NG",currencyCode:t,merchantCapabilities:["supports3DS","supportsCredit","supportsDebit"],supportedNetworks:["visa","masterCard"],requiredBillingContactFields:["postalAddress","name","phone","email"],total:{label:"".concat(o," - Paystack"),type:"final",amount:String(x(a))}},"string"==typeof r&&""!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c="".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){"success"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message);})).catch((function(e){s.onSetupError(e);}));},d.oncancel=function(){G.preCheckoutModal||s.onCancel();},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o="".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),"success"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Transaction attempt failed"})),G.closePreCheckoutModal(e.status);})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:"apple_pay",message:e&&e.message||"Error occurred"}),G.closePreCheckoutModal("failed");}));},d.begin();}catch(e){s.onSetupError(e);}}else re("Could not initiate apple pay transaction");}},{key:"resumeTransaction",value:function(e){return this.newTransaction({accessCode:e})}},{key:"activeTransaction",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:"cancelTransaction",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close());}},{key:"respondToEvent",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case"loaded:checkout":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case"loaded:transaction":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById("app-loader").style.display="none"),a.onLoad(i);break;case"error":"setup"===i.type?a.onSetupError(i):a.logError(i);break;case"cancel":case"close":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case"transfer:pending":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case"success":this.close(),a.onSuccess(i);}}catch(e){}}}},{key:"respondToEmbedEvents",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&("string"==typeof o||o instanceof String)){var r={action:t=(n=o)&&"string"==typeof n?n.split(" ")[0]:null,data:t?n.split(" ").slice(2).join(" "):null};if(r&&"PaystackClose"===r.action)r.data&&a.onSuccess(o);"PaystackTLSClose"===r.action&&a.cancel();}}},{key:"animateCheckoutIn",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t("No dom element provided");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t("No dom element provided"),a.style.display="",a.style.visibility="visible",o.style.display="",o.style.visibility="visible",n();}))).then((function(){n.checkoutIframe.contentWindow.postMessage("render","*");})),this.isOpen=!0;}}},{key:"open",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn());}},{key:"close",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t("No dom element provided");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t("No dom element provided"),o.style.opacity=0,a.style.display="none",a.style.visibility="hidden",setTimeout((function(){o.style.display="none",o.style.visibility="hidden",o.style.opacity=1,e();}),300);}))).then((function(){e.checkoutIframe.contentWindow.postMessage("close","*");})),this.isOpen=!1;}}},{key:"isLoaded",value:function(){return this.isLoaded}}],[{key:"setup",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q("PaystackPop.setup()","new PaystackPop()","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline");var a=G.newTransaction(n,"deprecated"),o=a.urlParameters;if(t){var r="".concat(m.siteUrl,"/assets/payment/production/inline.html?").concat(y(o)),i=function(e,n){var t=_("embed-checkout-".concat(e));return t.style.cssText="\n background: transparent;\n background: rgba(0,0,0,0);\n border: 0px none transparent;\n overflow-x: hidden;\n overflow-y: hidden;\n nmargin: 0;\n padding: 0;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n visibility: hidden;\n display: none;\n",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML="",t.removeAttribute("style"),t.className="paystack-embed-container",t.style.position="relative",t.style.width="100%",t.appendChild(n);}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage("PaystackOpen ".concat(G.id),"*"),e=i,new Promise((function(n,t){e||t("No dom element provided"),e.style.display="",e.style.visibility="visible",n();}));};}else a.openIframe=function(){Q("openIframe","open","Please consult our documentation at https://developers.paystack.co/docs/paystack-inline"),G.open(o);};return a}}]),e}();if(ie=g().length>0,ce=f()&&"FORM"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split("data-")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a;})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error("Please make sure the buttonId is an element available in the DOM");var t=n({},e);t.buttonText=e.buttonText||"Pay",t.buttonVariant="normal",t.buttonWordmarkVariant="normal";var a=["normal","light"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute("data-inline-id",e.id);else {var t=document.createElement("div");t.id="inline-button-".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\n \n \n ',light:b};return "\n \n \n
\n ').concat(a[e.wordmarkVariant||"normal"],"\n
\n ")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName("button"),1)[0];}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener("click",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:"hidden",name:"reference",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement("input")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit();}}));}));} -typeof SuppressedError === 'function' - ? SuppressedError - : function (error, suppressed, message) { - var e = new Error(message); - return (e.name = 'SuppressedError'), (e.error = error), (e.suppressed = suppressed), e; - }; - -var cachedScripts = []; -function usePaystackScript() { - var src = 'https://js.paystack.co/v1/inline.js'; - var _a = React.useState({ - loaded: false, - error: false, - }), - state = _a[0], - setState = _a[1]; - React.useEffect( - function () { - if (cachedScripts.includes(src)) { - setState({ - loaded: true, - error: false, - }); - } else { - cachedScripts.push(src); - var script_1 = document.createElement('script'); - script_1.src = src; - script_1.async = true; - var onScriptLoad_1 = function () { - setState({ - loaded: true, - error: false, - }); - }; - var onScriptError_1 = function () { - var index = cachedScripts.indexOf(src); - if (index >= 0) cachedScripts.splice(index, 1); - script_1.remove(); - setState({ - loaded: true, - error: true, - }); - }; - script_1.addEventListener('load', onScriptLoad_1); - script_1.addEventListener('complete', onScriptLoad_1); - script_1.addEventListener('error', onScriptError_1); - document.body.appendChild(script_1); - return function () { - script_1.removeEventListener('load', onScriptLoad_1); - script_1.removeEventListener('error', onScriptError_1); - }; - } - }, - [src], - ); - return [state.loaded, state.error]; -} - -/* eslint-disable */ var callPaystackPop = function (paystackArgs) { - // @ts-ignore - var handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs); - handler && handler.openIframe(); + var paystack = new se(); + paystack.newTransaction(paystackArgs); }; function usePaystackPayment(hookConfig) { - var _a = usePaystackScript(), - scriptLoaded = _a[0], - scriptError = _a[1]; - function initializePayment(_a) { - var config = _a.config, - onSuccess = _a.onSuccess, - onClose = _a.onClose; - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - var args = __assign(__assign({}, hookConfig), config); - var publicKey = args.publicKey, - firstname = args.firstname, - lastname = args.lastname, - phone = args.phone, - email = args.email, - amount = args.amount, - reference = args.reference, - _b = args.metadata, - metadata = _b === void 0 ? {} : _b, - _c = args.currency, - currency = _c === void 0 ? 'NGN' : _c, - channels = args.channels, - _d = args.label, - label = _d === void 0 ? '' : _d, - _e = args.plan, - plan = _e === void 0 ? '' : _e, - _f = args.quantity, - quantity = _f === void 0 ? '' : _f, - _g = args.subaccount, - subaccount = _g === void 0 ? '' : _g, - _h = args.transaction_charge, - transaction_charge = _h === void 0 ? 0 : _h, - _j = args.bearer, - bearer = _j === void 0 ? 'account' : _j, - split = args.split, - split_code = args.split_code; - if (scriptLoaded) { - var paystackArgs = { - callback: onSuccess - ? onSuccess - : function () { - return null; - }, - onClose: onClose - ? onClose - : function () { - return null; - }, - key: publicKey, - ref: reference, - email: email, - firstname: firstname, - lastname: lastname, - phone: phone, - amount: amount, - currency: currency, - plan: plan, - quantity: quantity, - channels: channels, - subaccount: subaccount, - transaction_charge: transaction_charge, - bearer: bearer, - label: label, - metadata: metadata, - split: split, - split_code: split_code, - 'data-custom-button': args['data-custom-button'] || '', - }; - callPaystackPop(paystackArgs); + function initializePayment(_a) { + var config = _a.config, onSuccess = _a.onSuccess, onClose = _a.onClose; + var args = __assign(__assign({}, hookConfig), config); + var publicKey = args.publicKey, firstname = args.firstname, lastname = args.lastname, phone = args.phone, email = args.email, amount = args.amount, reference = args.reference, metadata = args.metadata, _b = args.currency, currency = _b === void 0 ? 'NGN' : _b, channels = args.channels, label = args.label, plan = args.plan, quantity = args.quantity, subaccount = args.subaccount, transaction_charge = args.transaction_charge, bearer = args.bearer, split = args.split, split_code = args.split_code, connect_account = args.connect_account, connect_split = args.connect_split, onBankTransferConfirmationPending = args.onBankTransferConfirmationPending; + var paystackArgs = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ onSuccess: onSuccess ? onSuccess : function () { return null; }, onCancel: onClose ? onClose : function () { return null; }, key: publicKey, email: email, amount: amount }, (firstname && { firstname: firstname })), (lastname && { lastname: lastname })), (phone && { phone: phone })), (reference && { ref: reference })), (currency && { currency: currency })), (channels && { channels: channels })), (metadata && { metadata: metadata })), (label && { label: label })), (onBankTransferConfirmationPending && { onBankTransferConfirmationPending: onBankTransferConfirmationPending })), (subaccount && { subaccount: subaccount })), (transaction_charge && { transaction_charge: transaction_charge })), (bearer && { bearer: bearer })), (split && { split: split })), (split_code && { split_code: split_code })), (plan && { plan: plan })), (quantity && { quantity: quantity })), (connect_split && { connect_split: connect_split })), (connect_account && { connect_account: connect_account })); + callPaystackPop(paystackArgs); } - } - React.useEffect( - function () { - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - }, - [scriptError], - ); - return initializePayment; + return initializePayment; } var PaystackButton = function (_a) { - var text = _a.text, - className = _a.className, - children = _a.children, - onSuccess = _a.onSuccess, - onClose = _a.onClose, - config = __rest(_a, ['text', 'className', 'children', 'onSuccess', 'onClose']); - var initializePayment = usePaystackPayment(config); - return React.createElement( - 'button', - { - className: className, - onClick: function () { - return initializePayment({config: config, onSuccess: onSuccess, onClose: onClose}); - }, - }, - text || children, - ); + var text = _a.text, className = _a.className, children = _a.children, onSuccess = _a.onSuccess, onClose = _a.onClose, config = __rest(_a, ["text", "className", "children", "onSuccess", "onClose"]); + var initializePayment = usePaystackPayment(config); + return (React.createElement("button", { className: className, onClick: function () { return initializePayment({ config: config, onSuccess: onSuccess, onClose: onClose }); } }, text || children)); }; var PaystackContext = React.createContext({ - config: {}, - initializePayment: function () { - return null; - }, - onSuccess: function () { - return null; - }, - onClose: function () { - return null; - }, + config: {}, + initializePayment: function () { return null; }, + onSuccess: function () { return null; }, + onClose: function () { return null; }, }); var PaystackProvider = function (_a) { - var children = _a.children, - onSuccess = _a.onSuccess, - onClose = _a.onClose, - config = __rest(_a, ['children', 'onSuccess', 'onClose']); - var initializePayment = usePaystackPayment(config); - return React.createElement( - PaystackContext.Provider, - { - value: { - config: config, - initializePayment: initializePayment, - onSuccess: onSuccess, - onClose: onClose, - }, - }, - children, - ); + var children = _a.children, onSuccess = _a.onSuccess, onClose = _a.onClose, config = __rest(_a, ["children", "onSuccess", "onClose"]); + var initializePayment = usePaystackPayment(config); + return (React.createElement(PaystackContext.Provider, { value: { config: config, initializePayment: initializePayment, onSuccess: onSuccess, onClose: onClose } }, children)); }; var PaystackConsumerChild = function (_a) { - var children = _a.children, - ref = _a.ref; - var _b = React.useContext(PaystackContext), - config = _b.config, - initializePayment = _b.initializePayment, - onSuccess = _b.onSuccess, - onClose = _b.onClose; - var completeInitializePayment = function () { - return initializePayment({config: config, onSuccess: onSuccess, onClose: onClose}); - }; - return children({initializePayment: completeInitializePayment, ref: ref}); + var children = _a.children, ref = _a.ref; + var _b = React.useContext(PaystackContext), config = _b.config, initializePayment = _b.initializePayment, onSuccess = _b.onSuccess, onClose = _b.onClose; + var completeInitializePayment = function () { return initializePayment({ config: config, onSuccess: onSuccess, onClose: onClose }); }; + return children({ initializePayment: completeInitializePayment, ref: ref }); }; // eslint-disable-next-line react/display-name var PaystackConsumer = React.forwardRef(function (_a, ref) { - var children = _a.children, - paraSuccess = _a.onSuccess, - paraClose = _a.onClose, - others = __rest(_a, ['children', 'onSuccess', 'onClose']); - var onSuccess = paraSuccess - ? paraSuccess - : function () { - return null; - }; - var onClose = paraClose - ? paraClose - : function () { - return null; - }; - return React.createElement( - PaystackProvider, - __assign({}, others, {onSuccess: onSuccess, onClose: onClose}), - React.createElement(PaystackConsumerChild, {ref: ref}, children), - ); + var children = _a.children, paraSuccess = _a.onSuccess, paraClose = _a.onClose, others = __rest(_a, ["children", "onSuccess", "onClose"]); + var onSuccess = paraSuccess ? paraSuccess : function () { return null; }; + var onClose = paraClose ? paraClose : function () { return null; }; + return (React.createElement(PaystackProvider, __assign({}, others, { onSuccess: onSuccess, onClose: onClose }), + React.createElement(PaystackConsumerChild, { ref: ref }, children))); }); exports.PaystackButton = PaystackButton; diff --git a/example/src/dist/index.js.map b/example/src/dist/index.js.map index 608e889..7f8d933 100644 --- a/example/src/dist/index.js.map +++ b/example/src/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../libs/paystack-script.ts","../libs/paystack-actions.ts","../libs/use-paystack.ts","../libs/paystack-button.tsx","../libs/paystack-context.ts","../libs/paystack-provider.tsx","../libs/paystack-consumer.tsx"],"sourcesContent":["import {useState, useEffect} from 'react';\n\nconst cachedScripts: string[] = [];\ninterface IScriptResult {\n loaded: boolean;\n error: boolean;\n}\n\nexport default function usePaystackScript(): boolean[] {\n const src = 'https://js.paystack.co/v1/inline.js';\n\n const [state, setState] = useState({\n loaded: false,\n error: false,\n });\n\n useEffect((): any => {\n if (cachedScripts.includes(src)) {\n setState({\n loaded: true,\n error: false,\n });\n } else {\n cachedScripts.push(src);\n\n const script = document.createElement('script');\n script.src = src;\n script.async = true;\n\n const onScriptLoad = (): void => {\n setState({\n loaded: true,\n error: false,\n });\n };\n\n const onScriptError = (): void => {\n const index = cachedScripts.indexOf(src);\n if (index >= 0) cachedScripts.splice(index, 1);\n script.remove();\n\n setState({\n loaded: true,\n error: true,\n });\n };\n\n script.addEventListener('load', onScriptLoad);\n script.addEventListener('complete', onScriptLoad);\n script.addEventListener('error', onScriptError);\n\n document.body.appendChild(script);\n\n return (): void => {\n script.removeEventListener('load', onScriptLoad);\n script.removeEventListener('error', onScriptError);\n };\n }\n }, [src]);\n\n return [state.loaded, state.error];\n}\n","/* eslint-disable */\nexport let callPaystackPop = (paystackArgs: Record): void => {\n // @ts-ignore\n const handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs);\n handler && handler.openIframe();\n};\n","import {useEffect} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\nimport usePaystackScript from './paystack-script';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: Partial): InitializePayment {\n const [scriptLoaded, scriptError] = usePaystackScript();\n\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata = {},\n currency = 'NGN',\n channels,\n label = '',\n plan = '',\n quantity = '',\n subaccount = '',\n transaction_charge = 0,\n bearer = 'account',\n split,\n split_code,\n } = args;\n\n if (scriptLoaded) {\n const paystackArgs: Record = {\n callback: onSuccess ? onSuccess : () => null,\n onClose: onClose ? onClose : () => null,\n key: publicKey,\n ref: reference,\n email,\n firstname,\n lastname,\n phone,\n amount,\n currency,\n plan,\n quantity,\n channels,\n subaccount,\n transaction_charge,\n bearer,\n label,\n metadata,\n split,\n split_code,\n 'data-custom-button': args['data-custom-button'] || '',\n };\n callPaystackPop(paystackArgs);\n }\n }\n\n useEffect(() => {\n if (scriptError) {\n throw new Error('Unable to load paystack inline script');\n }\n }, [scriptError]);\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose : (): any => null;\n return (\n \n {children}\n \n );\n },\n);\n\nexport default PaystackConsumer;\n"],"names":["useState","useEffect","createContext","useContext","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,aAAa,GAAa,EAAE,CAAC;AAMrB,SAAU,iBAAiB,GAAA;IACvC,IAAM,GAAG,GAAG,qCAAqC,CAAC;IAE5C,IAAA,EAAA,GAAoBA,cAAQ,CAAgB;AAChD,QAAA,MAAM,EAAE,KAAK;AACb,QAAA,KAAK,EAAE,KAAK;AACb,KAAA,CAAC,EAHK,KAAK,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,QAAQ,QAGpB,CAAC;AAEH,IAAAC,eAAS,CAAC,YAAA;AACR,QAAA,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC/B,YAAA,QAAQ,CAAC;AACP,gBAAA,MAAM,EAAE,IAAI;AACZ,gBAAA,KAAK,EAAE,KAAK;AACb,aAAA,CAAC,CAAC;SACJ;aAAM;AACL,YAAA,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAExB,IAAM,QAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChD,YAAA,QAAM,CAAC,GAAG,GAAG,GAAG,CAAC;AACjB,YAAA,QAAM,CAAC,KAAK,GAAG,IAAI,CAAC;AAEpB,YAAA,IAAM,cAAY,GAAG,YAAA;AACnB,gBAAA,QAAQ,CAAC;AACP,oBAAA,MAAM,EAAE,IAAI;AACZ,oBAAA,KAAK,EAAE,KAAK;AACb,iBAAA,CAAC,CAAC;AACL,aAAC,CAAC;AAEF,YAAA,IAAM,eAAa,GAAG,YAAA;gBACpB,IAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;gBACzC,IAAI,KAAK,IAAI,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,GAAG,WAAW,GAAG,WAAW,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AAC9D,IAAA,IAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;;;"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../../../node_modules/@paystack/inline-js/es/inline.js","../../../libs/paystack-actions.ts","../../../libs/use-paystack.ts","../../../libs/paystack-button.tsx","../../../libs/paystack-context.ts","../../../libs/paystack-provider.tsx","../../../libs/paystack-consumer.tsx"],"sourcesContent":["function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function n(n){for(var t=1;t=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function s(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null==t)return;var a,o,r=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw o}}return r}(e,n)||p(e,n)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function p(e,n){if(e){if(\"string\"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===t&&e.constructor&&(t=e.constructor.name),\"Map\"===t||\"Set\"===t?Array.from(e):\"Arguments\"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t-1})).map((function(e){return t[e].nodeName}))}return e}var b='\\n \\n \\n \\n';var k={height:\"50px\",width:\"auto\",borderRadius:\"3px\",padding:\"10px\",locale:\"en\",type:\"pay\"},w=function(e){return e&&\"object\"===t(e)?Object.keys(k).reduce((function(t,a){return n(n({},t),{},i({},a,e[a]||k[a]))}),{}):k},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Number(parseFloat(e/100).toFixed(2))},M={headers:{accept:\"application/json, text/plain, */*\",\"accept-language\":\"en-GB,en-US;q=0.9,en;q=0.8\",\"content-type\":\"application/x-www-form-urlencoded\",\"sec-ch-ua-mobile\":\"?0\",\"sec-fetch-dest\":\"empty\",\"sec-fetch-mode\":\"cors\",\"sec-fetch-site\":\"cross-site\"},referrerPolicy:\"no-referrer-when-downgrade\",method:\"POST\",mode:\"cors\",credentials:\"omit\"};function P(e){return Object.keys(e).reduce((function(n,t){var a=encodeURIComponent(t),o=encodeURIComponent(e[t]),r=\"\".concat(a,\"=\").concat(o);return[].concat(l(n),[r])}),[]).join(\"&\")}var L=function(e){return{biannually:\"BIANNUAL PLAN\",annually:\"ANNUAL PLAN\"}[e]||\"\".concat(e.toUpperCase(),\" PLAN\")},V=function(){try{return window.location&&\"https:\"===window.location.protocol&&window.ApplePaySession&&window.ApplePaySession.supportsVersion(m.applePayVersion)}catch(e){return!1}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return V()&&e.includes(\"apple_pay\")};function _(e){var n=document.createElement(\"iframe\");return n.setAttribute(\"frameBorder\",\"0\"),n.setAttribute(\"allowtransparency\",\"true\"),n.id=e,n.style.display=\"none\",n}function E(e){return e.querySelector(\"apple-pay-button\")||e.querySelector(\"#apple-pay-button\")}function q(e){return document.querySelector(\"#\".concat(e))}function T(e,n,a){var o=n.channels,r=void 0===o?[]:o,i=n.styles,c=void 0===i?{}:i,s={applePay:!1};return new Promise((function(n,o){if(e)if(S(r)){if(E(e))return s.applePay=!0,void n(s);(function(e,n){return new Promise((function(t,a){e||a(\"No script url\");var o=document.createElement(\"script\");o.src=e,o.addEventListener(\"load\",(function(){t(!0)})),o.addEventListener(\"error\",(function(){o.remove(),a(!1)})),n?n.appendChild(o):document.head.appendChild(o)}))})(\"https://applepay.cdn-apple.com/jsapi/v1.1.0/apple-pay-sdk.js\",e).then((function(){if(a&&1077497!==a&&window&&!Array.isArray(window.webpackJsonp))throw new Error(\"Incorrect data type for 'webpackJsonp', expected array, got \".concat(t(window.webpackJsonp),\". Switching to fallback apple pay button\"));!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding;return\"\\n apple-pay-button {\\n --apple-pay-button-width: \".concat(t,\";\\n --apple-pay-button-height: \").concat(n,\";\\n --apple-pay-button-border-radius: \").concat(a,\";\\n --apple-pay-button-padding: \").concat(o,\";\\n --apple-pay-button-box-sizing: border-box;\\n width: \").concat(t,\";\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"apple-pay-button\");i.setAttribute(\"buttonstyle\",\"light\"===a?\"white\":\"black\"),i.setAttribute(\"type\",t.type),i.setAttribute(\"locale\",t.locale),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)})).catch((function(){!function(e,n){var t=n.styles,a=n.theme,o=document.createElement(\"style\"),r=function(e){var n=e.height,t=e.width,a=e.borderRadius,o=e.padding,r=e.type,i=e.locale;return\"\\n @supports (-webkit-appearance: -apple-pay-button) { \\n .apple-pay-button {\\n display: inline-block;\\n -webkit-appearance: -apple-pay-button;\\n width: \".concat(t,\";\\n height: \").concat(n,\";\\n border-radius: \").concat(a,\";\\n padding: \").concat(o,\";\\n -apple-pay-button-type: \").concat(r,\";\\n -webkit-locale: \").concat(i,\";\\n }\\n .apple-pay-button-black {\\n -apple-pay-button-style: black;\\n }\\n .apple-pay-button-white {\\n -apple-pay-button-style: white;\\n }\\n .apple-pay-button-white-with-line {\\n -apple-pay-button-style: white-outline;\\n }\\n }\\n\\n @supports not (-webkit-appearance: -apple-pay-button) {\\n .apple-pay-button {\\n display: inline-block;\\n background-size: 100% 60%;\\n background-repeat: no-repeat;\\n background-position: 50% 50%;\\n border-radius: 5px;\\n padding: 0px;\\n box-sizing: border-box;\\n min-width: 200px;\\n min-height: 32px;\\n max-height: 64px;\\n }\\n .apple-pay-button-black {\\n background-image: -webkit-named-image(apple-pay-logo-white);\\n background-color: black;\\n }\\n .apple-pay-button-white {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n }\\n .apple-pay-button-white-with-line {\\n background-image: -webkit-named-image(apple-pay-logo-black);\\n background-color: white;\\n border: .5px solid black;\\n }\\n }\\n\")}(t);o.type=\"text/css\",o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),e.appendChild(o);var i=document.createElement(\"button\");i.classList.add(\"apple-pay-button\",\"light\"===a?\"apple-pay-button-white\":\"apple-pay-button-black\"),i.id=\"apple-pay-button\";var c=document.createElement(\"span\");c.classList.add(\"logo\"),i.appendChild(c),e.appendChild(i)}(e,{styles:w(c.applePay),theme:c.theme}),s.applePay=!0,n(s)}))}else o(\"No wallet payment method is available on this device\");else o(\"Container to mount elements was not provided\")}))}function A(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function I(e){return e.querySelector(\"#paystackpop-button\")}function z(e){return e.querySelector(\"#payment-request-button\")}function O(e,n){var t=document.querySelector(\"#pre-checkout-modal-\".concat(e));if(t){if(I(t)&&z(t))return t;t.remove()}var a,o=document.createElement(\"div\");o.classList.add(\"pre-checkout-modal\"),o.id=\"pre-checkout-modal-\".concat(e),o.style.zIndex=(a=0,Array.from(document.querySelectorAll(\"body *\")).forEach((function(e){var n=window.getComputedStyle(e),t=parseFloat(n.zIndex);!Number.isNaN(t)&&t>a&&(a=t)})),a+1);var r=document.createElement(\"div\");r.classList.add(\"pre-checkout-modal__content\"),o.appendChild(r);var i=n||{},c=i.merchant_logo,s=i.merchant_name,l=i.email,p=i.amount,u=i.currency,d=i.label,h=document.createElement(\"div\"),C=new Intl.NumberFormat(\"en\",{style:\"currency\",currency:u,currencyDisplay:\"code\",maximumFractionDigits:2,minimumFractionDigits:0}).format(p/100);h.classList.add(\"payment-info\"),h.innerHTML='\"').concat(s,'\\n
\\n
').concat(d||l,'
\\n
Pay ').concat(C,\"
\\n
\"),r.appendChild(h),r.innerHTML+='\\n \\n';var m=document.createElement(\"div\");m.classList.add(\"modal-wrapper\"),m.innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n';var y=document.createElement(\"p\");y.id=\"apple-pay-description\",y.innerHTML=\"Pay with Apple Pay to complete your purchase without filling a form\",m.appendChild(y);var f=document.createElement(\"div\");f.id=\"payment-request-button\",m.appendChild(f);var v=document.createElement(\"button\");v.id=\"paystackpop-button\",v.innerText=\"More payment options\",m.appendChild(v),m.innerHTML=m.innerHTML+b+'\\n\\n\\n\\n',r.appendChild(m);var g=document.createElement(\"style\");return g.textContent='\\n .pre-checkout-modal {\\n display: none;\\n position: fixed;\\n z-index: 1;\\n left: 0;\\n top: 0;\\n width: 100vw;\\n height: 100%;\\n overflow: auto;\\n background-color: rgba(0, 0, 0, 0.75);\\n transition: all 0.2s ease;\\n }\\n\\n .pre-checkout-modal.show {\\n display: block;\\n }\\n\\n .pre-checkout-modal__content {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n right: 0;\\n margin-left: auto;\\n margin-right: auto;\\n background-color: #fefefe;\\n padding: 30px 24px;\\n padding-bottom: max(30px, env(safe-area-inset-bottom));\\n width: 100%;\\n border-radius: 6px 6px 0 0;\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n max-width: 450px;\\n\\n box-sizing: border-box;\\n transform: translateY(238px);\\n transition: transform 0.3s cubic-bezier(.16,.81,.32,1);\\n }\\n\\n .modal-wrapper {\\n padding: 0 16px;\\n }\\n\\n .payment-info {\\n position: relative;\\n padding-bottom: 15px;\\n border-bottom: solid 1px whitesmoke;\\n display: flex;\\n align-items: flex-start;\\n justify-content: space-between;\\n width: 100%;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n .customer-email {\\n color: #737373;\\n font-size: 13px;\\n line-height: 16px;\\n }\\n\\n .customer-info {\\n flex: 1;\\n text-align: right;\\n }\\n\\n .merchant-logo {\\n display: flex;\\n align-items: center;\\n height: 30px;\\n }\\n .transaction-amount {\\n margin-top: 5px;\\n font-size: 13px;\\n line-height: 16px;\\n color: #737373;\\n }\\n\\n .amount {\\n color: #29b263;\\n font-weight: bold;\\n }\\n\\n @media only screen and (min-width: 500px) {\\n .pre-checkout-modal__content {\\n bottom: 0;\\n top: 0;\\n margin: auto;\\n border-radius: 6px;\\n height: fit-content;\\n }\\n }\\n\\n .pre-checkout-modal__content.show {\\n transform: translateY(0);\\n margin: 0 auto;\\n margin-top: 100px;\\n }\\n\\n .pre-checkout-modal__content > * {\\n margin-top: 0;\\n margin-bottom: 40px;\\n }\\n .pre-checkout-modal__content > *:last-child {\\n margin-bottom: 0;\\n }\\n\\n .pre-checkout-modal__content svg {\\n margin: auto;\\n width: 100%;\\n }\\n\\n #inline-button-wordmark--white {\\n position: absolute;\\n bottom: -50px;\\n margin: auto;\\n right: 0;\\n width: fit-content;\\n }\\n\\n #inline-button-wordmark--grey {\\n display: none;\\n }\\n\\n .pre-checkout-modal__content #apple-pay-mark--light {\\n margin-bottom: 16px;\\n }\\n\\n .pre-checkout-modal p {\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n color: #4E4E4E;\\n line-height: 28px;\\n font-size: 14px;\\n font-weight: 500;\\n margin: 0;\\n padding: 0 20px;\\n text-align: center;\\n letter-spacing: -0.3px;\\n }\\n\\n .pre-checkout-modal button {\\n height: 42px;\\n width: 100%;\\n background: linear-gradient(180deg, #40ad57 21.43%, #44b669 88.1%), #44b669;\\n border: 1px solid #49a861;\\n box-sizing: border-box;\\n box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);\\n border-radius: 5px;\\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);\\n color: #ffffff;\\n font-weight: 600;\\n font-size: 14px;\\n line-height: 14px;\\n cursor: pointer;\\n\\n -webkit-text-size-adjust: 100%;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n text-rendering: optimizeLegibility;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\",\\n \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\\n }\\n\\n #payment-request-button {\\n width: 100%;\\n height: fit-content;\\n margin: 24px 0 16px 0;\\n }\\n\\n #paystackpop-button {\\n padding: 0 16px;\\n }\\n\\n #apple-pay-close-button {\\n position: absolute;\\n text-align: center;\\n top: 0;\\n right: -26px;\\n height: 16px;\\n width: 16px;\\n padding: 0;\\n display: inline-block;\\n z-index: 3;\\n border-radius: 50%;\\n background: transparent;\\n transition: all 300ms;\\n outline: none;\\n cursor: pointer;\\n border: none;\\n }\\n\\n #apple-pay-close-button svg {\\n width: initial;\\n }\\n \\n #apple-pay-close-button:hover {\\n background-color: #e22b28;\\n }\\n\\n @media only screen and (max-width: 500px) {\\n .pre-checkout-modal__content {\\n max-width: 500px;\\n border-radius: 0;\\n padding-bottom: 0;\\n }\\n\\n .modal-wrapper {\\n padding: 0;\\n }\\n\\n #inline-button-wordmark--white {\\n display: none\\n }\\n \\n #inline-button-wordmark--grey {\\n display: block;\\n width: 100%;\\n margin: 16px 0;\\n height: 13px;\\n }\\n\\n #apple-pay-close-button {\\n display: none;\\n }\\n }\\n',document.body.appendChild(g),document.body.appendChild(o),o}var H=[{value:\"key\",required:!0,types:[\"string\"]},{value:\"amount\",required:!0,or:[\"plan\",\"planCode\"],types:[\"string\",\"number\"]},{value:\"currency\",required:!1,types:[\"string\"]},{value:\"email\",required:!0,or:[\"customerCode\"],types:[\"string\"]},{value:\"label\",required:!1,types:[\"string\"]},{value:\"firstName\",required:!1,types:[\"string\"]},{value:\"lastName\",required:!1,types:[\"string\"]},{value:\"reference\",required:!1,types:[\"string\"]},{value:\"phone\",required:!1,types:[\"string\"]},{value:\"customerCode\",required:!1,override:\"email\",types:[\"string\"]},{value:\"channels\",required:!1,types:[\"array\"]},{value:\"paymentRequest\",required:!1,types:[\"string\",\"number\"]},{value:\"paymentPage\",required:!1,types:[\"string\"]},{value:\"hash\",required:!1,types:[\"string\"]},{value:\"container\",required:!1,types:[\"string\"]},{value:\"metadata\",required:!1,types:[\"object\"]},{value:\"subaccountCode\",required:!1,types:[\"string\"]},{value:\"bearer\",required:!1,types:[\"string\"]},{value:\"transactionCharge\",required:!1,types:[\"string\",\"number\"]},{value:\"planCode\",required:!1,override:\"amount\",types:[\"string\"]},{value:\"subscriptionCount\",required:!1,types:[\"number\"]},{value:\"planInterval\",required:!1,types:[\"string\"]},{value:\"subscriptionLimit\",required:!1,types:[\"number\"]},{value:\"subscriptionStartDate\",required:!1,types:[\"string\"]},{value:\"accessCode\",required:!1,types:[\"string\"]},{value:\"onError\",required:!1,types:[\"function\"]},{value:\"onLoad\",required:!1,types:[\"function\"]},{value:\"onSuccess\",required:!1,types:[\"function\"]},{value:\"onCancel\",required:!1,types:[\"function\"]},{value:\"callback\",required:!1,types:[\"function\"]},{value:\"onClose\",required:!1,types:[\"function\"]},{value:\"onBankTransferConfirmationPending\",required:!1,types:[\"function\"]},{value:\"firstname\",required:!1,types:[\"string\"]},{value:\"lastname\",required:!1,types:[\"string\"]},{value:\"customer_code\",required:!1,types:[\"string\"]},{value:\"payment_request\",required:!1,types:[\"string\",\"number\"]},{value:\"subaccount\",required:!1,types:[\"string\"]},{value:\"transaction_charge\",required:!1,types:[\"number\",\"string\"]},{value:\"plan\",required:!1,types:[\"string\"]},{value:\"quantity\",required:!1,types:[\"number\"]},{value:\"interval\",required:!1,types:[\"string\"]},{value:\"invoice_limit\",required:!1,types:[\"number\",\"string\"]},{value:\"start_date\",required:!1,types:[\"string\"]},{value:\"payment_page\",required:!1,types:[\"number\",\"string\"]},{value:\"order_id\",required:!1,types:[\"number\"]},{value:\"ref\",required:!1,types:[\"string\"]},{value:\"card\",required:!1,types:[\"string\"]},{value:\"bank\",required:!1,types:[\"string\"]},{value:\"split\",required:!1,types:[\"object\"]},{value:\"split_code\",required:!1,types:[\"string\"]},{value:\"transaction_type\",required:!1,types:[\"string\"]},{value:\"subscription\",required:!1,types:[\"number\"]},{value:\"language\",required:!1,types:[\"string\"]},{value:\"connect_account\",required:!1,types:[\"string\"]},{value:\"connect_split\",required:!1,types:[\"object\"]}];function j(e){var t,a=n({},e);a.metadata=e.metadata||{},a.metadata.referrer=(t=window.location.href)&&t.length>500?t.split(\"?\")[0]:t,a.metadata=JSON.stringify(a.metadata),a.mode=\"popup\",e.split&&\"string\"!=typeof e.split&&(a.split=JSON.stringify(a.split));return void 0!==a.card&&[\"false\",!1].indexOf(a.card)>-1&&(a.channels=[\"bank\"],delete a.card),void 0!==a.bank&&[\"false\",!1].indexOf(a.bank)>-1&&(a.channels=[\"card\"],delete a.bank),[{to:\"firstname\",from:\"firstName\"},{to:\"lastname\",from:\"lastName\"},{to:\"customer_code\",from:\"customerCode\"},{to:\"payment_request\",from:\"paymentRequest\"},{to:\"subaccount\",from:\"subaccountCode\"},{to:\"transaction_charge\",from:\"transactionCharge\"},{to:\"plan\",from:\"planCode\"},{to:\"quantity\",from:\"subscriptionCount\"},{to:\"interval\",from:\"planInterval\"},{to:\"invoice_limit\",from:\"subscriptionLimit\"},{to:\"start_date\",from:\"subscriptionStartDate\"},{to:\"ref\",from:\"reference\"}].forEach((function(e){a[e.from]&&(a[e.to]=a[e.from],delete a[e.from])})),Object.values(e).forEach((function(n,t){if(\"function\"==typeof n){var o=Object.keys(e)[t];delete a[o]}})),a}var U=[\"iPad Simulator\",\"iPhone Simulator\",\"iPod Simulator\",\"iPad\",\"iPhone\",\"iPod\"],N=window&&window.navigator&&(window.navigator.platform||window.navigator.userAgentData&&window.navigator.userAgentData.platform),R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N;return U.includes(o)||a.includes(\"Mac\")&&\"ontouchend\"in document},B=function(e,n,t){var a=\"\".concat(m.paystackApiUrl,\"transaction/update_log/\").concat(e),o={Authorization:\"Bearer \".concat(n)};return fetch(a,{method:\"POST\",body:JSON.stringify({payload:JSON.stringify(t)}),headers:o})},Z=function(e,n){var t=\"\".concat(m.paystackApiUrl,\"transaction/set_ip/\").concat(e),a={Authorization:\"Bearer \".concat(n)};return fetch(t,{method:\"POST\",headers:a})},F={initializeLog:function(e){var n=e||{},t=n.attempts,a=n.authentication,o=n.errors,r=n.history;this.log={start_time:Math.round(Date.now()/1e3),time_spent:0,attempts:t||0,authentication:a,errors:o||0,success:!1,mobile:R(),input:[],history:r||[]}},getTimeSpent:function(){var e=Math.round(Date.now()/1e3);return this.log.time_spent=e-this.log.start_time,this.log.time_spent},logAPIResponse:function(e,n){switch(e.status){case\"success\":return this.logApiSuccess(n);case\"failed\":return this.logApiError(e.message);default:return!1}},logValidationResponse:function(e){return this.log.history.push({type:\"action\",message:e,time:this.getTimeSpent()}),this.saveLog()},logAttempt:function(e){var n=\"Attempted to pay\";return e&&(n+=\" with \".concat(e)),this.log.attempts+=1,this.log.history.push({type:\"action\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiError:function(e){var n=\"Error\";return e&&(n+=\": \".concat(e)),this.log.errors+=1,this.log.history.push({type:\"error\",message:n,time:this.getTimeSpent()}),this.saveLog()},logApiSuccess:function(e){var n=\"Successfully paid\";return e&&(n+=\" with \".concat(e)),this.log.success=!0,this.log.history.push({type:\"success\",message:n,time:this.getTimeSpent()}),this.saveLog()},saveLog:function(){try{if(this.response)return B(this.id,this.response.merchant_key,this.log)}catch(e){}},saveIpAddress:function(){try{if(this.response)return Z(this.id,this.response.merchant_key)}catch(e){}}},D=[\"language\",\"connect_account\"],W={requestInline:function(){var e=this,t=this.urlParameters,a=t.language,o=t.connect_account,r=c(t,D),i=n({\"Content-Type\":\"application/json\"},a&&{\"Accept-Language\":a});return(this.accessCode?fetch(new URL(\"transaction/verify_access_code/\".concat(this.accessCode),m.paystackApiUrl).toString(),{headers:i}):fetch(new URL(\"/checkout/request_inline\",m.paystackApiUrl).toString(),{method:\"POST\",body:JSON.stringify(r),headers:n(n({},i),o&&{\"x-connect-account\":o})})).then((function(e){return e.json()})).then((function(n){if(!1===n.status)throw new Error(n.message);return e.response=n.data,e.id=n.data.id,e.status=n.data.transaction_status,e.accessCode=n.data.access_code,e.log=null,Object.assign(e,F),e.initializeLog(n.data.log),e.saveIpAddress(),n.data}))}},J=function(){function e(n){a(this,e),function(e){function n(e,n){this.message=e,this.issues=n||[]}if(!e||\"object\"!==t(e))throw new n(\"Transaction parameters should be a non-empty object\");var a=e;if(\"accessCode\"in a)return{accessCode:a.accessCode};Object.keys(a).forEach((function(e){void 0!==H.find((function(n){return n.value===e}))||delete a[e]}));var o=Object.keys(a),r=[];if(H.filter((function(e){return e.required})).forEach((function(e){var n=!a[e.value],t=e.or?e.or.some((function(e){return a[e]})):null;n&&!t&&r.push({message:\"Required parameter missing: \".concat(e.value)})})),o.forEach((function(e){var n=a[e],o=H.find((function(n){return n.value===e})),i=t(n);\"object\"===i&&Array.isArray(n)&&(i=\"array\"),o.types.indexOf(i)<=-1&&r.push({message:\"Invalid parameter type: \".concat(e),validTypes:o.types})})),o.forEach((function(e){var n=H.find((function(n){return n.value===e}));n.override&&delete a[n.override]})),r.length)throw new n(\"Invalid transaction parameters\",r)}(n),this.parameters=n,this.urlParameters=j(n),this.id=null,this.status=null,this.accessCode=n.accessCode||null,this.authorizationUrl=null,this.errors=[],this.response=null,this.isActive=!0;var o=n.onError,r=n.onLoad,i=n.onSuccess,c=n.onCancel,s=n.callback,l=n.onClose,p=n.onBankTransferConfirmationPending;this.callbacks={onError:o,onLoad:r,onSuccess:i,onCancel:c,onBankTransferConfirmationPending:p},this.deprecatedCallbacks={callback:s,onClose:l},Object.assign(this,W)}return r(e,[{key:\"onSetupError\",value:function(e){this.logError(e),this.callbacks.onError&&this.callbacks.onError(e)}},{key:\"onLoad\",value:function(e){var n=e.id,t=e.customer,a=e.accessCode;Object.assign(this,{id:n,customer:t,accessCode:a}),this.authorizationUrl=\"\".concat(m.checkoutUrl).concat(a),this.callbacks.onLoad&&this.callbacks.onLoad({id:n,customer:t,accessCode:a})}},{key:\"onSuccess\",value:function(e){this.isActive=!1,this.response=e,this.status=e.status,this.callbacks.onSuccess&&this.callbacks.onSuccess(e),this.deprecatedCallbacks.callback&&this.deprecatedCallbacks.callback(e)}},{key:\"setStatus\",value:function(e){this.status=e}},{key:\"onCancel\",value:function(){this.callbacks.onCancel&&this.callbacks.onCancel(),this.deprecatedCallbacks.onClose&&this.deprecatedCallbacks.onClose()}},{key:\"cancel\",value:function(){this.isActive=!1,this.onCancel()}},{key:\"onBankTransferConfirmationPending\",value:function(){this.cancel(),this.callbacks.onBankTransferConfirmationPending&&this.callbacks.onBankTransferConfirmationPending()}},{key:\"logError\",value:function(e){this.errors.push(e)}}]),e}(),K=console?console.warn||console.log:function(){};function Q(e,n,t){K('\"'.concat(e,'\" has been deprecated, please use \"').concat(n,'\". ').concat(t||\"\"))}var G,Y=[\"preload\",\"inlineTransaction\"],X=[\"container\",\"styles\",\"onElementsMount\"];function $(e,n){if(!e.length)return null;var t=e.filter((function(e){var t,a,o,r,i=!e.status||\"abandoned\"===e.status,c=(t=e.parameters,a=n,o=Object.keys(t).sort().join(\"\")===Object.keys(a).sort().join(\"\"),r=Object.values(t).sort().join(\"\")===Object.values(a).sort().join(\"\"),o&&r);return i&&c}));return t.length?t[t.length-1]:null}function ee(e){var n=e.checkoutIframe,t=e.urlParameters;n&&t&&n.contentWindow.postMessage({type:\"inline:url\",path:\"newTransaction\",params:t},\"*\")}var ne=\"trackCheckoutClosed\",te=\"trackPaymentError\",ae=\"trackPaymentAttempt\",oe=\"trackPaymentCompletion\";function re(e){throw K(e),new Error(e)}var ie,ce,se=function(){function e(n){var t,o;a(this,e),this.id=function(){for(var e=\"\",n=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",t=0;t<5;t+=1)e+=n.charAt(Math.floor(Math.random()*n.length));return e}(),this.transactions=[],this.isOpen=!1,this.isLoaded=!1,this.isDeprecatedApi=n&&n.isDeprecatedApi,n&&n.isEmbed?this.isEmbed=!0:n&&n.isPaymentRequest&&(n.container&&q(n.container)||re(\"A container is required to mount the payment request button\"),this.paymentRequestContainer=q(n.container),this.paymentRequestTransaction=null),this.preCheckoutModal=null,this.backgroundIframe=function(e){var n=_(\"inline-background-\".concat(e));n.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n background: rgba(0, 0, 0, 0.75); \\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n transition: opacity 0.3s;\\n -webkit-transition: opacity 0.3s;\\n visibility: hidden;\\n display: none;\\n\",document.body.appendChild(n);var t=n.contentWindow.document;return t.open(),t.write('\\n \\n \\n\\n \\n \\n \\n \\n Paystack Popup Loader\\n \\n \\n\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n\\n \\n'),t.close(),n}(this.id),this.checkoutIframe=(t=this.id,(o=_(\"inline-checkout-\".concat(t))).src=\"\".concat(m.checkoutUrl,\"popup\"),o.style.cssText=\"\\n z-index: 999999999999999;\\n background: transparent;\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n margin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n position: fixed;\\n left: 0;\\n top: 0;\\n width: 100%;\\n visibility: hidden;\\n display: none;\\n height: 100%;\\n\",o.setAttribute(\"allowpaymentrequest\",\"true\"),o.setAttribute(\"allow\",\"payment; clipboard-read; clipboard-write\"),document.body.appendChild(o),o),this.registerListeners()}return r(e,[{key:\"registerListeners\",value:function(){var e=this;window.addEventListener(\"message\",(function(n){var t=\"\".concat(n.origin,\"/\")===m.checkoutUrl,a=e.checkoutIframe&&e.checkoutIframe.contentWindow===n.source,o=e.isEmbed;t||a?e.respondToEvent(n):o&&e.respondToEmbedEvents(n)}))}},{key:\"sendAnalyticsEventToCheckout\",value:function(e,n){this.checkoutIframe.contentWindow.postMessage({type:\"analytics\",action:e,params:n},\"*\")}},{key:\"checkout\",value:function(e){if(!V()||!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.platform,t=e.userAgent,a=void 0===t?window&&window.navigator&&window.navigator.userAgent:t,o=n||N,r=a&&!!a.match(/Version\\/[\\d.]+.*Safari/),i=o&&/(Mac)/i.test(o);return R()||i&&r}())return Promise.resolve(this.newTransaction(e));this.activeTransaction()&&this.activeTransaction().cancel(),G=this;var n=$(this.transactions,e)||new J(e);return new Promise((function(e,t){n.requestInline().then((function(t){t.channels.includes(\"apple_pay\")?(G.preloadTransaction({inlineTransaction:n}),G.preCheckoutModal=O(G.id,t),G.paymentRequestContainer=z(G.preCheckoutModal),T(G.paymentRequestContainer,{channels:t.channels,styles:{applePay:{width:\"100%\",type:\"pay\",height:\"42px\",padding:\"15px\",borderRadius:\"5px\"}}},t.merchant_id).then((function(){var t;G.registerPreCheckoutModalEventListeners(),G.registerPaymentRequestEventListeners(),t=G.preCheckoutModal,new Promise((function(e,n){try{var a=t.querySelector(\".pre-checkout-modal__content\");t.classList.add(\"show\"),setTimeout((function(){a.classList.add(\"show\"),e(!0)}),50)}catch(e){n(e)}})),e(n)})).catch((function(){G.closePreCheckoutModal(),G.animateCheckoutIn(),e(n)}))):(G.newTransaction({inlineTransaction:n}),e(n))})).catch((function(e){n.onSetupError({status:!1,message:e.message}),t(e)}))}))}},{key:\"registerPreCheckoutModalEventListeners\",value:function(){var e,n=this,t=!1,a=this.activeTransaction();document.addEventListener(\"touchstart\",(function(n){n.preventDefault(),t||(t=!0,e=setTimeout((function(){t=!1}),125))}),!0),document.addEventListener(\"touchend\",(function(n){n.target&&n.target.isSameNode(G.preCheckoutModal)&&t&&(clearTimeout(e),G.closePreCheckoutModal(),a&&a.cancel()),t=!1}),!0),I(this.preCheckoutModal).onclick=function(){n.closePreCheckoutModal(),n.animateCheckoutIn()},this.preCheckoutModal.querySelector(\"#apple-pay-close-button\").onclick=function(){n.sendAnalyticsEventToCheckout(ne),n.closePreCheckoutModalAndCancelTransaction()}}},{key:\"closePreCheckoutModal\",value:function(e){var n;this.preCheckoutModal&&(\"failed\"===e?(n=this.preCheckoutModal)&&(n.querySelector(\"#apple-pay-mark--light\").innerHTML='\\n \\n \\n \\n \\n \\n \\n \\n',n.querySelector(\"#apple-pay-description\").textContent=\"An error occurred while paying with Apple Pay. Please try again or use another payment method.\"):(!function(e){e&&(e.querySelector(\".pre-checkout-modal__content\").classList.remove(\"show\"),e.classList.remove(\"show\"))}(this.preCheckoutModal),this.preCheckoutModal.remove(),this.preCheckoutModal=null))}},{key:\"closePreCheckoutModalAndCancelTransaction\",value:function(){this.preCheckoutModal&&(this.cancelTransaction(),this.checkoutIframe&&this.checkoutIframe.contentWindow&&this.checkoutIframe.contentWindow.postMessage(\"close\",\"*\"),this.closePreCheckoutModal())}},{key:\"newTransaction\",value:function(e){var n,t=e.preload,a=e.inlineTransaction,o=c(e,Y),r=this.paymentRequestContainer&&E(this.paymentRequestContainer);this.activeTransaction()&&!r&&this.activeTransaction().cancel();var i=$(this.transactions,a?a.parameters:o),s=i||a||new J(o);return i?(s.isActive=!0,n={accessCode:s.accessCode}):(n=s.accessCode?{accessCode:s.accessCode}:s.urlParameters,this.transactions.push(s)),this.isDeprecatedApi||this.open(n,t),s}},{key:\"preloadTransaction\",value:function(e){var t=this;this.newTransaction(n(n({},e),{},{preload:!0}));return function(){return t.animateCheckoutIn()}}},{key:\"paymentRequest\",value:function(e){var n=e.container,t=e.styles,a=e.onElementsMount,o=c(e,X);return G=this,new Promise((function(r,i){var c=document.querySelector(\"#\".concat(e.loadPaystackCheckoutButton));if(V()){G.activeTransaction()&&G.activeTransaction().cancel(),n&&q(n)||re(\"A container is required to mount the payment request button\"),G.paymentRequestContainer=q(n);var s=$(G.transactions,o),l=s||new J(o);l.requestInline().then((function(e){T(G.paymentRequestContainer,{channels:e.channels,styles:t},e.merchant_id).then((function(e){a&&a(e)})).catch((function(){a&&a(null)})).finally((function(){if(s?l.isActive=!0:G.transactions.push(l),G.registerPaymentRequestEventListeners(),c){var e=G.preloadTransaction({inlineTransaction:l});c.onclick=e}r(l)}))})).catch((function(e){l.onSetupError({status:!1,message:e.message}),i(e)}))}else{if(e&&e.loadPaystackCheckoutButton)if(c){var p=G.preloadTransaction(o);c.onclick=p}else K(\"This device does not support any payment request wallet options. Please consult our documentation at https://developers.paystack.co/docs/paystack-inline to see how to load alternative payment options using 'loadPaystackCheckoutButton'\");a&&a(null);var u=G.activeTransaction();r(u)}}))}},{key:\"registerApplePayEventListener\",value:function(){var e=this;E(this.paymentRequestContainer).onclick=function(){return e.startApplePay()}}},{key:\"registerPaymentRequestEventListeners\",value:function(){var e=this.activeTransaction();e&&S(e.response.channels)?this.registerApplePayEventListener():A(this.paymentRequestContainer)}},{key:\"startApplePay\",value:function(){var e,t,a,o,r,i=this,c=\"apple pay\",s=this.activeTransaction();if(s){var l={channel:\"apple_pay\",paymentMethod:c,currency:s.currency,amount:s.amount},p={channel:\"apple_pay\",currency:s.currency,amount:s.amount,timeSpent:s.getTimeSpent()};try{s.logAttempt(c),this.sendAnalyticsEventToCheckout(ae,l);var u=(e={currency:s.response.currency,amount:s.response.amount,merchantName:s.response.merchant_name,interval:s.response.plan_details&&s.response.plan_details.interval},t=e.currency,a=e.amount,o=e.merchantName,r=e.interval,n({countryCode:\"NG\",currencyCode:t,merchantCapabilities:[\"supports3DS\",\"supportsCredit\",\"supportsDebit\"],supportedNetworks:[\"visa\",\"masterCard\"],requiredBillingContactFields:[\"postalAddress\",\"name\",\"phone\",\"email\"],total:{label:\"\".concat(o,\" - Paystack\"),type:\"final\",amount:String(x(a))}},\"string\"==typeof r&&\"\"!==r.trim()&&{lineItems:[{label:L(r),amount:String(x(a))}]})),d=new window.ApplePaySession(m.applePayVersion,u);d.onvalidatemerchant=function(e){var t=function(e){var t=e.transactionId,a=e.validationURL,o=e.merchantName,r=e.domainName,i=void 0===r?window&&window.location&&window.location.hostname:r,c=\"\".concat(m.paymentBaseUrl).concat(m.applePayValidateSessionPath),s=P({transaction:t,sessionUrl:a,displayName:o,domainName:i});return fetch(c,n(n({},M),{},{body:s})).then((function(e){return e.json()}))}({validationURL:e.validationURL,transactionId:s.id,merchantName:s.response.merchant_name});t.then((function(e){\"success\"!==e.status?s.onSetupError(e):d.completeMerchantValidation(e.data),s.logValidationResponse(e.message)})).catch((function(e){s.onSetupError(e)}))},d.oncancel=function(){G.preCheckoutModal||s.onCancel()},d.onpaymentauthorized=function(e){var t=e.payment,a=function(e){var t=e.transactionId,a=e.payment,o=\"\".concat(m.paymentBaseUrl).concat(m.applePayChargePath),r=P({transaction:t,paymentObject:JSON.stringify(a)});return fetch(o,n(n({},M),{},{body:r})).then((function(e){return e.json()}))}({transactionId:s.id,payment:t});a.then((function(e){s.logAPIResponse(e,c),\"success\"===e.status?(d.completePayment(d.STATUS_SUCCESS),s.onSuccess(e),i.sendAnalyticsEventToCheckout(oe,p)):(d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Transaction attempt failed\"})),G.closePreCheckoutModal(e.status)})).catch((function(e){d.completePayment(d.STATUS_FAILURE),s.onSetupError(e),i.sendAnalyticsEventToCheckout(te,{channel:\"apple_pay\",message:e&&e.message||\"Error occurred\"}),G.closePreCheckoutModal(\"failed\")}))},d.begin()}catch(e){s.onSetupError(e)}}else re(\"Could not initiate apple pay transaction\")}},{key:\"resumeTransaction\",value:function(e){return this.newTransaction({accessCode:e})}},{key:\"activeTransaction\",value:function(){var e=this.transactions.filter((function(e){return e.isActive})),n=e.length?e[e.length-1]:null;return n}},{key:\"cancelTransaction\",value:function(e){var n=this.transactions.find((function(n){return n.id===e}))||this.activeTransaction();n&&(n.cancel(),this.close())}},{key:\"respondToEvent\",value:function(e){if(e){var n,t,a=this.activeTransaction();try{var o=e.data||e.message,r=o.event,i=o.data;if(r)switch(r){case\"loaded:checkout\":if(this.isLoaded=!0,a)ee({checkoutIframe:this.checkoutIframe,urlParameters:a.urlParameters});break;case\"loaded:transaction\":n=this.backgroundIframe,(t=n.contentWindow.document)&&(t.getElementById(\"app-loader\").style.display=\"none\"),a.onLoad(i);break;case\"error\":\"setup\"===i.type?a.onSetupError(i):a.logError(i);break;case\"cancel\":case\"close\":this.close();var c=i&&i.status;c&&a.setStatus(c),!(this.paymentRequestContainer&&E(this.paymentRequestContainer)&&!this.preCheckoutModal)&&(a.isActive=!1),a.onCancel();break;case\"transfer:pending\":this.close();var s=i&&i.status;s&&a.setStatus(s),a.onBankTransferConfirmationPending();break;case\"success\":this.close(),a.onSuccess(i)}}catch(e){}}}},{key:\"respondToEmbedEvents\",value:function(e){var n,t,a=this.activeTransaction(),o=e.data||e.message;if(o&&(\"string\"==typeof o||o instanceof String)){var r={action:t=(n=o)&&\"string\"==typeof n?n.split(\" \")[0]:null,data:t?n.split(\" \").slice(2).join(\" \"):null};if(r&&\"PaystackClose\"===r.action)r.data&&a.onSuccess(o);\"PaystackTLSClose\"===r.action&&a.cancel()}}},{key:\"animateCheckoutIn\",value:function(){var e,n=this;if(!this.isOpen){var t=this.checkoutIframe,a=this.backgroundIframe;(e={checkoutIframe:t,backgroundIframe:a},new Promise((function(n,t){e||t(\"No dom element provided\");var a=e.checkoutIframe,o=e.backgroundIframe;a&&o||t(\"No dom element provided\"),a.style.display=\"\",a.style.visibility=\"visible\",o.style.display=\"\",o.style.visibility=\"visible\",n()}))).then((function(){n.checkoutIframe.contentWindow.postMessage(\"render\",\"*\")})),this.isOpen=!0}}},{key:\"open\",value:function(e,n){e&&(ee({checkoutIframe:this.checkoutIframe,urlParameters:e}),n||this.animateCheckoutIn())}},{key:\"close\",value:function(){var e=this;if(this.isOpen){var n,t=this.checkoutIframe,a=this.backgroundIframe;(n={checkoutIframe:t,backgroundIframe:a},new Promise((function(e,t){n||t(\"No dom element provided\");var a=n.checkoutIframe,o=n.backgroundIframe;a&&o||t(\"No dom element provided\"),o.style.opacity=0,a.style.display=\"none\",a.style.visibility=\"hidden\",setTimeout((function(){o.style.display=\"none\",o.style.visibility=\"hidden\",o.style.opacity=1,e()}),300)}))).then((function(){e.checkoutIframe.contentWindow.postMessage(\"close\",\"*\")})),this.isOpen=!1}}},{key:\"isLoaded\",value:function(){return this.isLoaded}}],[{key:\"setup\",value:function(n){var t=n&&n.container;G||(G=new e({isDeprecatedApi:!0,isEmbed:t})),Q(\"PaystackPop.setup()\",\"new PaystackPop()\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\");var a=G.newTransaction(n,\"deprecated\"),o=a.urlParameters;if(t){var r=\"\".concat(m.siteUrl,\"/assets/payment/production/inline.html?\").concat(y(o)),i=function(e,n){var t=_(\"embed-checkout-\".concat(e));return t.style.cssText=\"\\n background: transparent;\\n background: rgba(0,0,0,0);\\n border: 0px none transparent;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n nmargin: 0;\\n padding: 0;\\n -webkit-tap-highlight-color: transparent;\\n -webkit-touch-callout: none;\\n left: 0;\\n top: 0;\\n width: 100%;\\n height: 100%;\\n visibility: hidden;\\n display: none;\\n\",t.src=n,t.id=e,t.name=e,t}(G.id,r);!function(e,n){var t=document.getElementById(e);t.innerHTML=\"\",t.removeAttribute(\"style\"),t.className=\"paystack-embed-container\",t.style.position=\"relative\",t.style.width=\"100%\",t.appendChild(n)}(n.container,i),i.onload=function(){var e;i.contentWindow.postMessage(\"PaystackOpen \".concat(G.id),\"*\"),e=i,new Promise((function(n,t){e||t(\"No dom element provided\"),e.style.display=\"\",e.style.visibility=\"visible\",n()}))}}else a.openIframe=function(){Q(\"openIframe\",\"open\",\"Please consult our documentation at https://developers.paystack.co/docs/paystack-inline\"),G.open(o)};return a}}]),e}();if(ie=g().length>0,ce=f()&&\"FORM\"===f().parentElement.tagName,ie&&ce){var le,pe=function(){var e={},t=f();return g().forEach((function(n){var a=t.getAttribute(n),o=n.split(\"data-\")[1].replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}));e[o]=a})),function(e){if(e.buttonId&&!document.getElementById(e.buttonId))throw new Error(\"Please make sure the buttonId is an element available in the DOM\");var t=n({},e);t.buttonText=e.buttonText||\"Pay\",t.buttonVariant=\"normal\",t.buttonWordmarkVariant=\"normal\";var a=[\"normal\",\"light\"];return e.buttonVariant&&a.indexOf(e.buttonVariant)>-1&&(t.buttonVariant=e.buttonVariant),e.buttonWordmarkVariant&&a.indexOf(e.buttonWordmarkVariant)>-1&&(t.buttonWordmarkVariant=e.buttonWordmarkVariant),t}(e)}(),ue=f().parentElement;G||(G=new se),function(e){var n;if(e.id)(n=document.getElementById(e.id)).setAttribute(\"data-inline-id\",e.id);else{var t=document.createElement(\"div\");t.id=\"inline-button-\".concat(e.inlineId),t.innerHTML=function(e){var n,t,a={normal:'\\n \\n \\n ',light:b};return\"\\n \\n \\n
\\n ').concat(a[e.wordmarkVariant||\"normal\"],\"\\n
\\n \")}(e),e.parent.parentNode.insertBefore(t,e.parent.nextSibling),n=s(t.getElementsByTagName(\"button\"),1)[0]}return n}({inlineId:G.id,amount:pe.amount/100,currency:pe.currency,id:pe.buttonId,text:pe.buttonText,variant:pe.buttonVariant,wordmarkVariant:pe.buttonWordmarkVariant,parent:f()}).addEventListener(\"click\",(function(e){e.preventDefault(),le?G.resumeTransaction(le.accessCode):le=G.newTransaction(n(n({},pe),{},{onSuccess:function(e){var n,t,a,o,r,i;n={type:\"hidden\",name:\"reference\",value:e.reference,parent:ue},t=n.type,a=n.value,o=n.name,r=n.parent,(i=document.createElement(\"input\")).type=t,i.value=a,i.name=o,r.appendChild(i),ue.submit()}}))}))}export{se as default};\n","import PaystackPop from '@paystack/inline-js';\n\nexport const callPaystackPop = (paystackArgs: Record): void => {\n const paystack = new PaystackPop();\n paystack.newTransaction(paystackArgs);\n};\n","import {HookConfig, InitializePayment} from './types';\nimport {callPaystackPop} from './paystack-actions';\n\nexport default function usePaystackPayment(hookConfig: HookConfig): InitializePayment {\n function initializePayment({config, onSuccess, onClose}: Parameters[0]): void {\n const args = {...hookConfig, ...config};\n\n const {\n publicKey,\n firstname,\n lastname,\n phone,\n email,\n amount,\n reference,\n metadata,\n currency = 'NGN',\n channels,\n label,\n plan,\n quantity,\n subaccount,\n transaction_charge,\n bearer,\n split,\n split_code,\n connect_account,\n connect_split,\n onBankTransferConfirmationPending,\n } = args;\n const paystackArgs: Record = {\n onSuccess: onSuccess ? onSuccess : () => null,\n onCancel: onClose ? onClose : () => null,\n key: publicKey,\n email,\n amount,\n ...(firstname && {firstname}),\n ...(lastname && {lastname}),\n ...(phone && {phone}),\n ...(reference && {ref: reference}),\n ...(currency && {currency}),\n ...(channels && {channels}),\n ...(metadata && {metadata}),\n ...(label && {label}),\n ...(onBankTransferConfirmationPending && {onBankTransferConfirmationPending}),\n ...(subaccount && {subaccount}),\n ...(transaction_charge && {transaction_charge}),\n ...(bearer && {bearer}),\n ...(split && {split}),\n ...(split_code && {split_code}),\n ...(plan && {plan}),\n ...(quantity && {quantity}),\n ...(connect_split && {connect_split}),\n ...(connect_account && {connect_account}),\n };\n\n callPaystackPop(paystackArgs);\n }\n\n return initializePayment;\n}\n","import React, {ReactNode} from 'react';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackButtonProps extends PaystackProps {\n text?: string;\n className?: string;\n children?: ReactNode;\n onSuccess?: callback;\n onClose?: callback;\n}\n\nconst PaystackButton = ({\n text,\n className,\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackButtonProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n initializePayment({config, onSuccess, onClose})}\n >\n {text || children}\n \n );\n};\n\nexport default PaystackButton;\n","import {createContext} from 'react';\nimport {InitializePayment, PaystackProps} from './types';\n\ntype IPaystackContext = {\n config: PaystackProps;\n initializePayment: InitializePayment;\n onSuccess: () => void;\n onClose: () => void;\n};\n\nconst PaystackContext = createContext({\n config: {} as PaystackProps,\n initializePayment: () => null,\n onSuccess: () => null,\n onClose: () => null,\n});\n\nexport default PaystackContext;\n","import React from 'react';\nimport PaystackContext from './paystack-context';\nimport usePaystackPayment from './use-paystack';\nimport {callback, PaystackProps} from './types';\n\ninterface PaystackProviderProps extends PaystackProps {\n children: JSX.Element;\n onSuccess: callback;\n onClose: callback;\n}\n\nconst PaystackProvider = ({\n children,\n onSuccess,\n onClose,\n ...config\n}: PaystackProviderProps): JSX.Element => {\n const initializePayment = usePaystackPayment(config);\n\n return (\n \n {children}\n \n );\n};\n\nexport default PaystackProvider;\n","import React, {forwardRef, useContext, FunctionComponentElement} from 'react';\nimport PaystackProvider from './paystack-provider';\nimport {PaystackProps} from './types';\nimport PaystackContext from './paystack-context';\n\ninterface PaystackConsumerProps extends PaystackProps {\n children: (arg: Record) => any;\n onSuccess?: () => void;\n onClose?: () => void;\n}\n\nconst PaystackConsumerChild = ({\n children,\n ref,\n}: {\n children: any;\n ref: any;\n}): FunctionComponentElement => {\n const {config, initializePayment, onSuccess, onClose} = useContext(PaystackContext);\n\n const completeInitializePayment = (): void => initializePayment({config, onSuccess, onClose});\n return children({initializePayment: completeInitializePayment, ref});\n};\n\n// eslint-disable-next-line react/display-name\nconst PaystackConsumer = forwardRef(\n (\n {children, onSuccess: paraSuccess, onClose: paraClose, ...others}: PaystackConsumerProps,\n ref: any,\n ): JSX.Element => {\n const onSuccess = paraSuccess ? paraSuccess : (): any => null;\n const onClose = paraClose ? paraClose : (): any => null;\n return (\n \n {children}\n \n );\n },\n);\n\nexport default PaystackConsumer;\n"],"names":["PaystackPop","createContext","useContext","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,C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AAA,IAAM,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAW,EAAA,OAAA,IAAI,CAAA,EAAA,CAAC;AACxD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,EAAA,QAAA,CAAA,EAAA,EAAK,MAAM,EAAA,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAA,CAAA;QAClE,KAAC,CAAA,aAAA,CAAA,qBAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,IAAG,QAAQ,CAAyB,CAClD,EACnB;AACJ,CAAC;;;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/example/src/dist/paystack-actions.d.ts b/example/src/dist/paystack-actions.d.ts index 8c618f0..0fe1c23 100644 --- a/example/src/dist/paystack-actions.d.ts +++ b/example/src/dist/paystack-actions.d.ts @@ -1 +1 @@ -export declare let callPaystackPop: (paystackArgs: Record) => void; +export declare const callPaystackPop: (paystackArgs: Record) => void; diff --git a/example/src/dist/types.d.ts b/example/src/dist/types.d.ts index 700debf..11c12cf 100644 --- a/example/src/dist/types.d.ts +++ b/example/src/dist/types.d.ts @@ -1,5 +1,5 @@ -type Currency = 'NGN' | 'GHS' | 'USD' | 'ZAR' | 'KES' | 'XOF'; -type PaymentChannels = 'bank' | 'card' | 'qr' | 'ussd' | 'mobile_money' | 'eft' | 'bank_transfer' | 'payattitude'; +export type Currency = 'NGN' | 'GHS' | 'USD' | 'ZAR' | 'KES' | 'XOF'; +export type PaymentChannels = 'bank' | 'card' | 'qr' | 'ussd' | 'mobile_money' | 'eft' | 'bank_transfer' | 'payattitude'; type Bearer = 'account' | 'subaccount'; type phone = number | string; interface PaystackCustomFields { @@ -13,6 +13,10 @@ interface PaystackMetadata { interface PaystackMetadata { [key: string]: any; } +interface PaystackConnectSplit { + account_id: string; + share: number; +} export type callback = (response?: any) => void; export interface PaystackProps { publicKey: string; @@ -23,21 +27,24 @@ export interface PaystackProps { phone?: phone; reference?: string; metadata?: PaystackMetadata; - currency?: Currency; - channels?: PaymentChannels[]; + currency?: Currency | string; + channels?: PaymentChannels[] | string[]; label?: string; plan?: string; quantity?: number; subaccount?: string; transaction_charge?: number; bearer?: Bearer; - 'data-custom-button'?: string; split_code?: string; split?: Record; + connect_split?: PaystackConnectSplit[]; + connect_account?: string; + onBankTransferConfirmationPending?: callback; } export type InitializePayment = (options: { onSuccess?: callback; onClose?: callback; - config?: PaystackProps; + config?: Omit; }) => void; +export type HookConfig = Omit, 'publicKey'> & Pick; export {}; diff --git a/example/src/dist/use-paystack.d.ts b/example/src/dist/use-paystack.d.ts index 51688f4..19ba7b0 100644 --- a/example/src/dist/use-paystack.d.ts +++ b/example/src/dist/use-paystack.d.ts @@ -1,2 +1,2 @@ -import { InitializePayment, PaystackProps } from './types'; -export default function usePaystackPayment(hookConfig: Partial): InitializePayment; +import { HookConfig, InitializePayment } from './types'; +export default function usePaystackPayment(hookConfig: HookConfig): InitializePayment; diff --git a/libs/paystack-actions.ts b/libs/paystack-actions.ts index 1d610c9..ef26f41 100644 --- a/libs/paystack-actions.ts +++ b/libs/paystack-actions.ts @@ -1,6 +1,6 @@ -/* eslint-disable */ -export let callPaystackPop = (paystackArgs: Record): void => { - // @ts-ignore - const handler = window.PaystackPop && window.PaystackPop.setup(paystackArgs); - handler && handler.openIframe(); +import PaystackPop from '@paystack/inline-js'; + +export const callPaystackPop = (paystackArgs: Record): void => { + const paystack = new PaystackPop(); + paystack.newTransaction(paystackArgs); }; diff --git a/libs/paystack-script.ts b/libs/paystack-script.ts deleted file mode 100644 index 80c30be..0000000 --- a/libs/paystack-script.ts +++ /dev/null @@ -1,62 +0,0 @@ -import {useState, useEffect} from 'react'; - -const cachedScripts: string[] = []; -interface IScriptResult { - loaded: boolean; - error: boolean; -} - -export default function usePaystackScript(): boolean[] { - const src = 'https://js.paystack.co/v1/inline.js'; - - const [state, setState] = useState({ - loaded: false, - error: false, - }); - - useEffect((): any => { - if (cachedScripts.includes(src)) { - setState({ - loaded: true, - error: false, - }); - } else { - cachedScripts.push(src); - - const script = document.createElement('script'); - script.src = src; - script.async = true; - - const onScriptLoad = (): void => { - setState({ - loaded: true, - error: false, - }); - }; - - const onScriptError = (): void => { - const index = cachedScripts.indexOf(src); - if (index >= 0) cachedScripts.splice(index, 1); - script.remove(); - - setState({ - loaded: true, - error: true, - }); - }; - - script.addEventListener('load', onScriptLoad); - script.addEventListener('complete', onScriptLoad); - script.addEventListener('error', onScriptError); - - document.body.appendChild(script); - - return (): void => { - script.removeEventListener('load', onScriptLoad); - script.removeEventListener('error', onScriptError); - }; - } - }, [src]); - - return [state.loaded, state.error]; -} diff --git a/libs/src/types/@paystack/inline-js/index.d.ts b/libs/src/types/@paystack/inline-js/index.d.ts new file mode 100644 index 0000000..b1ec7ea --- /dev/null +++ b/libs/src/types/@paystack/inline-js/index.d.ts @@ -0,0 +1,2 @@ +//@paystack/inline-js/index.d.ts +declare module '@paystack/inline-js'; diff --git a/libs/test/paystack-button.test.tsx b/libs/test/paystack-button.test.tsx index e313462..3f0968a 100644 --- a/libs/test/paystack-button.test.tsx +++ b/libs/test/paystack-button.test.tsx @@ -1,9 +1,7 @@ import React from 'react'; -// @ts-ignore -import {renderHook, cleanup, act} from '@testing-library/react-hooks'; +import {cleanup} from '@testing-library/react-hooks'; import {render, fireEvent} from '@testing-library/react'; import {callPaystackPop} from '../paystack-actions'; -import usePaystackScript from '../paystack-script'; import PaystackButton from '../paystack-button'; import {config} from './fixtures'; @@ -21,7 +19,6 @@ describe('', () => { beforeEach(() => { // @ts-ignore callPaystackPop = jest.fn(); - renderHook(() => usePaystackScript()); }); afterAll(() => { diff --git a/libs/test/paystack-provider.test.tsx b/libs/test/paystack-provider.test.tsx index f59b7db..47958c6 100644 --- a/libs/test/paystack-provider.test.tsx +++ b/libs/test/paystack-provider.test.tsx @@ -1,9 +1,7 @@ import React from 'react'; -// @ts-ignore -import {renderHook, cleanup, act} from '@testing-library/react-hooks'; +import {cleanup} from '@testing-library/react-hooks'; import {render, fireEvent} from '@testing-library/react'; import {callPaystackPop} from '../paystack-actions'; -import usePaystackScript from '../paystack-script'; import PaystackConsumer from '../paystack-consumer'; import {config} from './fixtures'; @@ -20,7 +18,6 @@ describe('', () => { beforeEach(() => { // @ts-ignore callPaystackPop = jest.fn(); - renderHook(() => usePaystackScript()); }); afterAll(() => { diff --git a/libs/test/paystack-script.test.ts b/libs/test/paystack-script.test.ts deleted file mode 100644 index ad7a297..0000000 --- a/libs/test/paystack-script.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -// @ts-ignore -import {renderHook, cleanup} from '@testing-library/react-hooks'; -import usePaystackScript from '../paystack-script'; - -describe('usePaystackScript()', () => { - afterAll(() => { - cleanup(); - document.body.innerHTML = ''; - }); - - it('adds the script to the dom', () => { - const {result} = renderHook(() => usePaystackScript()); - - expect(result.current[0]).toBe(false); - expect(result.current[1]).toBe(false); - expect(document.getElementsByTagName('script')).toBeDefined(); - }); - - it('Will not load multi inline script', () => { - renderHook(() => usePaystackScript()); - const {result} = renderHook(() => usePaystackScript()); - - expect(result.current[0]).toBe(true); - expect(result.current[1]).toBe(false); - expect(document.getElementsByTagName('script').length).toBe(1); - expect(document.body.innerHTML).toMatch(new RegExp('https://js.paystack.co/v1/inline.js')); - }); -}); diff --git a/libs/test/use-paystack.test.tsx b/libs/test/use-paystack.test.tsx index 72fd733..acfd903 100644 --- a/libs/test/use-paystack.test.tsx +++ b/libs/test/use-paystack.test.tsx @@ -1,10 +1,8 @@ -// @ts-ignore import {renderHook, cleanup, act} from '@testing-library/react-hooks'; import {render, fireEvent} from '@testing-library/react'; import React from 'react'; import usePaystackPayment from '../use-paystack'; import {callPaystackPop} from '../paystack-actions'; -import usePaystackScript from '../paystack-script'; import {config} from './fixtures'; import {Currency, PaymentChannels} from '../types'; @@ -16,7 +14,6 @@ describe('usePaystackPayment()', () => { beforeEach(() => { // @ts-ignore callPaystackPop = jest.fn(); - renderHook(() => usePaystackScript()); }); afterAll(() => { @@ -66,7 +63,6 @@ describe('usePaystackPayment()', () => { channels: ['mobile_money', 'ussd'], plan: '1', subaccount: 'ACCT_olodo', - 'data-custom-button': 'savage', quantity: 2, split_code: 'SPL_ehshjerjh1232343', firstname: '404', diff --git a/libs/types.ts b/libs/types.ts index 5501cb5..8ea3b3f 100644 --- a/libs/types.ts +++ b/libs/types.ts @@ -52,11 +52,11 @@ export interface PaystackProps { subaccount?: string; transaction_charge?: number; bearer?: Bearer; - 'data-custom-button'?: string; split_code?: string; split?: Record; connect_split?: PaystackConnectSplit[]; connect_account?: string; + onBankTransferConfirmationPending?: callback; } export type InitializePayment = (options: { diff --git a/libs/use-paystack.ts b/libs/use-paystack.ts index 2bc1432..2dc5a43 100644 --- a/libs/use-paystack.ts +++ b/libs/use-paystack.ts @@ -1,16 +1,8 @@ -import {useEffect} from 'react'; import {HookConfig, InitializePayment} from './types'; -import usePaystackScript from './paystack-script'; import {callPaystackPop} from './paystack-actions'; export default function usePaystackPayment(hookConfig: HookConfig): InitializePayment { - const [scriptLoaded, scriptError] = usePaystackScript(); - function initializePayment({config, onSuccess, onClose}: Parameters[0]): void { - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - const args = {...hookConfig, ...config}; const { @@ -21,56 +13,49 @@ export default function usePaystackPayment(hookConfig: HookConfig): InitializePa email, amount, reference, - metadata = {}, + metadata, currency = 'NGN', channels, - label = '', - plan = '', - quantity = '', - subaccount = '', - transaction_charge = 0, - bearer = 'account', + label, + plan, + quantity, + subaccount, + transaction_charge, + bearer, split, split_code, connect_account, connect_split, + onBankTransferConfirmationPending, } = args; + const paystackArgs: Record = { + onSuccess: onSuccess ? onSuccess : () => null, + onCancel: onClose ? onClose : () => null, + key: publicKey, + email, + amount, + ...(firstname && {firstname}), + ...(lastname && {lastname}), + ...(phone && {phone}), + ...(reference && {ref: reference}), + ...(currency && {currency}), + ...(channels && {channels}), + ...(metadata && {metadata}), + ...(label && {label}), + ...(onBankTransferConfirmationPending && {onBankTransferConfirmationPending}), + ...(subaccount && {subaccount}), + ...(transaction_charge && {transaction_charge}), + ...(bearer && {bearer}), + ...(split && {split}), + ...(split_code && {split_code}), + ...(plan && {plan}), + ...(quantity && {quantity}), + ...(connect_split && {connect_split}), + ...(connect_account && {connect_account}), + }; - if (scriptLoaded) { - const paystackArgs: Record = { - callback: onSuccess ? onSuccess : () => null, - onClose: onClose ? onClose : () => null, - key: publicKey, - ref: reference, - email, - firstname, - lastname, - phone, - amount, - currency, - plan, - quantity, - channels, - subaccount, - transaction_charge, - bearer, - label, - metadata, - split, - split_code, - connect_split, - connect_account, - 'data-custom-button': args['data-custom-button'] || '', - }; - callPaystackPop(paystackArgs); - } + callPaystackPop(paystackArgs); } - useEffect(() => { - if (scriptError) { - throw new Error('Unable to load paystack inline script'); - } - }, [scriptError]); - return initializePayment; } diff --git a/package.json b/package.json index 28335e0..77973ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-paystack", - "version": "5.0.0", + "version": "6.0.0", "description": "This is an reactJS library for implementing paystack payment gateway", "main": "dist/index.js", "module": "dist/index.es.js", @@ -28,7 +28,7 @@ "paystack", "Gateway" ], - "author": "Ayeni Olusegun ", + "author": "Olusegun Ayeni ", "license": "MIT", "bugs": { "url": "https://github.com/iamraphson/react-paystack/issues" @@ -38,6 +38,9 @@ "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0", "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" }, + "dependencies": { + "@paystack/inline-js": "^2.18.0" + }, "devDependencies": { "@babel/core": "^7.21.4", "@babel/preset-env": "^7.21.4",