コード例 #1
0
 public function sendData($data)
 {
     $checkout_id = $data['checkout_id'];
     $fetchTransaction = new FetchTransactionRequest($this->httpClient, $this->httpRequest);
     $fetchTransaction->setAccountId($this->getAccountId());
     $fetchTransaction->setTestMode($this->getTestMode());
     $fetchTransaction->setAccessToken($this->getAccessToken());
     $fetchTransaction->setTransactionReference($checkout_id);
     $response = $fetchTransaction->send();
     return new CompletePurchaseResponse($this, $response->getData());
 }
コード例 #2
0
 public function sendData($data)
 {
     $checkout_id = $data['checkout_id'];
     $fetchTransaction = new FetchTransactionRequest($this->httpClient, $this->httpRequest);
     $fetchTransaction->setAccountId($this->getAccountId());
     $fetchTransaction->setTestMode($this->getTestMode());
     $fetchTransaction->setAccessToken($this->getAccessToken());
     $fetchTransaction->setTransactionReference($checkout_id);
     $response = $fetchTransaction->send();
     // merged GET parameters with returned FetchTransaction repsonse data
     $responseData = array_merge($data, $response->getData());
     return new CompletePurchaseResponse($this, $responseData);
 }