Here’s a very rough sketch of the steps involved in bringing Stripe into a CakePHP application:
Update composer.json to require stripe, then run ‘composer update’.
(FYI, Composer failed first time because I didn’t have Curl installed on my server. Once this was fixed, all went smoothly.)
Manually install Hashmode’s Stripe component in the /Controller/Component directory.
(NOTE, doing this with composer borks on my install since this component is still in dev mode and conflicts with the update policies set for the app in composer.json.)
Change the default nameSpace in the new component to ‘/app/…’.
Set up a Stripe account
Add the Stripe keys to bootstrap.php
Create the ‘add card’ form
Create a ‘form-submit-button’ element, and include in the add-card form
Include links to jQuery & the Stripe JS in the app