This is a simple app that renders the embedded payments component and loads the connect-js script using this npm package. Use this app to test out the library.
Ensure that you have replaced the following placeholders in the downloaded code sample:
{{CONNECTED_ACCOUNT_ID}}
pk_INSERT_YOUR_PUBLISHABLE_KEY
sk_INSERT_YOUR_SECRET_KEY
- Build the server
pip3 install -r requirements.txt
- Compile and run the server
Run
yarn install # installs all packages
yarn start # runs rollup to compile and starts the server
Note: if you are doing local development, you can use yalc to test local changes
- yarn build # from the root of this repository
- yalc publish # from the root of this repository
- yalc add @stripe/connect-js # in this sample
- Repeat this process whenever there are any changes to the package