mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 15:29:36 +00:00
14 lines
468 B
Python
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}
|