Skip to content

Commit

Permalink
Merge pull request #96 from al0mie/wrong-paypal.sdk-settings
Browse files Browse the repository at this point in the history
Update using sdk from paypal
  • Loading branch information
anouarabdsslm authored May 15, 2017
2 parents 674f195 + 628b156 commit 8c1ec06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Anouar/Paypalpayment/PaypalPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
use PayPal\Api\ShippingAddress;
use PayPal\Api\Transaction;
use PayPal\Api\Transactions;
use PayPal\Core\PPConfigManager;
use PayPal\Core\PayPalConfigManager;
use PayPal\Rest\ApiContext;
use PayPal\Auth\OAuthTokenCredential;

Expand Down Expand Up @@ -245,13 +245,13 @@ public function apiContext($clientId = null, $clientSecret = null, $requestId =
*/
public static function OAuthTokenCredential($ClientId = null, $ClientSecret=null)
{
//define("PP_CONFIG_PATH", __DIR__);
define("PP_CONFIG_PATH", __DIR__);

if(isset($ClientId) && isset($ClientSecret)) {
return new OAuthTokenCredential($ClientId, $ClientSecret);
}

$configManager = PPConfigManager::getInstance();
$configManager = PayPalConfigManager::getInstance();
// $cred is used by samples that include this bootstrap file
// This piece of code simply demonstrates how you can
// dynamically pass in a client id/secret instead of using
Expand Down
5 changes: 2 additions & 3 deletions src/Anouar/Paypalpayment/sdk_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ http.Retry = 1

;Service Configuration
[Service]
;service.EndPoint="https://api.sandbox.paypal.com"
;Uncomment this line for integrating with the live endpoint
;service.EndPoint="https://api.paypal.com"
#You must set the mode property to either 'sandbox' or 'live'.
;mode='sandbox'


;Logging Information
Expand Down

0 comments on commit 8c1ec06

Please sign in to comment.