CoolFace
Apppublic

Pityutolna/Titanium-Master

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
titanium_v30_final.py28 linesDownload Raw Back to root
1import os, time, threading, subprocess, stripe2from flask import Flask, jsonify, request3from dotenv import load_dotenv4 5load_dotenv(os.path.expanduser("~/.env"))6app = Flask(__name__)7stripe.api_key = os.getenv("STRIPE_SECRET_KEY")8 9@app.route("/")10def index():11    return jsonify({"status": "TITANIUM_ONLINE", "vault": "Revolut_LT81_Ready"})12 13@app.route("/pay", methods=["POST"])14def pay():15    try:16        intent = stripe.PaymentIntent.create(17            amount=5000, currency='eur', # 50 EUR Fix Payout18            metadata={'target': 'REVOLUT_LT81_3250'}19        )20        return jsonify(intent)21    except Exception as e: return jsonify(error=str(e)), 40022 23def run_server():24    app.run(host="0.0.0.0", port=3001, threaded=True)25 26if __name__ == "__main__":27    run_server()28