system-prompts-and-models-o.../salesflow-saas/backend/app/openclaw/plugins/stripe_plugin.py
2026-04-04 18:04:21 +03:00

14 lines
468 B
Python

from __future__ import annotations
from typing import Dict, Any
from app.services.stripe_service import stripe_service
class StripeBillingPlugin:
name = "stripe-billing"
async def create_charge(self, customer_id: str, amount_sar: int) -> Dict[str, Any]:
response = await stripe_service.create_payment_intent(amount_sar, customer_id)
return {"provider": "stripe", "customer_id": customer_id, "amount_sar": amount_sar, "response": response}