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) »
  • iFraming processor screen?
Pages: [1]

Author Topic: iFraming processor screen?  (Read 1212 times)

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
iFraming processor screen?
January 19, 2012, 11:17:10 am
The non-profit that I am working with has a financial sponsor who is collecting our donations via pay pal. When I add our contacts email address into the settings in CIVI for the processor, there information is displayed without any reference to our org. is it possible to iframe the the processing screen once the continue button is clicked so when the visitor gets to the paypal screen our logo or some indication that it is 'US' is on the screen for them?

here is a link to the working sample I think it will make more sense when you see what happens after the confirmation click.

http://www.latinoequalityalliance.com/civicrm/contribute/transact?reset=1&id=5

Thanks in advance.

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: iFraming processor screen?
January 19, 2012, 01:56:15 pm

Might be a lot easier and faster for you / your financial sponsor to get your own specificpaypal account and then xfer the funds to your financial sponsor. This will enable your org to add your logo etc

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

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: iFraming processor screen?
January 19, 2012, 03:38:20 pm
Lobo, I just talked to someone at PayPal and the answer seems pretty easy.

Now I just need your knowledge, here is his answer.

Quote
If you want to simply pass a header image or logo image, then you would have to be able to edit the code being sent to us for the transaction. The header image would be at the top of the page and the logo image would display at the top of the Order Summary section. You can't use both, it's either one or the other.

First you would create your image and upload it to your server. Then you would use the appropriate variable and assign it to the URL of you newly uploaded image.

cpp_header_image=http://www.yourwebsite.com/imagefile.jpg
cpp_logo_image=http://www.yourwebsite.com/imagefile.jpg

Again, whichever variable you decide to use, you would put that in the code that's sent to us for the transaction along with the other variables such as item name, amount, etc.

Where in which file would you be able to add the "cpp_header_imag"?

It would be awesome if this could be something that would be set up from civi core, I am sure there are alot of people with a similar situation who are afraid to speak.

Thanks

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: iFraming processor screen?
January 19, 2012, 03:44:27 pm

You can use this hook to add any additional variables to be sent to the payment processor:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmalterPaymentProcessorParams

You can find information on developing on CiviCRM here:

http://book.civicrm.org/developer/

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

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: iFraming processor screen?
January 30, 2012, 08:21:22 pm
I have been trying to make sense of this for a few days with no success.

I downloaded and installed the example module was able to get on and enabled on my site.

I used the example provided in the hooks page, placed the variables in the hook function but I am not having any luck.

Here is the code for the module, can someone please let me know if I am going in the direction.

Thank you.


Code: [Select]

function civicrm_paypal_civicrm_alterPaymentProcessorParams( $paymentObj,
                                                       &$rawParams,
                                                       &$cookedParams ) {
    $mode = $paymentObj->getVar('_mode');
    $type = $paymentObj->getVar('_paymentProcessor');
    $processorType = $type['payment_processor_type'];
    if ( $paymentObj instanceof CRM_Core_Payment_PayPalImpl && $processorType == 'PayPal' ) {
        // Website Pro  Checkout
        $obj   = $paymentObj->getVar('_paymentForm');
        $value = $obj->getVar('_values');
        $id    = $value['id'];
        if ( $value['event']['id'] ) {
            $id =  $value['event']['id'];
        }

        $cookedParams['cpp_header_image'] = 'http://www.latinoequalityalliance.com/sites/latinoequalityalliance.com/files/image/lea_pp_logo.png';

    }
}



ryeradio

  • I post frequently
  • ***
  • Posts: 185
  • Karma: 1
  • CiviCRM version: 4.2.1
  • CMS version: Drupal
  • MySQL version: MySQL5
  • PHP version: PHP5
Re: iFraming processor screen?
March 12, 2012, 06:33:35 pm
Marketman, I am trying to do the same, did you ever get this to work?

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: iFraming processor screen?
March 12, 2012, 07:39:13 pm
No I didn't, im willing to throw a couple of bucks to get this done.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • iFraming processor screen?

This forum was archived on 2017-11-26.