A PHP Error was encountered

Severity: Warning

Message: Undefined variable $user_id

Filename: controllers/Slcheckout.php

Line Number: 2550

Backtrace:

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $old_order_id

Filename: controllers/Slcheckout.php

Line Number: 2550

Backtrace:

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $course_id

Filename: controllers/Slcheckout.php

Line Number: 2550

Backtrace:

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $batch_id

Filename: controllers/Slcheckout.php

Line Number: 2550

Backtrace:

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

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

A PHP Error was encountered

Severity: Warning

Message: Trying to access array offset on null

Filename: controllers/Slcheckout.php

Line Number: 2556

Backtrace:

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $order_description

Filename: controllers/Slcheckout.php

Line Number: 2557

Backtrace:

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

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

A PHP Error was encountered

Severity: 8192

Message: trim(): Passing null to parameter #1 ($string) of type string is deprecated

Filename: Validation/NumericValidator.php

Line Number: 22

Backtrace:

File: /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Validation/NumericValidator.php
Line: 22
Function: trim

File: /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php
Line: 54
Function: validate

File: /home/jtmain/public_html/studyportal/libraries/Paypal.php
Line: 488
Function: setTotal

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2561
Function: create_payment

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

A PHP Error was encountered

Severity: 8192

Message: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

Filename: Converter/FormatConverter.php

Line Number: 56

Backtrace:

File: /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Converter/FormatConverter.php
Line: 56
Function: strpos

File: /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php
Line: 55
Function: formatToPrice

File: /home/jtmain/public_html/studyportal/libraries/Paypal.php
Line: 488
Function: setTotal

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2561
Function: create_payment

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

A PHP Error was encountered

Severity: 8192

Message: trim(): Passing null to parameter #1 ($string) of type string is deprecated

Filename: Converter/FormatConverter.php

Line Number: 30

Backtrace:

File: /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Converter/FormatConverter.php
Line: 30
Function: trim

File: /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Converter/FormatConverter.php
Line: 60
Function: formatToNumber

File: /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php
Line: 55
Function: formatToPrice

File: /home/jtmain/public_html/studyportal/libraries/Paypal.php
Line: 488
Function: setTotal

File: /home/jtmain/public_html/studyportal/controllers/Slcheckout.php
Line: 2561
Function: create_payment

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


Deprecated: Optional parameter $handlers declared before required parameter $method is implicitly treated as a required parameter in /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php on line 53

Deprecated: Optional parameter $configs declared before required parameter $prefix is implicitly treated as a required parameter in /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalHttpConfig.php on line 286

Deprecated: Optional parameter $config declared before required parameter $tokenExpiresIn is implicitly treated as a required parameter in /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Cache/AuthorizationCache.php on line 56
400{"name":"VALIDATION_ERROR","message":"Invalid request - see details","debug_id":"2b1455de38d78","information_link":"https://developer.paypal.com/docs/api/payments/#errors","details":[{"field":"/transactions/0/amount","location":"body","issue":"Cannot construct instance of `com.paypal.platform.payments.model.rest.common.Amount`, problem: INVALID_CURRENCY_AMOUNT_FORMAT"}]}PayPal\Exception\PayPalConnectionException: Got Http response code 400 when accessing https://api.paypal.com/v1/payments/payment. 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/Transport/PayPalRestCall.php(78): PayPal\Core\PayPalHttpConnection->execute('{"intent":"sale...') #1 /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) #2 /home/jtmain/public_html/studyportal/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Payment.php(570): PayPal\Common\PayPalResourceModel::executeCall('/v1/payments/pa...', 'POST', '{"intent":"sale...', NULL, Object(PayPal\Rest\ApiContext), Object(PayPal\Transport\PayPalRestCall)) #3 /home/jtmain/public_html/studyportal/libraries/Paypal.php(517): PayPal\Api\Payment->create(Object(PayPal\Rest\ApiContext)) #4 /home/jtmain/public_html/studyportal/controllers/Slcheckout.php(2561): Paypal->create_payment('paypal', 'https://www.jan...', 'https://www.jan...', NULL, NULL, 'sale') #5 /home/jtmain/public_html/system/core/CodeIgniter.php(533): Slcheckout->payViaPaypal() #6 /home/jtmain/public_html/index.php(362): require_once('/home/jtmain/pu...') #7 {main}