Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 16
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
Config
0.00% covered (danger)
0.00%
0 / 16
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 1
2
 getDataService
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace BuyerKiosk\QuickBooks;
4
5use QuickBooksOnline\API\DataService\DataService;
6
7class Config extends Base {
8
9    public $authorizationRequestURL;
10    public $tokenEndPointURL;
11    public $clientID;
12    public $clientSecret;
13    public $oauthScope;
14    public $oauthRedirectURI;
15
16
17    public function __construct(\Store $store = null)
18    {
19        parent::__construct($store);
20        $this->authorizationRequestURL = "https://appcenter.intuit.com/connect/oauth2";
21        $this->tokenEndPointURL = "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer";
22        $this->clientID = "AB37C1i2oxTtjyxANG2PWuuRzud9IC0iFUbFGy2hCBnrSHgdBc";
23        $this->clientSecret = "5TPXekIaTfZe2E56pprvPQZ5l8U5n64CbnBCYuhg";
24        $this->oauthScope = "com.intuit.quickbooks.accounting";
25        $this->oauthRedirectURI = "https://buyerkiosk.dev/api/qbCallback.php";
26    }
27
28    public function getDataService() {
29
30        $dataService = DataService::Configure(array(
31            'auth_mode' => 'oauth2',
32            'ClientID' => $this->clientID,
33            'ClientSecret' =>  $this->clientSecret,
34            'RedirectURI' => $this->oauthRedirectURI,
35            'scope' => $this->oauthScope,
36            'baseUrl' => "development"
37        ));
38        return $dataService;
39    }
40}