<forms:paymentmethod />
Creates a payment method control to be used at the end of a Form.
Related Tutorials
Attributes
amount
float
The amount to be processed
autoFocus
bool
Auto Focus
If true, this control will attempt to focus itself after the page has loaded. Note that only one element may be focused on the page at a time.
Default = false
completeCart
bool
Determines if the control should add the event handler to complete the cart on the form
dataColumn
Sets the data column
The datacolumn links the form item to a key used when getting or saving from a component (as defined by the parent form).
disabled
bool
Disable Input
Disables the input, preventing user interaction
height
string
Height
Sets the height of the element. The default units are pixels. include the percentage symbol % to user percentage values.
id
string
Most form items need a unique id so that they can submit data to the server. No two form items may have the same id. For situations where multiple form items submit to the same field, see the
name attribute. Id's that begin with
contact_ will automatically save Contact information to the Contact database as long as the user has entered enough identifying information (ideally Name and Email). Check the
Contact Fields page for correct field names.
invoiceCompany
bool
Set to true if you have a preference of invoicing a company
isManual
bool
Determines if the control is used for a manual receipt
name
string
Sets the name of the form item. Most of the time, the id attribute will suffice. However, with form items that post multiple values into an array, each item will need to have the same name, followed by []. For example three controls with name="data[]", will all post into 'data'.
Radio buttons belonging to the same group will have to share the same name.
paymentMethod
If a payment method is specified, do not allow the user to choose
productId
int
Specify to add a product to the cart
productTitle
string
Specify to add a product to the cart
recurring
bool
When true, forces the recurring billing form to show
recurringAmount
float
The recurring amount to be processed
recurringInterval
string
The recurring interval/frequency
week, month, year
recurringIntervalNumber
int
The recurring interval/frequency number
Eg - recurringintervalnumber="2" recurringinterval="week" will bill every 2 weeks
saveState
bool
Restore state on reload
Whether the value of the input persists when the page is revisited.
Default = false
showPaymentFormOnZeroValue
bool
Should a payment form be shown when there is no value in the cart
If set to false, then a button showing "Confirm Order" will be displayed.
Used when products are added to the cart upon form submission.
transformations
Value Transformations
Sets the value transformations to be applied to the value of the form item as a comma separated string.
validations
Validations
Sets the validations to be applied to the value of the form item as a comma separated string.
Eg: validations="mandatory"
width
string
Width
Sets the width of the element. The default units are pixels. include the percentage symbol % to user percentage values.
onSuccessServer
callable
Called after payment was successfully taken or the cart completed