Paypal 错误 : "an id of zero was passed to PartyPostalAddressPBImpl::load_by_id"

标签 paypal

您好,我之前在将自定义购物车表单提交到 Paypal 沙盒网站时一直没有遇到任何问题,但是几天前我开始收到错误消息,导致我无法完成模拟结账流程。

下面的代码演示了提交前由我的代码生成的表单,这似乎与之前没有任何变化并且看起来没有错误。

<form id="BNForm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="peoplesrobotics-facilitator@outlook.com">
<input type="hidden" name="currency_code" value="US">
<input type="hidden" name="handling_cart" value="8.79">
<input type="hidden" name="custom" value="123abc">

<input type="hidden" name="item_name_1" value="Bluetooth Controlled RC Car w/ Phone Control Center">
<input type="hidden" name="amount_1" value="18">
<input type="hidden" name="quantity_1" value="1">  

<input type="hidden" name="item_name_2" value="MPU-6050 3-Axis Accel + Gyro Module">
<input type="hidden" name="amount_2" value="4.00">
<input type="hidden" name="quantity_2" value="1">

<input type="hidden" name="item_name_3" value="3.3V SD Card Module">
<input type="hidden" name="amount_3" value="2.50">
<input type="hidden" name="quantity_3" value="1">
</form>

Paypal 网站给我的简短错误消息是:UserException: message 'An id of zero was passed to PartyPostalAddressPBImpl::load_by_id'

Paypal 网站给我的完整错误信息是:

UserException: message 'An id of zero was passed to PartyPostalAddressPBImpl::load_by_id', return code: 3505 Backtrace: PPException::PPException(String const&) User::UserException::UserException(int, String const&) User::PartyPostalAddressPBImpl::load_by_id(unsigned long long) User::AddressPBImpl::load_by_id(unsigned long long, ForUpdate) User::ReputationALIImpl::processReputation(DeprecatedUserShim*, ReputationContainer*, char const*, int, MsgLog2*, DeprecatedUserShim const*) (anonymous namespace)::load_seller_details(PayPalCommonWebAppContext const&, PimpXClick&, unsigned long&, String&, ReputationContainer*) (anonymous namespace)::load_recipient_info(PayPalCommonWebAppContext const&, PimpXClick&, MerchantInfoUbiquityContainer&, CreditCardUbiquityContainer&, TransactionUbiquityContainer&, FlowInfoUbiquityContainer&, PassedParametersUbiquityContainer&, String&, ReputationContainer*, WalletInfoContainer*) Rapids::BusinessBlocks::HostedPayments::load_recipient(PayPalCommonWebAppContext const&, PimpXClick&, MerchantInfoUbiquityContainer&, CreditCardUbiquityContainer&, TransactionUbiquityContainer&, FlowInfoUbiquityContainer&, PassedParametersUbiquityContainer&, String&, WalletInfoContainer*) Rapids::Flows::Unity::DecoratorLoadRecipient::load_recipient_execute(Rapids::CGIVars const&) Rapids::Flows::Unity::DecoratorLoadRecipient::execute(Rapids::CGIVars const&) Rapids::DecoratedState::execute(Rapids::CGIVars const&) Riprap::RiprapRapidsGenericFlow::handle_execute(Riprap::WebAppContextOrnate const&, Rapids::TransitionRegistry const&, Rapids::State*, String const&, String const&, unsigned long long) Riprap::RiprapRapidsGenericFlow::process_states(Riprap::WebAppContextOrnate const&, Riprap::RiprapRapidsGenericFlow::ProcessStates, Riprap::DispatchInterceptorRegistry const&, Rapids::TransitionEdge const*) Riprap::RiprapRapidsGenericFlow::flow_call(Riprap::WebAppContextOrnate const&, Riprap::WebAppReturn const&, String const&, Riprap::DispatchInterceptorRegistry const&) Riprap::call_rapids(Riprap::WebAppContext const&, Riprap::RapidsFlowFactory const&, Riprap::DispatchAction const&, Riprap::WebAppReturn const&, String const&, Riprap::DispatchInterceptorRegistry const&) Riprap::dispatch_loop(Riprap::EPRegistry const&, Riprap::WebAppContext const&, Riprap::DispatchAction&, Riprap::WebAppReturn&, String const&, Riprap::DispatchInterceptorRegistry const&) Riprap::dispatch_wrapper(OutputStream&, Riprap::EPRegistry const&, Riprap::WebAppContext const&, Riprap::WebAppReturn const&, String const&, bool const&, Riprap::DispatchInterceptorRegistry const&) Riprap::entry_point(HTTPInterface&, Riprap::CGIVars&, OutputStream&, String const&, String const&) main

Blockquote

任何有助于解决此问题的帮助都将不胜感激!

最佳答案

事实上,我遇到了完全相同的问题:我的 Paypal 测试正常运行,但突然出现此错误。 在我的例子中,使用的电子邮件地址包含下划线。

所以我创建了一个新的沙盒测试帐户,电子邮件地址中没有下划线,它解决了这个问题。

关于 Paypal 错误 : "an id of zero was passed to PartyPostalAddressPBImpl::load_by_id",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37054387/

相关文章:

使用 Direct Payments Pro .NET SDK 的 PayPal 费用值

ios - 将 twilio sdk 用于 iOS 应用程序?

Paypal - 使用 checkout.js 定期付款

php - Paypal 沙盒 - 在我用表单发布变量后你的购物车是空的?

php - 在不同域上测试 PayPal 证书

ruby-on-rails - 使用 Rails 进行 Paypal 自适应(链式)支付

php - 付款成功后无法从 Paypal 获得有效响应

api - 如何从 PayPal 获取 API 用户名、密码和签名以在第三方插件中使用

paypal - PayFlow Pro - 使用定期计费配置文件 ID 获取交易历史记录

iframe - 是否可以在 iframe(美国电子商务)中接受 PayPal 付款?