网站付款专业(Paypal)Iframe

时间:2012-04-05 22:01:56

标签: magento paypal

我正在使用Magento CE 1.6.2并尝试使用Website Payments Pro系统。

我通过结帐流程,选择Paypal PRO链接作为我的付款方式,收到消息“您需要在下订单后输入付款详细信息”,转到我查看订单的页面它上面的“下订单”按钮。

当我点击“下订单”时,我的期望是以iframe形式获得paypal按钮,但什么都没有出现。页面永远不会改变。

如果我在后端办理登机手续,该订单会在Magento中显示为“待付款”。

我应该提一下,我使用测试PayPal帐户执行此操作,并且我打电话给PayPal并且他们认为我的所有设置都是正确的,但我不确定我的设置是否正确。

在点击“下订单”后,有关为什么我没有被定向到页面输入我的付款信息的任何想法?是否有网站付款专家和Magento 1.6.2的错误?

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

我启用了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
)

为什么我在单页结帐时看不到网站付款专业表格?

  • Magento 1.6
  • 全新安装
  • 未安装自定义模板

此致

3 个答案:

答案 0 :(得分:2)

最终解决

我已经解决了在完全安装时启用调试模式的三重问题,检查了文件和文件夹的正确权限,并测试它在我的目录中购买测试产品。

看一下我在system.log中收到的/ var / log文件夹这条消息:

2012-04-06T06:39:06 + 00:00 CRIT(2):无效的模板文件:frontend / base / default / template / paypal / hostedpro / iframe.phtml 我检查了目录frontend / base / default / template / paypal /和没有任何hostedpro目录!在全新安装的Magento中,这真的很奇怪!

我已经创建了目录并只上传了frontend / base / default / template / paypal / hss / iframe.phtml文件,现在它也可以正常工作!

这是一个真正的Magento Bug !!

答案 1 :(得分:0)

对于1.7.0.2,你不需要一个hostedpro目录.hss工作正常。但是我遇到了这个问题并且花了很多时间来成功实现... 首先,你必须create a paypal account and a corresponding sandbox account在沙盒帐户中点击个人资料,系统会显示pop up ..您将获得account information,API credentials,funding,settings,products之类的所有信息... enter image description here

使用电子邮件ID作为关联的PayPal帐户,API凭据和most importantly go to product s .. enable the checkbox of Payment pro。如果您未启用此复选框,则无法使用支付专业版托管解决方案或付款提前...你会得到各种类型的错误..

另一个要记住的重要事项是payment pro hosted solution is not available in every country .. HongKongUnited kingdom ...等not available in USA .... check this page比如支付提前不是每个国家都有。its available in USA ...所以首先你要检查它是否可用......取决于你必须创建你的沙箱帐户......就像{{ 1}} ..和pro hosted solution create an account of UK or HK ...

答案 2 :(得分:0)

我发现问题出在我的自定义主题中。尝试将主题更改为默认值,看看会发生什么