Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

PaymentOnAccount Container

Version: 3.0.0-beta3

Configuration

The PaymentOnAccount container provides the following configuration options:

ParameterTypeReq?Description
initialReferenceNumberstringNo
onReferenceNumberChangefunctionNoCallback function triggered when reference number change
onReferenceNumberBlurfunctionNoCallback function triggered when reference number blur

Slots

This container does not expose any customizable slots.

Usage

The following example demonstrates how to use the PaymentOnAccount container:

import { render as provider } from '@dropins/storefront-checkout/render.js';
import { PaymentOnAccount } from '@dropins/storefront-checkout/containers/PaymentOnAccount.js';
await provider.render(PaymentOnAccount, {
initialReferenceNumber: "example",
onReferenceNumberChange: onReferenceNumberChange,
onReferenceNumberBlur: onReferenceNumberBlur,
})(block);