{"id":19732763,"url":"https://github.com/adcpd/vestiere_collective_api_call","last_synced_at":"2026-05-16T07:08:59.239Z","repository":{"id":98063105,"uuid":"353160216","full_name":"ADCPD/vestiere_collective_api_call","owner":"ADCPD","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-30T22:49:16.000Z","size":7578,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T03:59:54.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ADCPD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-30T22:44:05.000Z","updated_at":"2021-03-30T22:49:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"65c46731-8fcf-468a-815f-53ea1b719b66","html_url":"https://github.com/ADCPD/vestiere_collective_api_call","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ADCPD/vestiere_collective_api_call","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fvestiere_collective_api_call","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fvestiere_collective_api_call/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fvestiere_collective_api_call/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fvestiere_collective_api_call/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ADCPD","download_url":"https://codeload.github.com/ADCPD/vestiere_collective_api_call/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADCPD%2Fvestiere_collective_api_call/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33093706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T00:27:51.440Z","updated_at":"2026-05-16T07:08:59.202Z","avatar_url":"https://github.com/ADCPD.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# To summarize\n\n\u003e I did'nt understand if the data is already provided or i will have to be provided by the api call, so I created mine and I formatted the structure of the call\n\u003e \n\u003e I used the postman tool to do the api call. I have a bug to inject an array of parameters as a prameter for the action. I ended up bypassing the problem and I went through injecting the parameters into url. I know that is not the best solution to do\n\u003e\n\u003e I added an external API call to retrieve the real value of the currencies\n\u003e \n\u003e I configured stripe api to test the payments\n\u003e \n\u003e I created a historical entity to save the transactions on the items. I save all the action to pay or impeyed\n\u003e I would have preferred to use event dispatcher to do this. just, I passed the test time\n\u003e \n\u003e I have left you attached my docker config \u0026 the dump of database\n\n\u003e You found backup data base into [migration file](./migrations/stripe_db.sql)\n\n\u003e If you get a probleme to generate the project after build docker : drop the file [data](.docker/data) into ` .docker folder`\n\u003e \n\n#SYMFONY STRIPE INTEGRATION\n\nThis repository is a small tutorial which explains how to integrate stripe using Symfony 5 project\nand how to accept payments with Stripe\n\n##### RUN PROJECT DOCKER\n\n```\ndocker-compose build\ndocker-compose up    // voir les logs\ndocker-compose up -d // lancer les container sans les logs\n```\n\nIf the containers are already created:\n\n```\nmake start\n\n\u003e set your admin password\n```\n\n##### RUN DOCKER PHP CONTAINER \n\n```\nmake php_container\n\n\u003e set your admin password\n\u003e composer install  // to generate vendors\n```\n\n##### CREATE DATABASE IF NOT EXIST \n\n```\nphp app/console doctrine:database:create --if-not-exists\nphp app/console doctrine:schema:update --force\nphp app/console doctrine:fixtures:load\n```\n\n##### INSTALL STRIPE composant \n\nSTRIPE DASHBOARD DEBUG :  https://dashboard.stripe.com/test/logs\n\n```\ncomposer require stripe/stripe-php\n```\n\nSTRIPE DOC : https://stripe.com/docs/payments/accept-a-payment?integration=elements\nExpose root : \n\n```PHP\n    /**\n     * @Route(\n     *  \"/create-checkout-session\", \n     *  name=\"stripe-create-checkout-session\", \n     *  options={\"expose\"=true},\n     *  methods={\"GET\",\"POST\"} \n     *  )\n     */\n    public function create(\n        StripeService $stripeService\n        ): Response\n    {\n        #your code here\n    }\n```\nNext you have to generate js Route\n\n```\nbin/console fos:js-routing:dump --format=json --target=public/bundles/js/fos_js_routes.json\n```\n\nMAPPING : \n\nCHECKOUT PROCESS into  [StripeController](./src/Controller/StripeController.php) and [StripeService](./src/Services/StripeService.php)\n\nCHECKOUT JS PROCESS into [checkout.html.twig](./templates/default/checkout.html.twig)\n\nGenerate migration :\n```\nphp bin/console doctrine:migrations:migrate\n```\nGenerate Fixture :\n```\nphp bin/console doctrine:fixtures:load\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadcpd%2Fvestiere_collective_api_call","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadcpd%2Fvestiere_collective_api_call","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadcpd%2Fvestiere_collective_api_call/lists"}