Skip to content

Commit

Permalink
Fix unspecified method error
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Mar 26, 2017
1 parent 9c270ea commit d694ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/PayPalRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public function searchTransactions($post)
private function doPayPalRequest($method)
{
// Setting API Credentials, Version & Method
$this->post->merge([
$this->post = $this->post->merge([
'USER' => $this->config['username'],
'PWD' => $this->config['password'],
'SIGNATURE' => $this->config['signature'],
Expand All @@ -313,7 +313,7 @@ private function doPayPalRequest($method)
}

// Merge $options array if set.
$this->post->merge($this->options);
$this->post = $this->post->merge($this->options);

try {
$request = $this->client->post($post_url, [
Expand Down

0 comments on commit d694ed4

Please sign in to comment.