pjStripe - reusable Stripe payment gateway
=========================================================

1. Install
	- Copy the 'pjStripe' folder into 'app/plugins/'
	- Run the plugin SQL (same prefix-less style as the bundled pjSms plugin;
	  the script prefix is applied on install):
	    app/plugins/pjStripe/config/database.sql
	    app/plugins/pjStripe/config/updates/update_2026_07_06_10_00_00.sql
	- Enable the plugin by adding 'pjStripe' to the $CONFIG['plugins'] array in
	  'app/config/config.inc.php' and 'app/config/config.sample.php'

2. Configure
	- Admin > Options > Stripe: enter your Publishable key and Secret key
	  (test keys sk_test_/pk_test_ or live sk_live_/pk_live_)

3. Use (wire your own trigger)
	- Start a payment from your own code by requesting the plugin form:
	    $this->requestAction(array(
	        'controller' => 'pjStripe',
	        'action'     => 'pjActionForm',
	        'params'     => array(
	            'reference_id'  => 'whatever-you-are-charging-for',
	            'amount'        => 25.00,
	            'currency_code' => 'EUR',
	            'item_name'     => 'Membership',
	            'return_url'    => PJ_INSTALL_URL . 'index.php?...', // optional
	        )
	    ));
	  The buyer is redirected to Stripe and returned to pjStripe::pjActionReturn,
	  which verifies the session and records it in the transactions grid.
	- To run your own activation logic instead, point success_url at your own
	  action and call pjStripe::pjActionConfirm (see ChangeLog) to verify.
