From 7a86b6207beffef283ec3accaaecd1301b028b92 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Tue, 12 Dec 2023 10:06:09 +0100 Subject: [PATCH] Fix bug with invest reward function return type --- src/Omnipay/Stripe/Subscription/Message/SubscriptionRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Omnipay/Stripe/Subscription/Message/SubscriptionRequest.php b/src/Omnipay/Stripe/Subscription/Message/SubscriptionRequest.php index e985d1bffe..34d0711ee1 100644 --- a/src/Omnipay/Stripe/Subscription/Message/SubscriptionRequest.php +++ b/src/Omnipay/Stripe/Subscription/Message/SubscriptionRequest.php @@ -104,7 +104,7 @@ private function getRedirectUrl(...$args): string private function getInvestReward(Invest $invest, string $noReward): string { return !empty($invest->getRewards()) - ? $invest->getRewards()[0] + ? $invest->getRewards()[0]->id : $noReward; }