Node.js server for Payfiat payment service
-
copy and create
.env
filecp .env.example .env
-
Fill add
.env
details correctly. Payfiat server uses Stripe as fiat payment processor. So, you will need to create stripe account to get api keys. -
install node dependencies
npm i
-
start server
npm start
In .env
file, replace value of WEB3_NODE
variable with appropriate web3 provider for a given network (for e.g.) Pacific, Mainnet, Rinkeby etc.
Also, provide appropriate value for -
OCEAN_CONTRACT_ADDRESS
- Ocean Token contract address for a given network.OCEAN_FROM_KEY
- Private key without '0x' for a funding WalletOCEAN_FROM_ADDRESS
- Ethereum address for a funding Wallet