Skip to main content
Cashfree payment button provides a simple HTML code to copy and paste on your website, blog, or any HTML page, as illustrated in the following example showing how the system-generated code provides a professional and secure way to collect payments for any use case.
payment button preview

Key benefits

The payment button streamlines your collection process with several automated features:
  • Fast setup: Accept payments in a matter of minutes by simply embedding a code snippet.
  • Custom information collection: Collect information based on your case, such as donations, events, selling physical or digital products, etc.
  • Automated redirects: Redirect back to your website by using the Return URL feature after a transaction.
  • Instant invoicing: Send invoices after successful payment to your customers automatically.

Use cases

You can deploy the payment button across various business models to handle transactions efficiently.
  • E-commerce: Sell physical or digital products on any custom website or blog.
  • Donations: Collect funds for social causes or NGOs with a simple Donate Now button.
  • Events: Manage registrations and payments for workshops, webinars, or local events.
  • Service bookings: Allow customers to pay for appointments or reservations using custom CTA text such as Book Now or Reserve Now.

Creating a payment button

Follow these steps to log in, configure, and generate your custom payment button within the Merchant Dashboard:
  1. Log in to the Merchant Dashboard.
  2. Go to Payment Gateway Dashboard > Payment Button > click Create Payment Button.
  3. Enter the Button Text (Call to Action) and specify with examples such as Pay Now, Donate Now, Book Now, or Reserve Now.
  4. Customise the Button Text Colour, Background Colour, Select Font Style, and Select Form Code according to your website or blog. You can view the preview directly in the editor.
  5. A Payment form is required to create a payment button. These forms allow you to collect customer information such as name, address, and other details specific to your use case.
  6. Create your form in the Payment Form Dashboard and link it to your payment button using the Form Code. We recommend using a readable form code in the personalised URL section during creation; you can find this code listed against each form in the dashboard.
  7. After creating the button by clicking the Create button when complete, you get a snippet of HTML code to copy and paste into your website.
Payment Button Creation

Platform integration guides

Choose your website hosting platform below to see specific instructions for embedding your payment button code accordingly:
Follow the steps given below to integrate the payment button with Google Sites:
  1. Log in to your Google Site and switch to Editor mode.
  2. Navigate to the page on which you want to place the button.
  3. Navigate to InsertEmbedEmbed Code and Paste the Cashfree Button Code from the dashboard.
  4. Publish to view the button on your Google Site.