Website Payments Pro (Paypal) Iframe

Im using Magento CE 1.6.2 and trying to use Payments Pro web payment system.

I look at the process of placing an order, I select the Paypal PRO link as a payment method, I get the message "You will need to enter payment information after placing the order", go to the page where I look at the order, which has the "Place order" button on it.

When I click Place Order, I expect you to get a paypal button in the iframe form, but nothing will appear. The page never changes.

If I register the back end, the order appears in Magento as “Pending Payment”.

I must mention that I am doing this with a test PayPal account and that I called PayPal and they believe that all my settings are correct, although I'm not sure that I have the correct settings.

Any thoughts on why I'm not being directed to the page for entering my billing information after clicking "Place an order"? Is there a bug with Website Payments Pro and Magento 1.6.2?

enter image description here http://minus.com/lbkpOV6gikF0bs

I turned on DEBUG mode and I read in the payment_hosted_pro.log file the correct PAYPAL API response.

2012-04-05T23:10:41+00:00 DEBUG (7): Array ( [url] => https://api-3t.sandbox.paypal.com/nvp [BMCreateButton] => Array ( [METHOD] => BMCreateButton [BUTTONCODE] => TOKEN [BUTTONTYPE] => PAYMENT [L_BUTTONVAR0] => subtotal=14.88 [L_BUTTONVAR1] => tax=0.00 [L_BUTTONVAR2] => shipping=5.00 [L_BUTTONVAR3] => invoice=100000050 [L_BUTTONVAR4] => address_override=false [L_BUTTONVAR5] => currency_code=EUR [L_BUTTONVAR6] => buyer_email=jdoe@gmail.com [L_BUTTONVAR7] => billing_first_name=John [L_BUTTONVAR8] => billing_last_name=Doe [L_BUTTONVAR9] => billing_city=New York [L_BUTTONVAR10] => billing_state=New York [L_BUTTONVAR11] => billing_zip=0000 [L_BUTTONVAR12] => billing_country=US [L_BUTTONVAR13] => billing_address1=no street [L_BUTTONVAR14] => billing_address2= [L_BUTTONVAR15] => first_name=John [L_BUTTONVAR16] => last_name=Doe [L_BUTTONVAR17] => city=New York [L_BUTTONVAR18] => state=New York [L_BUTTONVAR19] => zip=0000 [L_BUTTONVAR20] => country=US [L_BUTTONVAR21] => address1=no street [L_BUTTONVAR22] => address2= [L_BUTTONVAR23] => paymentaction=authorization [L_BUTTONVAR24] => notify_url=http://www.magento.it/paypal/ipn/ [L_BUTTONVAR25] => cancel_return=http://www.magento.it/paypal/hostedpro/cancel/ [L_BUTTONVAR26] => return=http://www.magento.it/paypal/hostedpro/return/ [L_BUTTONVAR27] => lc=IT [L_BUTTONVAR28] => template=templateD [L_BUTTONVAR29] => showBillingAddress=false [L_BUTTONVAR30] => showShippingAddress=false [L_BUTTONVAR31] => showBillingEmail=false [L_BUTTONVAR32] => showBillingPhone=false [L_BUTTONVAR33] => showCustomerName=false [L_BUTTONVAR34] => showCardInfo=true [L_BUTTONVAR35] => showHostedThankyouPage=false [VERSION] => 72.0 [USER] => **** [PWD] => **** [SIGNATURE] => **** [BUTTONSOURCE] => Varien_Cart_WPP_IT ) [response] => Array ( [WEBSITECODE] => <form action="https://securepayments.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="HSS-IC0YjKMf1wXUUGEyDIpUTWddXlgnXvVl"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_paynow_LG.gif" border="0" name="submit" alt="PayPal - Il sistema di pagamento online più facile e sicuro!"> <img alt="" border="0" src="https://www.sandbox.paypal.com/it_IT/i/scr/pixel.gif" width="1" height="1"> </form> [EMAILLINK] => https://securepayments.sandbox.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HSS-IC0YjKMf1wXUUGEyDIpUTWddXlgnXvVl [HOSTEDBUTTONID] => HSS-IC0YjKMf1wXUUGEyDIpUTWddXlgnXvVl [TIMESTAMP] => 2012-04-05T23:10:41Z [CORRELATIONID] => bb7df94045217 [ACK] => Success [VERSION] => 72.0 [BUILD] => 2764190 ) [__pid] => 5980 ) 

Why can't I see the "Website Payments" form in one checkout page?

  • Magento 1.6
  • Fresh installation
  • Custom template not installed

Hi

+6
source share
3 answers

DECIDED FINALLY

I solved the problem with the trigger, which allows me to always find a new installation in debug mode, check the correct permissions of files and folders and test it to buy a test product in my directory.

Look at the / var / log folder that I get in the system.log file:

2012-04-06T06: 39: 06 + 00: 00 CRIT (2): Invalid template file: frontend / base / default / template / paypal / hostedpro / iframe.phtml I checked the directory frontend / base / default / template / paypal / and no hosting directories! This is really strange in the new Magento installation!

I created the directory and downloaded only the file frontend / base / default / template / paypal / hss / iframe.phtml, and now it also works!

This is a real Magento Bug!

+2
source

For 1.7.0.2 you do not need a hosting directory. hss works great . I ran into this problem and spent a lot of time successfully implementing this ... First of all, you have to create a paypal account and a corresponding sandbox account . In the sandbox account click profile pop up appears. You will get all the information there, like account information,API credentials,funding,settings,products ... enter image description here

use your email id as your associated PayPal account, API credentials, and most importantly go to product s .. enable the checkbox of Payment pro . If you do not enable this check box, you cannot use a solution based on payment or payment advance ... you will receive various types of errors.

And another important thing to keep in mind is that payment pro hosted solution is not available in every country .. it is available in HongKong , United kingdom ... etc. not available in USA .... check this page on how Advance payment is not available in every country .. its available in USA ... so first you need to check if it is available or not ... depending on what you must create their own sandbox account ... as for pro hosted solution create an account of UK or HK .. and for payment advance create an account of USA ...

0
source

I found that the problem was in my custom theme. Try changing the default theme and see what happens

0
source

Source: https://habr.com/ru/post/912541/


All Articles