[英]Why balance doesn't change after paypal transaction completing
I'm using "Omnipay integration with PayPal Express Checkout [symfony2.5]" and this the implimentation for the class 我正在使用“Omnipay与PayPal Express Checkout集成[symfony2.5]”,这就是对课程的启示
namespace Atcop\\BookBundle\\Libs; 命名空间Atcop \\ BookBundle \\ Libs;
use Omnipay\\Common\\GatewayFactory; 使用Omnipay \\ Common \\ GatewayFactory;
class Paypal { Paypal类{
protected $gateway = null;
private static $CURRENCY = "USD";
public function __construct() {
$this->gateway = GatewayFactory::create('PayPal_Express');
$this->gateway->setUsername('*********');
$this->gateway->setPassword('**********');
$this->gateway->setSignature('**************');
$this->gateway->setTestMode(true);
}
public function sendPurchase($parameters = []){
$payArray = [
'amount' => 58.00,
'description' => $parameters['description'],
'currency' => self::$CURRENCY,
'transactionId' => $parameters['transactionId'],
'returnUrl' => $parameters['returnUrl'],
'cancelUrl' => $parameters['cancelUrl']
];
return $this->gateway->purchase($payArray)->send();
}
public function complete($reference, $payerId) {
$completePayData = [
'amount' => 58.00,
'description' => 'Buy the currencies book - step by step',
'transactionReference' => $reference,
'payerId' => $payerId,
];
$response = $this->gateway->completePurchase($completePayData)->send();
if($response->isSuccessful()){
return $response->getData();
}
return false;
}
} }
Everything is ok after completing and i see the notifications and the receipt for that transaction in the dashboard but the balance doesn't change in merchant and buyer ???!!! 完成后一切正常,我在仪表板中看到该交易的通知和收据但是商家和买家的余额没有变化??? !!!
它解决了平衡在测试模式下没有变化,当转换为实时模式时,每件事都没问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.