Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nft checkout example #48

Merged
merged 4 commits into from
Nov 27, 2023
Merged
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
4 changes: 4 additions & 0 deletions nft-stripe-checkout/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEXT_PUBLIC_NFT_CONTRACT_ADDRESS="stripeteststore.mintspace2.testnet"
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=""
NEXT_PUBLIC_MINTBASE_WALLET_URL="https://testnet.wallet.mintbase.xyz"
NEXT_PUBLIC_NETWORK="testnet"
2 changes: 2 additions & 0 deletions nft-stripe-checkout/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.next
11 changes: 11 additions & 0 deletions nft-stripe-checkout/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Get in touch

- Support: [Join the Telegram](https://tg.me/mintdev)
- Twitter: [@mintbase](https://twitter.com/mintbase)


---


1. Deploy a mintbase contract
2. Add `mintbus.testnet` as a minter to that contract
5 changes: 5 additions & 0 deletions nft-stripe-checkout/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
18 changes: 18 additions & 0 deletions nft-stripe-checkout/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack(config) {
// eslint-disable-next-line no-param-reassign
config.resolve.fallback = {
...config.resolve.fallback,
fs: false, // https://stackoverflow.com/a/67478653/470749
};

return config;
},

experimental: {
webpackBuildWorker: true,
},
};

module.exports = nextConfig;
38 changes: 38 additions & 0 deletions nft-stripe-checkout/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "engine-nft-checkout",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@mintbase-js/data": "0.5.0-beta.2",
"@mintbase-js/react": "0.5.0-beta.2",
"@mintbase-js/rpc": "0.5.0-beta.2",
"@mintbase-js/sdk": "0.5.0-beta.2",
"@mintbase-js/storage": "0.5.0-beta.2",
"@near-js/accounts": "^0.1.4",
"@stripe/react-stripe-js": "^2.3.1",
"@stripe/stripe-js": "^2.1.10",
"ethers": "^5",
"near-api-js": "^2.1.4",
"next": "^14",
"react": "^18.2",
"react-dom": "^18.2",
"stripe": "^14.2.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.0.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
}
}
Loading
Loading