service.go 514 B

123456789101112131415161718
  1. package billing
  2. import (
  3. "git.linuxforward.com/byom/byom-onboard/internal/common/models"
  4. )
  5. type BillingClient interface {
  6. CreatePaymentIntent(amount int64, currency string, paymentMethodID string) (*models.PaymentIntent, error)
  7. HandleWebhook(payload []byte, signature string) error
  8. }
  9. // TODO: Implement later
  10. // To check available plan and prices
  11. // Can also provide dynamic prices
  12. // type PlanService interface {
  13. // GetPlan(planID string) (*models.Plan, error)
  14. // ListPlans() ([]*models.Plan, error)
  15. // }