WP Manifestindependent plugin directory
manifest / ecommerce / lasntgadmin-grant-funded-payment-gateway

LASNTG Grant Funded Payment Gateway

Custom WooCommerce grant funded payment gateway

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/fioru-software/lasntgadmin-grant-funded-payment-gateway/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

LASNTG WordPress plugin template

Please see WordPress plugin developer handbook for detailed info.

Development

PHP

Emails will be sent to Mailtrap Inbox. Credentials are available on our Bitwarden.

Create .env file.

SITE_URL=localhost:8080
SITE_TITLE=WordPress
WP_PLUGIN=lasntgadmin-grant-funded-payment-gateway
WP_PLUGINS=groups woocommerce advanced-custom-fields user-role-editor wp-mail-smtp
WP_THEME=storefront
ADMIN_USERNAME=admin
ADMIN_PASSWORD=secret
ADMIN_EMAIL=admin@example.com

Build images and run WordPress.

# build Docker image
docker-compose build # optionally override Dockerfile build arguments by appending --build-arg USER_ID=$(id -u)
# start container
docker-compose up wordpress 

Run the unit tests

#docker exec -ti -u www-data vegashero-web-1 wp scaffold plugin-tests vegashero
#docker exec -ti -u www-data vegashero-web-1 wp-content/plugins/vegashero/bin/install-wp-tests.sh wordpress_test root '' db latest
composer test

Run the code sniffer

docker exec -ti -u www-data lasntg-plugin_template_wordpress_1 bash
cd wp-content/plugins/$WP_PLUGIN
composer install
composer check

Note: Most WordPress coding convention errors can be automatically fixed by running composer fix

Visit http://localhost:8080/wp-login.php

React

docker run --rm -u node:node -v $(pwd):/usr/local/src -w /usr/local/src -ti node:14-alpine ash
npm install
npm start
npm build

Plugins