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

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

问题描述

我有一个网站,我正在尝试使用 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天全站免登陆