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 Invoice | Invoice Prepaid | |
|---|---|---|
| Order confirmation | Immediate | After manual payment confirmation |
| Pay later | Yes | No |
Adapter Details
| Property | Value |
|---|---|
| Key | shop.unchained.invoice-prepaid |
| Type | INVOICE |
| Version | 1.0.0 |
| Source | payment/invoice-prepaid/ |
Related
- Invoice Payment - Standard pay-later invoice