Credit Card Form

Most web applications need to precess credit cards at some point. Simcify has created a beautiful form for you.

Show Payment Form

To show the payment form, simply:

/*
 * without options
 */
 
 showCardPaymentForm();
 
 /*
 * with options
 */
 showCardPaymentForm(options);
 

Arguments/options

This function has one optional argument options which is an object

{
    buttonText: "Proceed",
    buttonClass: "submit-button",
    callback: "reload()"
}

Option

Type

Description

buttonText

string

The label on the submit button.

buttonClass

string

The class on the submit button

callback

string

Callback function when submit button is clicked.

Hide form

To hide the form, you can use the code below;

hideCardPaymentForm();

Last updated