What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

Bug Fixed Stripe Payment Error – 'transaction_id' Null on Purchase Attempt

VisEntities

Active Member
I'm seeing this error in the server log whenever users try to purchase using Stripe. It seems to fail during the purchase process, they sometimes try multiple times until it works (or give up)

Code:
ErrorException: [E_WARNING] Attempt to read property "transaction_id" on null src/addons/XFA/RMMarketplace/Purchasable/MarketplacePurchase.php:226
Generated by: Unknown account May 5, 2025 at 5:59 PM
Stack trace
#0 src/addons/XFA/RMMarketplace/Purchasable/MarketplacePurchase.php(226): XF::handlePhpError(2, '[E_WARNING] Att...', 's...', 226)
#1 src/XF/Payment/AbstractProvider.php(212): XFA\RMMarketplace\Purchasable\MarketplacePurchase->completePurchase(Object(XF\Payment\CallbackState))
#2 payment_callback.php(67): XF\Payment\AbstractProvider->completeTransaction(Object(XF\Payment\CallbackState))
#3 {main}
Request state
array(4) {
  ["url"] => string(40) "/payment_callback.php?_xfProvider=stripe"
  ["referrer"] => bool(false)
  ["_GET"] => array(1) {
    ["_xfProvider"] => string(6) "stripe"
  }
  ["_POST"] => array(0) {
  }
}


1746464665298.png
 
Ok I have modified the way I retrieved the transaction id, this should fix the issue.

I am releasing a new version.

Sorry for the really annoying issue.

Clément
 

From bespoke add-on development to complex integrations and specialized enhancements, we offer a range of XenForo development services designed to help your community thrive.

Start discussing your needs
Back
Top
Cart