diff --git a/src/Traits/PayPalAPI.php b/src/Traits/PayPalAPI.php index f6aeb63e..5c06d87f 100644 --- a/src/Traits/PayPalAPI.php +++ b/src/Traits/PayPalAPI.php @@ -34,10 +34,10 @@ trait PayPalAPI /** * Login through PayPal API to get access token. * - * @return array|StreamInterface|string - * * @throws \Throwable * + * @return array|StreamInterface|string + * * @see https://developer.paypal.com/docs/api/get-an-access-token-curl/ * @see https://developer.paypal.com/docs/api/get-an-access-token-postman/ */ diff --git a/src/Traits/PayPalAPI/PaymentMethodsTokens/Helpers.php b/src/Traits/PayPalAPI/PaymentMethodsTokens/Helpers.php index ac17c7c2..df1a5a60 100644 --- a/src/Traits/PayPalAPI/PaymentMethodsTokens/Helpers.php +++ b/src/Traits/PayPalAPI/PaymentMethodsTokens/Helpers.php @@ -110,7 +110,6 @@ protected function setPaymentSourceDetails(string $source, array $data): PayPalC * @throws \Throwable * * @return array|StreamInterface|string - * */ public function sendPaymentMethodRequest(bool $create_source = false): StreamInterface|array|string { diff --git a/src/Traits/PayPalAPI/Subscriptions.php b/src/Traits/PayPalAPI/Subscriptions.php index d5837077..4d39b8b4 100644 --- a/src/Traits/PayPalAPI/Subscriptions.php +++ b/src/Traits/PayPalAPI/Subscriptions.php @@ -202,14 +202,14 @@ public function reviseSubscription(string $subscription_id, array $items): Strea /** * List transactions for an existing subscription. * - * @param string $subscription_id + * @param string $subscription_id * @param DateTimeInterface|string $start_date * @param DateTimeInterface|string $end_date * - * @return array|StreamInterface|string - * * @throws Throwable * + * @return array|StreamInterface|string + * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_transactions */ public function listSubscriptionTransactions(string $subscription_id, DateTimeInterface|string $start_date = '', DateTimeInterface|string $end_date = ''): StreamInterface|array|string diff --git a/src/Traits/PayPalAPI/Subscriptions/Helpers.php b/src/Traits/PayPalAPI/Subscriptions/Helpers.php index 7860e509..e0d0d1df 100644 --- a/src/Traits/PayPalAPI/Subscriptions/Helpers.php +++ b/src/Traits/PayPalAPI/Subscriptions/Helpers.php @@ -123,10 +123,10 @@ public function setupSubscription(string $customer_name, string $customer_email, /** * Add a subscription trial pricing tier. * - * @param string $interval_type - * @param int $interval_count - * @param float $price - * @param int $total_cycles + * @param string $interval_type + * @param int $interval_count + * @param float $price + * @param int $total_cycles * * @return PayPalClient */ @@ -140,10 +140,10 @@ public function addPlanTrialPricing(string $interval_type, int $interval_count, /** * Create a recurring daily billing plan. * - * @param string $name - * @param string $description - * @param float $price - * @param int $total_cycles + * @param string $name + * @param string $description + * @param float $price + * @param int $total_cycles * * @throws Throwable * @@ -166,10 +166,10 @@ public function addDailyPlan(string $name, string $description, float $price, in /** * Create a recurring weekly billing plan. * - * @param string $name - * @param string $description - * @param float $price - * @param int $total_cycles + * @param string $name + * @param string $description + * @param float $price + * @param int $total_cycles * * @throws Throwable * @@ -192,10 +192,10 @@ public function addWeeklyPlan(string $name, string $description, float $price, i /** * Create a recurring monthly billing plan. * - * @param string $name - * @param string $description - * @param float $price - * @param int $total_cycles + * @param string $name + * @param string $description + * @param float $price + * @param int $total_cycles * * @throws Throwable * @@ -218,10 +218,10 @@ public function addMonthlyPlan(string $name, string $description, float $price, /** * Create a recurring annual billing plan. * - * @param string $name - * @param string $description - * @param float $price - * @param int $total_cycles + * @param string $name + * @param string $description + * @param float $price + * @param int $total_cycles * * @throws Throwable * @@ -244,12 +244,12 @@ public function addAnnualPlan(string $name, string $description, float $price, i /** * Create a recurring billing plan with custom intervals. * - * @param string $name - * @param string $description - * @param float $price - * @param string $interval_unit - * @param int $interval_count - * @param int $total_cycles + * @param string $name + * @param string $description + * @param float $price + * @param string $interval_unit + * @param int $interval_count + * @param int $total_cycles * * @throws Throwable *