Skip to main content

Order cancellation: payment_status remains "Paid" after canceling paid order

Ripon Sarkar 
When I manually cancel an order with status "Completed" and payment_status "Paid" in the admin, the order status changes to "canceled" but the payment_status remains "Paid".

Is this expected behavior? Should the payment_status be automatically updated when a paid order is canceled, or should I handle refunds manually?

I noticed that other payment gateways (Paddle, Stripe, Paystack) don't implement handlers for the fluent_cart/order_canceled hook. Should I follow this pattern?

Order cancellation: payment_status remains "Paid" after canceling paid order

Shahjahan Jewel

Yes. An order can be cancelled without making a refund. In the UI, we will give them the option to make a refund. Payment gateways should just have refund handler like we have for stripe / paypal.

Rafael Piton

Shahjahan Jewel Thank you for the clarification.

I'm creating an integration with a custom gateway, and I only need the onsite checkout.

Which of FluentCart's native gateways do you suggest I study and understand how it works to help me with this integration?