{"id":20619703,"url":"https://github.com/twtrubiks/paypal_flask","last_synced_at":"2025-04-15T11:55:16.563Z","repository":{"id":84518974,"uuid":"73557087","full_name":"twtrubiks/PayPal_flask","owner":"twtrubiks","description":"PayPal example use Python Flask","archived":false,"fork":false,"pushed_at":"2016-11-12T16:52:55.000Z","size":193,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T11:55:11.886Z","etag":null,"topics":["flask","paypal","python","tutorial"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twtrubiks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-11-12T14:23:24.000Z","updated_at":"2025-01-27T07:00:33.000Z","dependencies_parsed_at":"2023-03-02T04:30:27.272Z","dependency_job_id":null,"html_url":"https://github.com/twtrubiks/PayPal_flask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twtrubiks%2FPayPal_flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twtrubiks%2FPayPal_flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twtrubiks%2FPayPal_flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twtrubiks%2FPayPal_flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twtrubiks","download_url":"https://codeload.github.com/twtrubiks/PayPal_flask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249067775,"owners_count":21207395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["flask","paypal","python","tutorial"],"created_at":"2024-11-16T12:12:19.232Z","updated_at":"2025-04-15T11:55:16.557Z","avatar_url":"https://github.com/twtrubiks.png","language":"JavaScript","funding_links":["https://www.paypal.com/","https://developer.paypal.com/docs/","https://developer.paypal.com/developer/applications","https://www.sandbox.paypal.com/signin"],"categories":[],"sub_categories":[],"readme":"# PayPal_flask\nPayPal example use Python Flask\n\n* [Demo](https://youtu.be/7tlbl0e_umQ)  \n(影片有更多詳細的介紹)\n\n使用Python [Flask](http://flask.pocoo.org/) 搭配 [PayPal](https://www.paypal.com/) 網路線上付款，希望這個簡單的範例可以幫助想要學習的朋友。\n\n## 特色\n* 透過 [PayPal](https://www.paypal.com/) 網路線上付款 。\n* 更多的文件可以參考 [PayPal Document](https://developer.paypal.com/docs/)\n\n## 執行說明\n請先確定電腦有安裝 [Python](https://www.python.org/)\n\n接著使用下列指令即可運行\n``` \npython app.py\n```\n\n請去 [PayPal](https://www.paypal.com/) 註冊一組帳號，註冊完畢之後，\n\n請到 [HERE](https://developer.paypal.com/developer/applications)，點選Create App，如下圖\n\n![alt tag](http://i.imgur.com/7yMAf04.jpg)\n\n接著將裡面的key貼到程式碼裡\n![alt tag](http://i.imgur.com/fv1z8Hn.jpg)\n\n``` \npaypal.configure({\n    \"mode\": \"sandbox\",  # sandbox or live\n    \"client_id\": \"ATcNxfmVFttFZG3v6mnrjuGGL9RzZqBZeGpPUiiarEpdzXyoe1ecgKTljdnDNfuQzBsEq3yW_YpFc_2O\",\n    \"client_secret\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"})\n\n```\n\nP.S KEY請換自己的!!\n\n接著你到 Sandbox -\u003e Accounts ，你會發現有兩組帳號，這兩組就是你的測試帳號，密碼可以再自行修改。\n![alt tag](http://i.imgur.com/WNvnZeI.jpg)\n\n這兩組帳號可以從以下的網址登入\n[sandbox paypal](https://www.sandbox.paypal.com/signin)\n\n## 執行畫面\n\n可選擇要使用 PayPal 或 Credit Card 付款的方式\n![alt tag](http://i.imgur.com/WAEAI77.jpg)\n\n可以輸入 Sale ID 以及 金額 去 Refund\n![alt tag](http://i.imgur.com/S6i7YcE.jpg)\n\n下方顯示最近的50筆交易紀錄\n![alt tag](http://i.imgur.com/pZeUjU5.jpg)\n\n\n## External JS\n* [DataTables](https://datatables.net/)\n\n## 其他參考\n* [PayPal-Python-SDK](https://github.com/paypal/PayPal-Python-SDK)\n    \n## 執行環境\n* Python 3.5.2\n\n## License\nMIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwtrubiks%2Fpaypal_flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwtrubiks%2Fpaypal_flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwtrubiks%2Fpaypal_flask/lists"}