Skip to content

bitpay/bitpay-browser-extension

Repository files navigation

Discover new ways to use crypto

Be alerted whenever a website you visit offers crypto as a payment option.
Pay directly at checkout, or purchase and manage store credit through the app.


Browser Support

Chrome Firefox Brave Opera
49 & later ✔ 52 & later ✔ 36 & later ✔ 79 & later ✔

🚀 Quick Start

Ensure you have

  • Node.js 10 or later installed
  • Yarn v1 or v2 installed

Then run the following:

  • yarn install to install dependencies.
  • yarn run dev:chrome to start the development server for chrome extension
  • yarn run dev:firefox to start the development server for firefox addon
  • yarn run dev:opera to start the development server for opera extension
  • yarn run build:chrome to build chrome extension
  • yarn run build:firefox to build firefox addon
  • yarn run build:opera to build opera extension
  • yarn run build builds and packs extensions all at once to extension/ directory

Development

  • yarn install to install dependencies.

  • To watch file changes in development (please note that Hot Module Replacement is currently only supported for Manifest v2 builds):

    • Chrome
      • yarn run dev:chrome
    • Firefox
      • yarn run dev:firefox
    • Opera
      • yarn run dev:opera
  • Load extension in browser

    • Chrome

      • Go to the browser address bar and type chrome://extensions
      • Check the Developer Mode button to enable it.
      • Click on the Load Unpacked Extension… button.
      • Select your extension’s extracted directory.
    • Firefox

      • Load the Add-on via about:debugging as temporary Add-on.
      • Choose the manifest.json file in the extracted directory
    • Opera

      • Load the extension via opera:extensions
      • Check the Developer Mode and load as unpacked from extension’s extracted directory.

Enabling testnet payments

Change your .env.development file to the following:

API_ORIGIN=https://test.bitpay.com

Generating browser specific manifest.json

See the original README of wext-manifest package for more details

Production

  • yarn run build builds the extension for all the browsers to extension/BROWSER directory respectively.

Show your support

Give a ⭐️ if this project helped you!

License

Code released under the MIT License.