邮政编码错误 PayPal (PHP)

发布于 2024-10-20 09:20:49 字数 290 浏览 7 评论 0 原文

我想通过 PayPal 集成向导将 PayPal 集成到我的网站上。我使用 PayPal API 和 PayPal 集成向导生成的expresscheckout.php、paypalfunctions.php。

我编写了表单来填写帐单数据以发布到 PayPal,但它返回错误代码:10712,这意味着“此交易有错误。请在帐单地址中输入有效的邮政编码。”推荐的解决方案是“请在帐单地址中输入您的五位数邮政编码。” 好的,没错,但我尝试使用 95131,这是来自加利福尼亚州的有效邮政编码,它是五位数字。

可能是什么问题?有什么建议吗?

I want to integrate PayPal on my website with PayPal integration wizard. I use PayPal API and expresscheckout.php, paypalfunctions.php generated by PayPal Integration Wizard.

I wrote form to fill billing data to post to PayPal, but it returns Error Code: 10712, which mean is "There's an error with this transaction. Please enter a valid postal code in the billing address." and recommended solution is " Please enter your five digit postal code in the billing address. "
Okay, that's right, but I tried to use 95131 which is valid ZIP from California, and it's five digits.

What could be the problem? Any suggestion ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

明月夜 2024-10-27 09:20:49

从您问题的标签来看,我假设您正在使用 PayPal Sandbox。如果是这样,请确保您使用有效的“测试”信用卡号,例如 此处,或尝试按照以下流程(从此 PayPal 开发者网络线程

请按照以下步骤生成信用卡号以进行测试
PayPal 帐户在沙盒中可选。

登录您的沙盒帐户
点击“个人资料”
点击财务信息下的“信用卡”
点击“添加”按钮,就像您要向帐户添加信用卡一样

使用此处自动生成的信用卡号作为
买家的信用卡

注意:请勿单击“添加卡”按钮,因为这将添加信用卡
到您的沙盒帐户。如果将其添加到您的 Sandbox 帐户,则无法
用于进行非 PayPal 帐户付款。

From the tags on your question I'm assuming you're using the PayPal Sandbox. If so, make sure you are using a valid "test" credit card number, such as the ones here, or try following the following process, copied from this PayPal Developer Network thread:

Please follow the steps below to generate a credit card number for testing
PayPal Account Optional within the Sandbox.

Log in to your Sandbox Account
Click 'Profile'
Click on 'Credit Cards' under Financial Information
Click the ''Add' button, as if you are adding a credit card to the account

Use the credit card number that is automatically generated here as the
credit card of your buyer

Note: Do not click on the 'Add Card' button as this will add the credit card
to your Sandbox account. If it is added to your Sandbox account, it cannot
be used to make a non-PayPal account payment.

我的鱼塘能养鲲 2024-10-27 09:20:49

您输入的是 PayPal 的帐单邮政编码还是客户的帐单邮政编码?通常,大多数信用卡交易都希望后者 - 他们不在乎处理者或计费方的邮政编码。

Are you entering the billing zip code for PayPal, or the billing zip code of the client? Usually, most credit card transactions want the latter - they couldn't care less about the zip code of the processor or the billing party.

£噩梦荏苒 2024-10-27 09:20:49

尝试完全按照发送到服务器的方式显示您的信息(在页面、命令行等上)。也许有一个回车符或类似的东西。无论哪种方式,PayPal 都有许多测试环境供您在拥有一些测试变量后使用。

Try displaying your information (on a page, command line, etc.) exactly as it's being sent to the servers. Perhaps there's a carriage return or something like that. Either way, PayPal has a number of testing environments for you to use once you have some testing variables.

爺獨霸怡葒院 2024-10-27 09:20:49

您发布的数据完全有可能没有任何问题。当我在使用 PayPal 测试网站时遇到问题时,我联系了支持人员,他们建议我跳过测试环境,只发布一笔实时交易,并收取 1.00 美元的费用。它起作用了。然后我什么也没做,只是从实时网站切换(https://payflowpro.paypal.com/ 获取令牌和 https://payflowlink.paypal.com/ 用于数据发布)到测试站点(https://pilot-payflowpro.paypal.com/ 用于令牌和 https://pilot-payflowlink.paypal.com/ 的帖子),发布了完全相同的数据,并且由于此错误而失败。我用生成的沙箱 Visa 号码尝试了一下,错误仍然存​​在。我尝试了 zip 和 ZIP+4。我的 Rails 应用程序会输出其发送的所有数据,因此我可以确定发生了什么。 PayPal 的测试环境似乎长期以来一直无法正常工作。

It's entirely possible there's nothing wrong with your posted data at all. When I was having problems with PayPal's test site I spoke to support and was advised to skip the test environment and just post a live transaction with a $1.00 charge. It worked. Then I did nothing but switch from the live site (https://payflowpro.paypal.com/ for the token and https://payflowlink.paypal.com/ for the data post) to the test site (https://pilot-payflowpro.paypal.com/ for the token and https://pilot-payflowlink.paypal.com/ for the post), posted exactly the same data, and it failed with this error. I tried it with the generated sandbox Visa number and the error remained. I tried both zip and ZIP+4. My Rails app spits out all the data its sending, so I know for sure what's going out. PayPal appears to have a long history of its test environment just not working.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文