From 6a2332526badfb734264868b90b82a3518ca2337 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 15 Mar 2021 08:42:05 +1100 Subject: [PATCH] Biling Subscription Service --- .../BillingSubscriptionService.php | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app/Services/BillingSubscription/BillingSubscriptionService.php diff --git a/app/Services/BillingSubscription/BillingSubscriptionService.php b/app/Services/BillingSubscription/BillingSubscriptionService.php new file mode 100644 index 000000000000..7d2de3a33e9a --- /dev/null +++ b/app/Services/BillingSubscription/BillingSubscriptionService.php @@ -0,0 +1,43 @@ +billing_subscription = $billing_subscription; + } + + public function createInvoice($payment_hash) + { + //create the invoice if necessary ie. only is a payment was actually processed + } + + public function createClientSubscription($payment_hash) + { + //create the client sub record + } + + public function triggerWebhook($payment_hash) + { + //hit the webhook to after a successful onboarding + } + + public function fireNotifications() + { + //scan for any notification we are required to send + } +}