Credit Card Preview

Demo to preview the plugin:

Introduction

This plugin allows you to add a live and interactive credit card preview to your bubble application. Users can preview the data they entered in a beautiful preview. You can create your own form elements and the plugin will attach them to the card preview automatically.
💡
(!) No data is saved.
Image without caption

How to setup

  1. Enable ID Attributes
    1. Go to the settings page in your editor. Under the General tab click on the checkbox “Expose the option to add an ID attribute to HTML elements”
      App Settings → General Tab.
      App Settings → General Tab.
  1. Add the Element to the Page
      • Go to the Design tab in your Bubble editor.
      • Search for the element called Card Container.
      • Drag and drop this element onto your page where you want the credit card preview to appear.
    1. Configure the Properties
      1. With the element selected, fill out the following fields in the property panel:
        • name placeholder: Placeholder text shown in the input field for the cardholder's name.
        • Input CC Number Element ID: The ID of the input element for the card number.
        • Input CVC Number Element ID: The ID of the input element for the card CVC code.
        • Input Expiry Element ID: The ID of the input element for the card expiry date (month/year).
        • Input Name Element ID: The ID of the input element for the cardholder’s name.
        • Form Element ID: The ID of the form container (optional, for form validation or submission).
    1. Connect to User Inputs
      1. Create input fields on your page for the user to enter card details, such as:
        • Card number
        • Cardholder name
        • Expiration month and year
        • CVC
        Then, in the Card Container element’s properties, fill in each field with the ID Attribute of the corresponding input element. The plugin uses these IDs to retrieve the values dynamically from the inputs. Make sure each input on the page has a unique ID, and that the same ID is entered in the respective field of the Card Container properties.

    Plugin Element Properties

    Card Container

    Fields:
    Title
    Description
    Type
    Width
    Width in Pixels
    Number
    Name placeholder
    The placeholder of the name field
    Text
    Input CC Number Element ID
    The element id of the input used to enter the cc number
    Text
    Input CVC Number Element ID
    The element id of the input used to enter the cvc number
    Text
    Input Expiry Element ID
    The element id of the input used to enter the expiry date
    Text
    Input Name Element ID
    The element id of the input used to enter the name
    Text
    Form Element ID
    The element id of the group that holds all the inputs
    Text
    Image without caption

    Changelogs