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
