Skip to main content

Stripe Connect 1.2.5 – PaymentIntent "charges" property removed in pinned API

2 hours 26 minutes ago #100000920 by ShepherdsStream
-- url of the page with the problem -- : shepherdsstream.org
-- HikaShop version -- : HikaShop Business 6.8.2 [2611112047]
-- Joomla version -- : 6.2.2
-- PHP version -- : 8.3.37
-- Browser(s) name and version -- : Chrome 158.0

Hello HikaShop / Obsidev team,

We recently updated our marketplace to use the Stripe Connect Accounts v2 API for vendor onboarding, and we are writing about some issues we found in the Stripe Connect payment plugin (version 1.2.5) while reviewing it alongside that update.

Our setup: HikaShop Business 6.7.1, HikaMarket Multivendor 6.1.1, Joomla 6.2.

PaymentIntent "charges" property removed in the pinned API version

stripeconnectclass.php sets \Stripe\Stripe::setApiVersion('2022-11-15'), but that API version removed the "charges" property from the PaymentIntent object (it was replaced by "latest_charge"). Because the plugin still reads $intent->charges:

processIntentOutcome() always returns early, so blocked or elevated-risk outcomes are never detected and orders are set to the verified status.
processPaymentVendors() never sets source_transaction on vendor transfers and falls back to transfer_group, so the transfers draw on the platform's available balance.

Could these be fixed by retrieving the PaymentIntent with expand: and reading the charge from there?

Undefined variable in maintainPaymentIntent()

In stripeconnect.php (around line 240), maintainPaymentIntent() uses $now without defining it, so the expiry check for token mode never runs.

Accounts v2 support

Our connected accounts are created through the Accounts v2 API with the merchant configuration (direct charges). Are there plans to update the plugin to a current Stripe library and API version, and to support v2 accounts, including the recipient configuration needed for destination charges and multi-vendor transfers?

Thank you for your help. We're happy to provide more details or test a fix.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum