From 4b971157c1bb5c392170bd293019dda95299a400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 9 Feb 2024 17:53:41 +0100 Subject: [PATCH] Add BillingPortal Example component --- app/Livewire/BillingPortal/Example.php | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/Livewire/BillingPortal/Example.php diff --git a/app/Livewire/BillingPortal/Example.php b/app/Livewire/BillingPortal/Example.php new file mode 100644 index 000000000000..00cdba32fe2e --- /dev/null +++ b/app/Livewire/BillingPortal/Example.php @@ -0,0 +1,33 @@ +dispatch('purchase.context', property: 'quantity', value: 1); + $this->dispatch('purchase.next'); + } + + public function render() + { + return <<<'HTML' +
This is step after auth. Currently logged in user is {{ $context['contact']['email'] }}.
+ HTML; + } +}