idpay-b2b-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/index.js +1 -0
- package/package.json +15 -0
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# idpay-b2b-sdk
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Building
|
|
6
|
+
|
|
7
|
+
Run `nx build idpay-b2b-sdk` to build the library.
|
|
8
|
+
|
|
9
|
+
## Running unit tests
|
|
10
|
+
|
|
11
|
+
Run `nx test idpay-b2b-sdk` to execute the unit tests via [Jest](https://jestjs.io).
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EVENT_TYPES as r,trackEvent as i,clientBoxControl as n}from"https://idpay.unico.io/sdk-assets/index.js";var l=null,c="IFRAME",p=()=>{let t=document.createElement("link");t.setAttribute("href","https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap"),t.setAttribute("rel","stylesheet");let s=new Promise(o=>{t.onload=o}),e=document.createElement("link");e.setAttribute("href","https://idpay.unico.io/sdk-assets/assets/styles.css"),e.setAttribute("rel","stylesheet");let a=new Promise(o=>{e.onload=o});return document.head.appendChild(t),document.head.appendChild(e),Promise.all([s,a])},m=async t=>{i(r.INITIALIZE),l=t?.type,l===c&&(await p(),n.create())},y=({transactionId:t,onFinish:s})=>{i(r.START_FLOW,{transactionId:t}),l===c?n.open({transactionId:t,onFinish:s}):n.redirect(t)},h={init:m,start:y};export{h as IDPaySDK};
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "idpay-b2b-sdk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/acesso-io/transactional-management.git",
|
|
8
|
+
"directory": "libs/pay/sdk/idpay-b2b-sdk"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"registry": "https://registry.npmjs.org"
|
|
12
|
+
},
|
|
13
|
+
"module": "index.js",
|
|
14
|
+
"main": "index.js"
|
|
15
|
+
}
|