Jake Vanderwerf
2026-08-25 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a
inc/ui/Checkout.php
@@ -3,6 +3,7 @@
use JVBase\base\Site;
use JVBase\integrations\Integrations;
use JVBase\integrations\ServiceMap;
use JVBase\meta\Form;
use JVBase\meta\Meta;
@@ -29,13 +30,14 @@
 */
class Checkout
{
   use ServiceMap;
    public static function getProvider():Integrations|false
    {
      $int = ['square','helcim'];
      foreach ($int as $i) {
         if (Site::hasIntegration($i)) {
            error_log('Site has '.$i);
            return JVB()->connect($i);
            $self = new self();
            return $self->getService($i);
         }
      }
        return false;
@@ -70,7 +72,7 @@
         $tabs->addTab('thelogin')
            ->title('Login')
            ->description('Login to see past orders and access your saved cards')
            ->content(JVB()->magicLink()->renderForm());
            ->content(MagicLinks::getInstance()->renderForm());
      } else {
         $tabs->addTab('account')
            ->title('Account')