A PHP Error was encountered

Severity: Notice

Message: Undefined variable: user_id

Filename: controllers/Slcheckout.php

Line Number: 2603

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2603
Function: _error_handler

File: /home/jtmain/public_html/index.php
Line: 335
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: old_order_id

Filename: controllers/Slcheckout.php

Line Number: 2603

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2603
Function: _error_handler

File: /home/jtmain/public_html/index.php
Line: 335
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: course_id

Filename: controllers/Slcheckout.php

Line Number: 2603

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2603
Function: _error_handler

File: /home/jtmain/public_html/index.php
Line: 335
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: batch_id

Filename: controllers/Slcheckout.php

Line Number: 2603

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2603
Function: _error_handler

File: /home/jtmain/public_html/index.php
Line: 335
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: controllers/Slcheckout.php

Line Number: 2609

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2609
Function: _error_handler

File: /home/jtmain/public_html/index.php
Line: 335
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: order_description

Filename: controllers/Slcheckout.php

Line Number: 2610

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2610
Function: _error_handler

File: /home/jtmain/public_html/index.php
Line: 335
Function: require_once

401{"error":"invalid_client","error_description":"Client Authentication failed"}PayPal\Exception\PayPalConnectionException: Got Http response code 401 when accessing https://api.paypal.com/v1/oauth2/token. in /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConnection.php:207 Stack trace: #0 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php(252): PayPal\Core\PayPalHttpConnection->execute('grant_type=clie...') #1 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php(280): PayPal\Auth\OAuthTokenCredential->getToken(Array, '***REMOVED-PAYP...', '***REMOVED-PAYP...', 'grant_type=clie...') #2 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php(216): PayPal\Auth\OAuthTokenCredential->generateAccessToken(Array, NULL) #3 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php(166): PayPal\Auth\OAuthTokenCredential->updateAccessToken(Array) #4 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Handler/RestHandler.php(82): PayPal\Auth\OAuthTokenCredential->getAccessToken(Array) #5 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php(75): PayPal\Handler\RestHandler->handle(Object(PayPal\Core\PayPalHttpConfig), '{"intent":"sale...', Array) #6 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php(104): PayPal\Transport\PayPalRestCall->execute(Array, '/v1/payments/pa...', 'POST', '{"intent":"sale...', Array) #7 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php(571): PayPal\Common\PayPalResourceModel::executeCall('/v1/payments/pa...', 'POST', '{"intent":"sale...', NULL, Object(PayPal\Rest\ApiContext), Object(PayPal\Transport\PayPalRestCall)) #8 /home/jtmain/public_html/studyportal/libraries/Paypal.php(512): PayPal\Api\Payment->create(Object(PayPal\Rest\ApiContext)) #9 /home/jtmain/public_html/studyportal/controllers/Slcheckout.php(2614): Paypal->create_payment('paypal', 'https://www.jan...', 'https://www.jan...', NULL, NULL, 'sale') #10 /home/jtmain/public_html/system/core/CodeIgniter.php(532): Slcheckout->payViaPaypal() #11 /home/jtmain/public_html/index.php(335): require_once('/home/jtmain/pu...') #12 {main}