Wappler Version : 3.9.2
Operating System : mac
Server Model: PHP
Database Type:
Hosting Type:
Expected behavior
I should be able to retrieve a checkout session
Actual behavior
The order is processed, but upon returning to the checkout result, an error is received:
"code": 0,
"file": "/var/www/html/dmxConnectLib/modules/stripe.php",
"line": 480,
"message": "Use of undefined constant session - assumed 'session' (this will throw an Error in a future version of PHP)",
"trace": "#0 /var/www/html/dmxConnectLib/modules/stripe.php(480): exception_error_handler(2, 'Use of undefine...', '/var/www/html/d...', 480, Array)\n#1 /var/www/html/dmxConnectLib/lib/App.php(195): modules\\stripe->retrieveCheckoutSession(Object(stdClass), 'retrieveCheckou...')\n#2 /var/www/html/dmxConnectLib/lib/App.php(127): lib\\App->execSteps(Object(stdClass))\n#3 /var/www/html/dmxConnectLib/lib/App.php(94): lib\\App->exec(Object(stdClass))\n#4 /var/www/html/dmxConnect/api/result.php(8): lib\\App->define(Object(stdClass))\n#5 {main}"
}
How to reproduce
Store the checkout session id on checkout:
And attempt to retrieve the checkout session using that id:
I have confirmed the session.id is available at time of checkout.