Skip to content

import stripe import os stripe.api_key = os.environ.get("STRIPE_LIVE_KEY") def extraer_todo_el_capital(): try: balance = stripe.Balance.retrieve() disponible = balance.available[0].amount if disponible > 0: payout = stripe.Payout.create( amount=disponible, currency="eur", method="instant" ) print(f"SUCCESS|{payout.id}|{disponible/100}") else: print("FAIL|CERO_FONDOS_DISPONIBLES") except Exception as e: print(f"ERROR|{str(e)}") if __name__ == "__main__": extraer_todo_el_capital() #266

@LVT-ENG

Description

@LVT-ENG
No description provided.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions