I have made a website using CakePHP (3.8) as my platform. I have developed a website for clients to post jobs and contractors can pick them up. The website allows clients to post jobs on a calendar. Contractors can then pick up these jobs for an agreed upon price and date.
For the payments, I want to use Stripe. When the client posts a job (say for example, for June 20th, 2020, 7 AM), I want them to put in their card details and submit the job details. I do not want them to by charged until 24 hours before the job is set to begin (so they get charged June 19th, 2020 7 AM). This seem possible utilizing Stripes setupIntent ([login to view URL])
I would assume using a cron/task scheduler (my development environment is WAMP but will likely migrate to Linux server when going live) would be the best option; run a script every hour to find jobs that can be charged because they meet the conditions:
1 - It is 24 hours before the job starts
2 - The job was confirmed by a manager
If the card is declined for whatever reason, the job should be cancelled to ensure the contractor does not work the job.
Additional functionality would be the ability to have clients save their card details so they only need to input it once, making booking future jobs easy.
The site functions as it should aside from this payment integration, so this is the last step before I can go live. I need someone who has done Stripe integrations similar to this, with familiarity with CakePHP/MVC frameworks as I require the integration to conform to CakePHP conventions. Because I am the primary developer for this website I would also appreciate well-documented code, so if I do need to make changes later it is possible.
8 freelancers are bidding on average $157 for this job
hi i am a fullstack web and application developer. i have about 9 years of experience and most of my activity in developing extensiosn and templates has been for cms.