简体   繁体   English

网站支付专业版(贝宝)Iframe

[英]Website Payments Pro (Paypal) Iframe

I'm using Magento CE 1.6.2 and am attempting to use Website Payments Pro system.我正在使用 Magento CE 1.6.2 并尝试使用 Website Payments Pro 系统。

I go through the checkout process, select Paypal PRO link as my payment method, get the message “You will be required to enter your payment details after you place an order”, get to the page where I review the order that has the “Place Order” button on it.我通过结帐流程 go,select Paypal PRO 链接作为我的付款方式,收到消息“下订单后需要输入付款详细信息”,进入我查看订单的页面,其中包含“下订单”订单”按钮就可以了。

When I click “Place Order” my expectation is to get the paypal button in a iframe form but nothing appear.当我单击“下订单”时,我的期望是在 iframe 表单中获得 paypal 按钮,但什么也没有出现。 The page never changes.页面永远不会改变。

If I check in the back end the order appears in Magento as “Pending Payment”.如果我检查后端,订单在 Magento 中显示为“待付款”。

I should 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 am unsure if I have the settings right.我应该提一下,我正在使用测试 PayPal 帐户执行此操作,并且我调用了 PayPal,他们认为我的所有设置都是正确的,尽管我不确定我的设置是否正确。

Any thoughts on why I'm not being directed to a page to enter my payment info after clicking “Place Order”?为什么我在点击“下订单”后没有被定向到输入我的付款信息的页面? Is there a bug with the Website Payments Pro and Magento 1.6.2? Website Payments Pro 和 Magento 1.6.2 是否存在错误?

在此处输入图像描述 http://minus.com/lbkpOV6gikF0bs http://minus.com/lbkpOV6gikF0bs

I have enabled the DEBUG mode and I have read in the payment_hosted_pro.log a correct response of the PAYPAL API.我启用了 DEBUG 模式,并且在 payment_hosted_pro.log 中读到了 PAYPAL API 的正确响应。

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 I cannot see the Website Payments Pro form in the onepage checkout?为什么我在单页结帐中看不到 Website Payments Pro 表格?

  • Magento 1.6 Magento 1.6
  • Fresh install全新安装
  • No custom template installed没有安装自定义模板

Regards问候

SOLVED FINALLY终于解决了

I have solved the tricly problem enabling the Debug mode in always in a fresh install, checked the right permissions of the files and folders and testing it to buying a test product in my catalog.我已经解决了始终在全新安装中启用调试模式的棘手问题,检查了文件和文件夹的正确权限并测试了它以在我的目录中购买测试产品。

Take a look the /var/log folder I get in the system.log this message:看看我在 system.log 中得到的 /var/log 文件夹这条消息:

2012-04-06T06:39:06+00:00 CRIT (2): Not valid template file:frontend/base/default/template/paypal/hostedpro/iframe.phtml I have checked the directory frontend/base/default/template/paypal/ and there is not any hostedpro directory!! 2012-04-06T06:39:06+00:00 CRIT (2): 模板文件无效:frontend/base/default/template/paypal/hostedpro/iframe.phtml 我检查了目录 frontend/base/default/template /paypal/ 并且没有任何 hostedpro 目录!! This is really odd in a fresh install of Magento!这在全新安装的 Magento 中真的很奇怪!

I have created the directory and uploaded just the frontend/base/default/template/paypal/hss/iframe.phtml file and now it works as well!我已经创建了目录并仅上传了 frontend/base/default/template/paypal/hss/iframe.phtml 文件,现在它也可以正常工作了!

This is a real Magento Bug!!这是一个真正的 Magento 错误!!

For 1.7.0.2 you dont need a hostedpro directory..hss works fine .Yet i faced this problem and took lot of time to successfully implement that... First of all you have to create a paypal account and a corresponding sandbox account .对于 1.7.0.2 你不需要 hostedpro 目录..hss 工作正常。但是我遇到了这个问题并花了很多时间来成功实现它......首先你必须create a paypal account and a corresponding sandbox account In sandbox account click on profile a pop up will appear..you will get all the information there like account information,API credentials,funding,settings,products ...在沙盒帐户中,单击配置文件将出现一个pop up您将在那里获得所有信息,如account information,API credentials,funding,settings,products ......在此处输入图像描述

use the email id as the associated paypal account,API credentials,and most importantly go to product s.. enable the checkbox of Payment pro .If you dont enable this checkbox you cant use payment pro hosted solution or payment advance...you will get various types of errors..使用 email id 作为关联的 paypal 帐户、API 凭据, most importantly go to product .. enable the checkbox of Payment pro 。如果您不启用此复选框,您将无法使用 payment pro 托管解决方案或预付款...您将得到各种类型的错误..

And another important thing to remember is that payment pro hosted solution is not available in every country ..its available in HongKong , United kingdom ...etc not available in USA .... check this page like payment Advance is not available in every country.. its available in USA ...so first you have to check whether its available or not...depending upon that you have to create your sandbox account...like for pro hosted solution create an account of UK or HK ..and for payment advance create an account of USA ...另一件需要记住的重要事情是, payment pro hosted solution is not available in every country /地区都可用。它在HongKongUnited kingdom not available in USA …… 检查此页面,例如支付预付款并非在每个国家/地区都可用country.. its available in USA ......所以首先你必须检查它是否可用......取决于你必须创建你的沙盒帐户......就像pro hosted solution create an account of UK or HK 。 .并为payment advance create an account of USA ......

I found the problem was in my custom theme.我发现问题出在我的自定义主题中。 Try changing your theme to default and see what happens尝试将主题更改为默认主题,看看会发生什么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM