A PHP Error was encountered

Severity: Notice

Message: Undefined variable: user_id

Filename: controllers/Checkout.php

Line Number: 3045

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Checkout.php
Line: 3045
Function: _error_handler

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

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: old_order_id

Filename: controllers/Checkout.php

Line Number: 3045

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Checkout.php
Line: 3045
Function: _error_handler

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

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: course_id

Filename: controllers/Checkout.php

Line Number: 3045

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Checkout.php
Line: 3045
Function: _error_handler

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

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: batch_id

Filename: controllers/Checkout.php

Line Number: 3045

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Checkout.php
Line: 3045
Function: _error_handler

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

A PHP Error was encountered

Severity: Notice

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

Filename: controllers/Checkout.php

Line Number: 3051

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Checkout.php
Line: 3051
Function: _error_handler

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

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: order_description

Filename: controllers/Checkout.php

Line Number: 3052

Backtrace:

File: /home/jtmain/public_html/studyportal/controllers/Checkout.php
Line: 3052
Function: _error_handler

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

400{"name":"VALIDATION_ERROR","message":"Invalid request - see details","debug_id":"621bdaa8b05f4","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(571): 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(512): PayPal\Api\Payment->create(Object(PayPal\Rest\ApiContext)) #4 /home/jtmain/public_html/studyportal/controllers/Checkout.php(3056): Paypal->create_payment('paypal', 'https://www.jan...', 'https://www.jan...', NULL, NULL, 'sale') #5 /home/jtmain/public_html/system/core/CodeIgniter.php(532): Checkout->payViaPaypal() #6 /home/jtmain/public_html/index.php(309): require_once('/home/jtmain/pu...') #7 {main}