Changeset 3748568 for fluent-cart/trunk/app/Models/Subscription.php
- Timestamp:
- 10/15/2026 01:17:41 PM (4 days ago)
- File:
-
- 1 edited
-
fluent-cart/trunk/app/Models/Subscription.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fluent-cart/trunk/app/Models/Subscription.php
r3746418 r3748568 15 15 use FluentCart\App\Models\Concerns\CanUpdateBatch; 16 16 use FluentCart\App\Models\Concerns\HasActivity; 17 use FluentCart\App\Services\Payments\PaymentHelper; 17 18 use FluentCart\App\Services\Payments\SubscriptionHelper; 18 19 use FluentCart\App\Services\TemplateService; … … 285 286 286 287 /** 287 * Display label of the backing gateway ("Authorize.Net", "Cash"), the same 288 * source StatusHelper stamps into order.payment_method_title. Empty when the 289 * slug resolves to no registered gateway. 288 * Display label of the backing gateway ("Authorize.Net", "Cash"). The slug 289 * in title case when no registered gateway matches. 290 290 */ 291 291 public function getPaymentMethodTitleAttribute(): string 292 292 { 293 $gateway = $this->resolveGateway(); 294 if (!$gateway) { 295 return ''; 296 } 297 298 $title = method_exists($gateway, 'getMeta') 299 ? $gateway->getMeta('title') 300 : Arr::get($gateway->meta(), 'title'); 301 302 return (string) $title; 293 return PaymentHelper::getMethodTitle($this->current_payment_method); 303 294 } 304 295 … … 387 378 } 388 379 389 return Arr::get($info, 'method' , '');380 return Arr::get($info, 'method') ?: PaymentHelper::getMethodTitle($this->current_payment_method); 390 381 } 391 382
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)