贝宝沙箱商家帐户错误 [英] paypal sandbox merchant account error

查看:128
本文介绍了贝宝沙箱商家帐户错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,我正在尝试使用php脚本将Paypal连接起来. php构建查询字符串,然后提交到 https://www.paypal.com/cgi-bin/webscr 附加查询字符串.我可以验证这是否正常.我尚未处理付款,但会以正确的数量和价格等将其定向到PayPal.

I have a website that I'm trying to hook paypal up to with a php script. php builds the query string and then submits to https://www.paypal.com/cgi-bin/webscr with the query string attached. I can verify that this works fine. I haven't processed a payment but it directs to PayPal with the correct quantities and prices, etc.

但是,当我更改为 https://www.sandbox.paypal.com/cgi -bin/webscr 尝试处理时出现错误,提示商家PayPal帐户有问题.

However when I change to https://www.sandbox.paypal.com/cgi-bin/webscr I get an error when I try to process that says there was a problem with the merchants PayPal account.

我已经在PayPal沙箱上创建了几个测试帐户,但是据我所知,似乎我在沙箱中需要另一个商人帐户?如果是这样,我看不到该怎么做.我猜我需要更改查询字符串的?business = mycode "部分,但我不知道如何找出将其更改为...的内容.

I have created several test accounts on PayPal sandbox but from what I can tell looking around it seems I need another merchant account in the sandbox? If so, I don't see how to do this. I'm guessing I need to change the "?business=mycode" portion of the query string but I don't know how to figure out what to change it to...

无论如何,我环顾了一段时间,找不到答案,任何人都可以帮助我或将我定向到回答该问题的另一篇文章(我看过但找不到,或者至少我不明白,如果我这样做了) )?

Anyway I looked around a while and can't find the answer, can anyone help or direct me to another post that answers this (I looked but couldn't find it, or at least didn't understand it if I did)?

推荐答案

从实时更改为沙箱时,如果使用非托管按钮的URL可以反映您要测试的环境,则只需更改和业务变量的值.可以将其设置为您的实际测试电子邮件地址或真实卖家帐户或商家ID.如果您尚未创建用于测试的帐户.您可以通过转到PayPal的开发人员站点并创建一个开发人员帐户来实现.然后,完成此操作后,您可以登录开发人员帐户并转到应用程序"选项卡.在此页面上,单击左侧的沙箱帐户链接,然后创建一个预先配置的测试卖方帐户.这将生成一个链接到测试帐户的电子邮件地址.这将是您需要使用的电子邮件地址.如果这不起作用,您能否提供要提交给PayPal的字符串或正在使用的按钮代码,我将进行研究.

When changing back from live to sandbox, all you should need to change if using a non hosted button is the URL to reflect the environment that you are trying to test with and the value of the business variable. This can be set to either your email address of the actual test or live seller account or the merchant id. If you have not already created an account for testing. You can do so by going to PayPal's Developer Site, and creating a developer account. Then once you have done this, you can log into the developer account and go to the Applications tab. Once on this page, click the link for sandbox accounts on the left, and create a preconfigured test seller account. This will generate an email address linked to a test account. This will be the email address that you will need to use. If this doesn't work, can you provide the string that you are submitting over to PayPal or the button code that you are using and I will take a look at it.

这篇关于贝宝沙箱商家帐户错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆