News:

Looking for documentation? Take a look on our wiki

Main Menu

Paypal iFrame

Started by Roman Delamare, September 10, 2013, 08:52:47 AM

Previous topic - Next topic

Roman Delamare

Joomla 2.5.9
Virtuemart 2.0.20b
online shop URL http://www.penichelibrairie.com/

Hi guys,

I'm trying to integrate an iFrame for paypal. Paypal technician sent me the code for it, saying that I need to integrate it at the bottom of the page where customer choose to pay.
I really don't know how and where to insert the following code. How to replace the variables.
Could you help me that would be awesome.
I've subscribed to their "Paypal Integral Evolution" that they sell in France, don't know if in the UK it's called the same.

here's what I recieved from their technician:
<html>
    <head><title>
                                </title>
                </head>
    <body>
                                <iframe name="hss_iframe" width="570px" height="540px"></iframe>
        <form style="display:none" target="hss_iframe" name="form_iframe" method="post" action="https://securepayments.paypal.com/cgi-bin/acquiringweb">
            <input type="hidden" name="cmd" value="_hosted-payment">
            <input type="hidden" name="currency_code" value="EUR">
            <input type="hidden" name="invoice" value="66">
            <input type="hidden" name="subtotal" value="54.12">
            <input type="hidden" name="business" value="<!-- email du marchand -->">
            <input type="hidden" name="paymentaction" value="sale">
            <input type="hidden" name="template" value="templateD">
            <input type="hidden" name="return" value="<!-- URL de retour après paiement -->">
            <input type="hidden" name="cancel_return" value="<!-- URL de retour si le paiement est annulé -->">
            <input type="hidden" name="email" value="<!-- adresse mail du client -->">
            <input type="hidden" name="first_name" value="<!-- prénom du client -->">
            <input type="hidden" name="last_name" value="<!-- nom du client -->">
            <input type="hidden" name="address1" value="<!-- adresse du client -->">
            <input type="hidden" name="address2" value="<!-- adresse mail du client -->">
            <input type="hidden" name="city" value="<!-- ville du client -->">
            <input type="hidden" name="state" value="">
            <input type="hidden" name="zip" value="<!-- npa du client -->">
            <input type="hidden" name="country" value="FR">
           <input type="hidden" name="billing_email" value="<!-- adresse mail du client (facturation) -->">
            <input type="hidden" name="billing_first_name" value="<!-- prénom du client (facturation) -->">
            <input type="hidden" name="billing_last_name" value="<!-- nom du client (facturation) -->">
            <input type="hidden" name="billing_address1" value="<!-- adresse du client (facturation) -->">
            <input type="hidden" name="billing_address2" value="<!-- adresse du client (facturation) -->">
            <input type="hidden" name="billing_city" value="<!-- ville du client (facturation) -->">
            <input type="hidden" name="billing_state" value="">
            <input type="hidden" name="billing_zip" value="<!-- npa du client (facturation) -->">
            <input type="hidden" name="billing_country" value="FR">
        </form>
        <script type="text/javascript">
            document.form_iframe.submit();
        </script>
    </body>
</html>

Thanks guys.
Joomla 2.5
Virtuemart 2.0.20b

ssc3

For Virutemart users this plugin will automatically create the iframe.

http://plugins.online-store.co.uk/paypal_pro_hosted_solution.html
Virtuemart Payment Plugins
https://plugins.online-store.co.uk

Roman Delamare

Thanks! backing up the website and installing it right away for testing.
Joomla 2.5
Virtuemart 2.0.20b

Roman Delamare

I configured the API.
However I get this message error on top of the iFrame
"Please check your API Username, Password and Signature for your Live or Sandbox account."

Didn't set a sandbox API yet. Do I have to, or is it just because my recently created API isn't fully operational yet?
Joomla 2.5
Virtuemart 2.0.20b

Roman Delamare

And I also get a copy of the website into the iframe.
Joomla 2.5
Virtuemart 2.0.20b

ssc3

If you have the plugin in Live Mode

use the

API Username, Password and Signature from your live account.

and if it is in Test/Sandbox mode

use the

API Username, Password and Signature from a PayPal Developer Account

http://developer.paypal.com

try to cut and paste and not type the values as that can lead to errors.

if you are still having problems contact me using the following web form

http://www.online-store.co.uk/reply.html

and I will take a look at the setup for you.
Virtuemart Payment Plugins
https://plugins.online-store.co.uk

Roman Delamare

Thanks for answering. I'll check that up and come back to you.
Joomla 2.5
Virtuemart 2.0.20b

Roman Delamare

Everything is working perfectly!
It's great!
Paypal people (who are actually being paid) don't really do much of a support for virtuemart, and they couldn't come close to it.
Thanks again.
Joomla 2.5
Virtuemart 2.0.20b