简体   繁体   English

贝宝沙箱无法反映交易

[英]Paypal sandbox not reflecting transactions

Yet another question about sandbox transactions... 关于沙盒交易的另一个问题...

On https://developer.paypal.com/developer/accounts/ I have 2 sandbox accounts: https://developer.paypal.com/developer/accounts/上,我有2个沙箱帐户:

  • [business] bob-facilitator@domain.com [业务] bob-facilitator@domain.com
  • [personal] bob-buyer@domain.com [个人] bob-buyer@domain.com

In my rails config I'm using activemerchant and I've set up my PaypalExpressGateway credentials using the API credentials from the business account above: 在我的rails配置中,我正在使用activemerchant,并且已经使用上述业务帐户中的API凭据设置了PaypalExpressGateway凭据:

ActiveMerchant::Billing::Base.mode = :test ::GATEWAY = ActiveMerchant::Billing::PaypalExpressGateway.new( login: ENV['BOB-FACILITATOR-USERNAME'] password: ENV['BOB-FACILITATOR-PASSWORD'] signature: ENV['BOB-FACILITATOR-SIGNATURE'] )

I've got an orders controller and when I click a 'buy' button, the controller redirects the user to ::GATEWAY.redirect_url_for(paypal_response.token) . 我有一个订单控制器,当我单击“购买”按钮时,控制器将用户重定向到::GATEWAY.redirect_url_for(paypal_response.token) This in my case means the user is redirected to: 在我的情况下,这意味着将用户重定向到:

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=A_TOKEN_FROM_PAYPAL

Then in the sandbox paypal store I login successfully with the buyer's account and click the continue button representing payment. 然后,在沙盒贝宝商店中,我成功使用买方的帐户登录,然后单击代表付款的继续按钮。 I'm successfully redirected back to my success_url and receive what look like some successful params: 我已成功重定向回我的success_url并收到了一些成功的参数:

/orders/success/6?token=SAME_TOKEN_FROM_PAYPAL_AS_THE_ONE_ABOVE&PayerID=THE_PAYER_ID_OF_SANDBOX_BUYER_ACCOUNT

Ok so cool the transaction is finished but when I log into the sandbox paypal site with either the buyer or seller's login details, no transactions are listed. 好的,很高兴,交易已完成,但是当我使用买方或卖方的登录详细信息登录沙盒贝宝网站时,没有列出交易。 When I'm logged into my main paypal developer account, I also cannot see any transactions. 登录我的主要Paypal开发人员帐户后,我也看不到任何交易。

What is happening? 怎么了? Where can I find either the transactions or some debugging information? 在哪里可以找到事务或一些调试信息?

Try with below steps: 请尝试以下步骤:

It will show you all transactions with every currency. 它会向您显示每种货币的所有交易。 This is because sometimes a transaction is not listed in the account overview page in the sandbox, but it does show up in the activity page. 这是因为有时交易没有在沙箱的“帐户概览”页面中列出,但确实显示在活动页面中。 Account overview and activity pages are different and also have different layouts. 帐户概述和活动页面不同,并且布局也不同。

If your transaction is not listed here, then create ticket on PayPal merchant portal 如果您的交易未在此处列出,请在PayPal商家门户上创建票证

Thanks NK 谢谢NK

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM