Skip to main content

Invoice Prepaid Payment

Prepaid invoice payment: isPayLaterAllowed is false and charge returns false, so orders stay pending until you confirm payment receipt manually — typical for bank transfer / proforma invoice flows.

Installation​

Included in the all preset — registered automatically by registerAllPlugins().

To register it individually:

import { pluginRegistry } from '@unchainedshop/core';
import { InvoicePrepaidPlugin } from '@unchainedshop/plugins/payment/invoice-prepaid';

pluginRegistry.register(InvoicePrepaidPlugin);

Create Provider​

mutation CreatePrepaidInvoiceProvider {
createPaymentProvider(
paymentProvider: {
type: INVOICE
adapterKey: "shop.unchained.invoice-prepaid"
}
) {
_id
}
}

Confirming Payments​

Confirm payment receipt via the Admin UI or GraphQL:

mutation ConfirmPayment {
confirmOrder(orderId: "order-id") {
_id
status
}
}

Comparison with Standard Invoice​

Standard InvoiceInvoice Prepaid
Order confirmationImmediateAfter manual payment confirmation
Pay laterYesNo

Adapter Details​

PropertyValue
Keyshop.unchained.invoice-prepaid
TypeINVOICE
Version1.0.0
Sourcepayment/invoice-prepaid/