PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/PaymentGateways/AbstractPaymentGateway.php +20 -0 3.0.4 → 3.0.16 View file →
@@ -38,8 +38,28 @@
38 38 {
39 39 return $this->description;
40 40 }
41 41
42 + /**
43 + * The gateway's built-in (raw, untranslated) default title/description —
44 + * the value of the `$title`/`$description` property before any `__()`
45 + * override. Used to tell whether a stored gateway-config value is an
46 + * operator customization or just the persisted default: if it equals the
47 + * default, the checkout should prefer the translated getTitle()/
48 + * getDescription() instead of the stored English string, so the label
49 + * translates. (Subclasses override getTitle()/getDescription() to return
50 + * a translated string, but the property stays the raw default.)
51 + */
52 + public function getDefaultTitle(): string
53 + {
54 + return $this->title;
55 + }
56 +
57 + public function getDefaultDescription(): string
58 + {
59 + return $this->description;
60 + }
61 +
42 62 public function getIcon(): string
43 63 {
44 64 // If icon is a relative path (starts with /), convert to full URL
45 65 if (!empty($this->icon) && strpos($this->icon, 'http') !== 0) {