|
Download README.md from bxm0121/opllplus: direct link, hf CLI and curl.
- Browser
- Download file 1.9 kB
-
https://huggingface.co/spaces/bxm0121/opllplus/resolve/main/README.md
- Command line
-
hf download hf://spaces/bxm0121/opllplus/README.md
-
curl -L -o README.md https://huggingface.co/spaces/bxm0121/opllplus/resolve/main/README.md
1.9 kB
metadata
title: Protocol Card Binding
emoji: 🔗
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
Protocol Card Binding
Protocol Card Binding - Sanitized Source
Current card-binding, default-payment-method, temporary Checkout initialization, concurrent batch extraction and protocol-payment source.
Modules
app.py: API, jobs, concurrency, cancellation and retry.card_bind_session.py: SetupIntent and Stripe publishable-key resolution.card_set_default.py: Attach and set the default PaymentMethod.card_checkout_context.py: Checkout and CustomerSession context.server_confirmation_token.py: ConfirmationToken helper.ph_checkout_protocol.py: Short-checkout protocol flow.static/,templates/: Binding and protocol-payment frontend.
Flow
- Create SetupIntent with an account access token.
- If Stripe context/key is missing, create one temporary Checkout.
- Fetch a fresh SetupIntent and key.
- Confirm binding through Stripe.js.
- Set the PaymentMethod as default.
- Run binding and extraction with concurrency up to 200.
- Release final payments in simultaneous waves of up to 200 accounts.
- Verify every paid account against the Plus subscription endpoint.
- Failed rows cancel their old child task and retry independently.
Deployment
Install requirements.txt, copy .env.example to .env, configure the local account archive and internal service endpoints, then run behind Flask/Gunicorn.
Sanitization
Excluded .env, accounts, tasks, logs, screenshots, runtime data, backups, caches and virtual environments. Deployment hostnames, server IPs, tokens and keys were removed or replaced.
Spaces runtime
This Space listens on port 7860 and starts with Gunicorn. Configure runtime values as Space Variables/Secrets; do not commit a live .env file.