diff --git a/lib/PayPal/Api/CreditCard.php b/lib/PayPal/Api/CreditCard.php index db2613e..0a47b5a 100644 --- a/lib/PayPal/Api/CreditCard.php +++ b/lib/PayPal/Api/CreditCard.php @@ -251,7 +251,7 @@ class CreditCard extends Resource implements IResource { * @param string $creditcardid * @param PayPal\Rest\ApiContext $apiContext optional */ - public static function get( $creditcardid) { + public static function get( $creditcardid, $apiContext=null) { if (($creditcardid == null) || (strlen($creditcardid) <= 0)) { throw new \InvalidArgumentException("creditcardid cannot be null or empty"); } @@ -270,4 +270,4 @@ class CreditCard extends Resource implements IResource { } -} \ No newline at end of file +} diff --git a/lib/PayPal/Api/Payment.php b/lib/PayPal/Api/Payment.php index 7fa2dd0..3492d32 100644 --- a/lib/PayPal/Api/Payment.php +++ b/lib/PayPal/Api/Payment.php @@ -179,7 +179,7 @@ class Payment extends Resource implements IResource { * All other keys in the map are ignored by the SDK * @param PayPal\Rest\ApiContext $apiContext optional */ - public static function all($params) { + public static function all($params, $apiContext=null) { $payLoad = ""; $allowedParams = array('count' => 1, 'start_id' => 1, 'start_index' => 1, 'start_time' => 1, 'end_time' => 1, 'payee_id' => 1, 'sort_by' => 1, 'sort_order' => 1, ); if($apiContext == null) { @@ -220,7 +220,7 @@ class Payment extends Resource implements IResource { * @param string $paymentid * @param PayPal\Rest\ApiContext $apiContext optional */ - public static function get( $paymentid) { + public static function get( $paymentid, $apiContext=null) { if (($paymentid == null) || (strlen($paymentid) <= 0)) { throw new \InvalidArgumentException("paymentid cannot be null or empty"); } @@ -264,4 +264,4 @@ class Payment extends Resource implements IResource { } -} \ No newline at end of file +} diff --git a/lib/PayPal/Api/Refund.php b/lib/PayPal/Api/Refund.php index 61db1dd..89729ee 100644 --- a/lib/PayPal/Api/Refund.php +++ b/lib/PayPal/Api/Refund.php @@ -184,7 +184,7 @@ class Refund extends Resource implements IResource { * @param string $refundid * @param PayPal\Rest\ApiContext $apiContext optional */ - public static function get( $refundid) { + public static function get( $refundid, $apiContext=null) { if (($refundid == null) || (strlen($refundid) <= 0)) { throw new \InvalidArgumentException("refundid cannot be null or empty"); } @@ -203,4 +203,4 @@ class Refund extends Resource implements IResource { } -} \ No newline at end of file +} diff --git a/lib/PayPal/Api/Sale.php b/lib/PayPal/Api/Sale.php index 46f8aa5..bcb0619 100644 --- a/lib/PayPal/Api/Sale.php +++ b/lib/PayPal/Api/Sale.php @@ -136,7 +136,7 @@ class Sale extends Resource implements IResource { * @param string $saleid * @param PayPal\Rest\ApiContext $apiContext optional */ - public static function get( $saleid) { + public static function get( $saleid, $apiContext=null) { if (($saleid == null) || (strlen($saleid) <= 0)) { throw new \InvalidArgumentException("saleid cannot be null or empty"); } @@ -180,4 +180,4 @@ class Sale extends Resource implements IResource { } -} \ No newline at end of file +}