New Feature - SumUp pay-per-print integration (Solo & QR-Code)#1500
Open
frogro wants to merge 38 commits intoPhotoboothProject:devfrom
Open
New Feature - SumUp pay-per-print integration (Solo & QR-Code)#1500frogro wants to merge 38 commits intoPhotoboothProject:devfrom
frogro wants to merge 38 commits intoPhotoboothProject:devfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites checklist
What is the purpose of this pull request?
What changes did you make? (Give an overview)
feat: add SumUp pay-per-print integration (Solo & QR-Code)
Pay-per-print Integration for Sumup Payment (via QR code or Solo Terminal
This PR introduces a robust payment integration that allows charging for prints while maintaining the full feature set of Photobooth (Frames, QR-Codes, etc.).
Core Integration:
sumup_solo.py: Handles transactions for the SumUp Solo Terminal.webhook_sumup.py: Flask-based listener for QR-code payment status updates.sumup_print_wrapper.phpto bridge Python scripts with the nativeprint.php. This ensures that all configured effects (QR codes, frames, rotation) are applied correctly to the payment-triggered prints.Setup Requirements:
Installation:
install-photobooth-sumup-ngrok-gunicorn.shbased on the original installer to automate the environment setup.1.) Create a free SumUp account and API access token
2. Create a free ngrok account
Set up an ngrok authoring token / note the dev domain (it should be an fixed IP - maybe it will be offered to you later)
ngrok config add-authtoken YOUR_TOKEN3. Start the tunnel (only required for QR code payment)
ngrok http --url=myurl.ngrok-free.app 5000or via the service (integrated in the installer)4. Start guinicorn (only required for QR code payment)
cd /var/www/html/apisudo -u www-data gunicorn -w 2 -b 127.0.0.1:5000 webhook_sumup:appor via the service (integrated in the installer)Is there anything you'd like reviewers to focus on?
You can also clone with following commands:
sudo apt install gitcd ~git clone -b feature/sumup-payment https://github.com/frogro/photobooth.git photoboothcd ~/photoboothgit branchShould show:
* feature/sumup-paymentbash install-photobooth-sumup-ngrok-gunicorn.shAI used to create this Pull Request?
Yes. It was done with the support of ChatGPT and Gemini.