CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Embed Contribution Form into Different Website
Pages: [1] 2

Author Topic: Embed Contribution Form into Different Website  (Read 2843 times)

craftee123

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Embed Contribution Form into Different Website
December 06, 2012, 04:20:54 pm
Is there any way to embed a civiCRM contribution form in another website? Like the HTML Snippet for contact profiles?

I've read that you can use &snippet=1 and iframe.  Does that really work?

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Embed Contribution Form into Different Website
December 07, 2012, 07:48:27 am
Hey there,

Have you seen the contribution widget?

e.g. http://drupal.demo.civicrm.org/civicrm/admin/contribute/widget?reset=1&action=update&id=1

It was built for this purpose.  Not exactly embedded, but it is the recommended way to allow people to advertise your contribution page on another website...
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

craftee123

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Re: Embed Contribution Form into Different Website
December 07, 2012, 08:48:25 am
My experience is that donors feel less confident (and therefore less likely to give) if they are taken away from your website to make a donation.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Embed Contribution Form into Different Website
December 07, 2012, 10:06:35 am
Well, that is kind of the point of civicrm, that it exists on your own website and is not a separate service. Sounds like you have a special situation though.
Try asking your question on the new CiviCRM help site.

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: Embed Contribution Form into Different Website
December 07, 2012, 12:43:26 pm
How about a simple iFrame solution?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

kharding

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 4
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: Recent
  • PHP version: 5.3.16
Re: Embed Contribution Form into Different Website
December 07, 2012, 07:28:54 pm
iFrame or other embed solutions will likely result in SSL issues, no?

Some sort of customization of this would be nice, like an intermediary step from an insecure embedded HTML form that passes contribution amount to an SSL secured Civi installation where users confirm amount and provide payment details... Especially in situations where a group may be providing solutions to clients via CiviCRM.

At the same time, prettified URLs would help me with this situation, and would require me to fret less about integration.

In the end, I'll likely need to get coding ;)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Embed Contribution Form into Different Website
December 07, 2012, 09:37:20 pm
Quote
At the same time, prettified URLs would help me with this situation, and would require me to fret less about integration.

FWIW civi urls are compatible with drupal path module - i.e. you can alias them.
Try asking your question on the new CiviCRM help site.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Embed Contribution Form into Different Website
December 08, 2012, 01:43:53 am
Hi,

We had one case with an event with a separate site (different from the civicrm one). I tried using iframe and/or ajax and snippet=1 (to skip the crm layout and get only the form) and got stuck on the payment part.

In the end, the solution was to change the template of the main site for this specific event to mimic the mini site of the event layout (it's quite easy in civi to create specific layout for specific events or donations).
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

kharding

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 4
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: Recent
  • PHP version: 5.3.16
Re: Embed Contribution Form into Different Website
December 08, 2012, 07:17:13 am
Quote from: Coleman Watts on December 07, 2012, 09:37:20 pm
Quote
At the same time, prettified URLs would help me with this situation, and would require me to fret less about integration.

FWIW civi urls are compatible with drupal path module - i.e. you can alias them.

Only the landing page.  Once you start to get into any /transact/ URL, you lose some variables because they are sent as session variables.  It messes with ThemeKey as well, though I have bludgeoned that into working both with D7 and with more than just contribution pages.

sougatab

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 2.5
  • MySQL version: 5+
  • PHP version: 5.3
Re: Embed Contribution Form into Different Website
April 25, 2013, 04:41:38 am
We are facing a similar issue and need to find a solution to embed a contribution form in another website. A non-profit has an existing website with a donation form and payment gateway (say at abc.com). The website (abc.com) is not based on Joomla, Drupal or WordPress and they do not want to change the site. However they would like to use CiviCRM for donation data collection and reporting. CiviCRM (with Joomla) is hosted on a separate server (say at xyz.com).

The problem:
To create a standard donation form (fields like name, email, billing address and donation amount) that is hosted on abc.com which communicates with the CiviCRM at xyz.com to create a new contribution entry. The form can behave like a normal contribution page and all donations can be kept in pending status (can be manually changed later).

The second part of the problem is to send the donation form variables to a payment gateway (without full payment gateway integration with CiviCRM). Anyway in this case the payment gateway is domain-specific and will work only at abc.com and not at xyz.com.

Please suggest how this issue can be solved. If any developer needs to do some custom coding, then we can fund the project.
Thanks a lot!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Embed Contribution Form into Different Website
April 25, 2013, 06:35:54 am

we'd recommend the foll:

1. install your favorite CMS on abc.com on a seperate url from the main website

2. Install civicrm on that CMS and configure your donation page

You keep things simple, avoid new code and get things done :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

sougatab

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 2.5
  • MySQL version: 5+
  • PHP version: 5.3
Re: Embed Contribution Form into Different Website
April 25, 2013, 02:53:45 pm
Thanks Lobo.

Even if we change the CiviCRM hosting, a part of the problem will still remain. The payment gateway that the non-profit is using is not supported by CiviCRM. They do not have the budget to get the full payment processor integration done now. So we thought that an alternate option could be a simple contribution form (with fields like name, email, donation amount) that takes this information and creates a contribution record in CiviCRM. All donations will be kept in pending status and updated manually after checking the admin panel provided by the payment gateway.

How can we create such a simple form that takes this data and saves it in CiviCRM? A contribution page with a dummy processor didn't fully work because we need to send the form data to the payment gateway. No data will be returned to CiviCRM by the payment gateway (the payment process will remain same). This solution can help non-profits to use CiviCRM even if their payment gateway is not supported.
 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Embed Contribution Form into Different Website
April 25, 2013, 09:53:36 pm

IMO, might be a lot easier and cheaper for you and the non-profit to use one of the supported payment processors like paypal or authorize.net

trying to do things partially in civi and then manually updating things seems a bit counter-productive

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

sougatab

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 2.5
  • MySQL version: 5+
  • PHP version: 5.3
Re: Embed Contribution Form into Different Website
April 25, 2013, 11:15:01 pm
I agree with you Lobo. But we have not been able to find a simpler solution.

This non-profit is based in India. Due to different financial regulations, Indian non-profits are not able to use Paypal, Google Checkout or Authorize.net. So various NGOs use payment gateways provided by different providers/banks. Multiple extensions for the different payment gateways have to be created for complete integration. This is a costly proposition and has led to low usage of CiviCRM in India (though India has the largest number of non-profits in the world).

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Embed Contribution Form into Different Website
April 26, 2013, 07:08:29 am

Might be useful to get a small percentage of that large number of non-profits to collaborate and get a payment processor built :)

i faintly recollect something about an indian payment processor being written / worked on recently. Might want to do some search and see if u can find any

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Embed Contribution Form into Different Website

This forum was archived on 2017-11-26.