Skip to content

Commit

Permalink
Merge pull request #11 from srmklive/adaptive-payments
Browse files Browse the repository at this point in the history
Removed incorrect Adaptive Payment Pay API call
  • Loading branch information
srmklive committed Apr 4, 2016
2 parents 47f3ca6 + 8b1203d commit 5e4577a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/AdaptivePayments.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private function setConfig()
$mode = $paypal['mode'];

// Getting PayPal API Credentials
foreach ($paypal[$mode] as $key=>$value) {
foreach ($paypal[$mode] as $key => $value) {
$this->config[$key] = $value;
}

Expand Down Expand Up @@ -113,7 +113,7 @@ public function createPayRequest($data)

$post['requestEnvelope'] = $this->setEnvelope();

$response = $this->doPayPalRequest('PAY', $post);
$response = $this->doPayPalRequest('Pay', $post);

return $response;
}
Expand Down Expand Up @@ -207,7 +207,7 @@ private function doPayPalRequest($method, $params)

$post_url = $this->config['api_url'] . '/' . $method;

foreach ($params as $key=>$value) {
foreach ($params as $key => $value) {
$post[$key] = $value;
}

Expand Down

0 comments on commit 5e4577a

Please sign in to comment.