Skip to Content
PaymentsRefunds

Refunds

import { money } from "@vectapay/sdk"; // Partial refund await vectapay.payments.refund(paymentId, { amount: money(20000), // refund KES 200.00 of the original payment reason: "Returned one item", }); // Full remaining balance — omit `amount` await vectapay.payments.refund(paymentId, { reason: "Order cancelled" });

A refund only applies to a payment whose status is already SUCCESS. The original payment record doesn’t change status — it stays SUCCESS — but its refundedAmount increases, and a payment.refunded webhook fires. See Payment Lifecycle.

Refund availability and processing time depend on the original provider — see Providers for per-provider notes.

Last updated on