Skip to main content

Developer Inquiry: Implementing Authorize/Capture Workflow for Custom Payment Gateway

Hello FluentCart Team,
​I am currently developing a custom payment gateway integration for FluentCart. My payment provider supports a two-stage payment flow (Authorize and Capture). I need to allow store administrators to manage these transactions (Capture or Void) directly from the FluentCart Order Management interface.

I would appreciate your guidance on the following technical points:
​1. Admin UI Customization
​I need to provide administrators with clear actions to handle authorized payments.
​What is the recommended way to add custom action buttons (e.g., "Capture Payment", "Void Authorization") to the Order Details page?
​Are there specific hooks to inject these actions into the "Order Actions" dropdown or the sidebar area in the FluentCart admin dashboard?

​2. Implementing Capture/Void Logic
​When an admin triggers a manual capture or void:
​Which action hooks should I listen to for processing these custom requests?
​Does FluentCart have a standard method or class within its Payment API to handle capture() and void() operations, or should these be handled as completely custom AJAX/REST actions?

​3. Order Status & Metadata Management
​What is the best practice for updating the order status and adding transaction notes/metadata after a successful capture/void within the FluentCart framework?
​Is there a specific internal API for logging these payment events in the order history?

​Context:
​Platform: WordPress
​Plugin: FluentCart (Latest version)
​Goal: Native-like integration for Authorize/Capture workflow.

Thank you for your time and for providing such a powerful tool for the WordPress community. I look forward to your guidance.

​Best regards,
Eduard

Developer Inquiry: Implementing Authorize/Capture Workflow for Custom Payment Gateway