Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dist/doc/developer-tools/inlinejs/initialize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const js = `// Add for NPM, Yarn
const js = `// Add for CDN
const Paystack= new PaystackPop();

// Add for NPM, Yarn
import Paystack from '@paystack/inline-js';

const popup = new Paystack()`
Expand Down
8 changes: 7 additions & 1 deletion src/doc/developer-tools/inlinejs/initialize/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Add for CDN
const popup= new PaystackPop();

// Add for NPM, Yarn
import Paystack from '@paystack/inline-js';

const popup = new Paystack()
const popup = new Paystack()

// Note: The CDN build exposes `PaystackPop` globally,
// whereas the npm package exports `Paystack`.