简体   繁体   English

贝宝沙盒帐户不显示交易

[英]PayPal sandbox accounts don't show transactions

I'm trying to test my PayPal-Express checkout and it looks like it works fine, but after the redirects there are no transactions in both of the accounts. 我正在尝试测试PayPal-Express结帐,看起来工作正常,但是重定向后两个帐户中都没有交易。

I know there is a similar question , but my config has the right credentials. 我知道有一个类似的问题 ,但是我的配置具有正确的凭据。


What I have: 我有的:

  1. Lumen app 流明应用
  2. Omnipay extension Omnipay扩展
  3. sandbox buyer account - status: complete 沙盒买家帐户-状态:完成
  4. sandbox shop account - status: complete 沙盒商店帐户-状态:完成

The Omnipay lib is configured with the credentials (username, password, signature) of the sandbox shop account Omnipay库配置了沙盒商店帐户的凭据(用户名,密码,签名)

The purchase script looks like this: 购买脚本如下所示:

$gateway = Omnipay::gateway('paypal');

$response = Omnipay::purchase([
    'currency' => 'EUR',
    'amount' => '100.00',
    'returnUrl' => 'http://localhost:8000/return',
    'cancelUrl' => 'http://localhost:8000/cancel',
])->send();

$response->redirect();

It's doing the redirect to PayPal, PayPal accepts then the payment with the buyers sandbox account and redirects me back to the returnUrl but both of the accounts have no balance changes and no transactions visible on their dashboard. 它正在重定向到PayPal,然后PayPal接受带有买方沙箱帐户的付款,并将我重定向回returnUrl但是两个帐户都没有余额更改,并且在其仪表板上看不到任何交易。

You're using PayPal express checkout to accept payment from your buyers. 您正在使用PayPal快速结帐来接受买家的付款。 PayPal express checkout completes the payment in the 2 below steps: PayPal Express Checkout通过以下2个步骤完成付款:

  1. SetExpressCheckout API : It initiates the payment & redirects the buyer to PayPal for approval. SetExpressCheckout API :它启动付款并将买方重定向到PayPal进行批准。 To know more, click here 要了解更多, 请点击这里

  2. DoExpressCheckoutPayment API : It completes the express Checkout transaction and transfers the amount from the buyer to the Merchant PayPal business account. DoExpressCheckoutPayment API :它完成快速的Checkout交易并将金额从买方转移到Merchant PayPal商业帐户。 To know more, click here 要了解更多, 请点击这里

To resolve your issue, please check your code & call DoExpressCheckoutPayment API to complete the transaction and deduct the amount from the buyer's account. 要解决您的问题,请检查您的代码并调用DoExpressCheckoutPayment API以完成交易并从买方的帐户中扣除金额。

If the issue still persists, contact PayPal MTS for better assistance. 如果问题仍然存在,请 PayPal MTS 联系以获得更好的帮助。

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

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