@payloadcms/plugin-form-builder
Version:
Form builder plugin for Payload CMS
54 lines (53 loc) • 1.21 kB
JavaScript
export const defaultPaymentFields = {
name: 'payment',
type: 'group',
admin: {
readOnly: true
},
fields: [
{
name: 'field',
type: 'text',
label: 'Field'
},
{
name: 'status',
type: 'text',
label: 'Status'
},
{
name: 'amount',
type: 'number',
admin: {
description: 'Amount in cents'
}
},
{
name: 'paymentProcessor',
type: 'text'
},
{
name: 'creditCard',
type: 'group',
fields: [
{
name: 'token',
type: 'text',
label: 'token'
},
{
name: 'brand',
type: 'text',
label: 'Brand'
},
{
name: 'number',
type: 'text',
label: 'Number'
}
],
label: 'Credit Card'
}
]
};
//# sourceMappingURL=defaultPaymentFields.js.map