hexo-stripepay-deployer-heroku

Heroku deployer plugin of Hexo with added Stripe payment processing.

Usage no npm install needed!

<script type="module">
  import hexoStripepayDeployerHeroku from 'https://cdn.skypack.dev/hexo-stripepay-deployer-heroku';
</script>

README

hexo-stripepay-deployer-heroku

(modified Fork of hexo-deployer-heroku Upstream)

Build Status NPM version Coverage Status Build status

Heroku deployer plugin for Hexo.

Installation

$ npm install hexo-stripepay-deployer-heroku --save

Options

You can configure this plugin in _config.yml.

# You can use this:
deploy:
  type: heroku
  repo: <repository url>
  message: [message]
  • repo: Repository URL
  • message: Commit message. The default commit message is Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }}.

Reset

Remove .deploy_heroku folder.

$ rm -rf .deploy_heroku

Stripe payment integration

pay.php is added in .deploy_heroku target for credit card processing in the heroku nginx PHP container in which hexo-generated static html/css/js assets reside. Also, a simple custom nginx.conf with heroku Procfile mod is added so as to redirect all site traffic to SSL/HTTPS. This is configured to work with Heroku ACM (Automatic Certificate Management). Simply substitute heroku-stripepay-deployer-heroku for the original hexo-deployer-heroku Hexo Plugin, and point a Stripe Checkout form action in your Hexo content to /pay.php/ so as to enable your hexo -powered site with eCommerce payment processing via Stripe!

License

MIT