Getting this error:
In
All health checks pass, so it seems like this dev tools line was left in the released version. Seems like this is the only file which has this that I can find (other than the CLI command used to add it).
Have had multiple users lose their subscription status because of this, so stuck fixing that too now.
Code:
ParseError: syntax error, unexpected token "const" src/XF/Payment/CallbackState.php:25
Generated by: Unknown account Sep 19, 2026 at 12:23 PM
Stack trace
#0 src/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/mnt/nfs/db1/da...')
#1 src/XF/Payment/Stripe.php(686): Composer\Autoload\ClassLoader->loadClass('XF\\Payment\\Call...')
#2 payment_callback.php(33): XF\Payment\Stripe->setupCallback(Object(XF\Http\Request))
#3 {main}
In
src/XF/Payment/CallbackState.php it has:
PHP:
<?php
namespace XF\Payment;
/**
* @property \XF\Entity\PurchaseRequest $purchaseRequest
* @property \XF\Purchasable\AbstractPurchasable $purchasableHandler
* @property \XF\Entity\PaymentProfile $paymentProfile
* @property \XF\Entity\User $purchaser;
*
* @property int $paymentResult
*
* @property string $requestKey
*
* @property string $transactionId
* @property string $subscriberId
* @property string $paymentCountry
*
* @property string $logType
* @property string $logMessage
* @property array $logDetails
* @property int $httpCode
*/
#[\AllowDynamicProperties]
const USE_FUNCTION_PLACEHOLDER = true;
class CallbackState
{
All health checks pass, so it seems like this dev tools line was left in the released version. Seems like this is the only file which has this that I can find (other than the CLI command used to add it).
Have had multiple users lose their subscription status because of this, so stuck fixing that too now.