- Issue created by @umac_de
- 🇩🇪Germany umac_de
As far as I can see the sentence in question is
Payment captured via gateway for amount using method.
Transaction ID: remote_id.and the problem is "method".
TwigTransTokenParser.php >> $body as $node:Twig\Node\IfNode
tag:
if nodes:
tests: Twig\Node\Node
nodes:
0: Twig\Node\Expression\NameExpression
attributes:
name: 'method'
is_defined_test: false
ignore_strict_check: false
always_defined: false
1: Twig\Node\Node
nodes:
0: Twig\Node\TextNode
attributes:
data: ' using '
1: Twig\Node\PrintNode
nodes:
expr: Twig\Node\Expression\NameExpression
attributes:
name: 'method'
is_defined_test: false
ignore_strict_check: false
always_defined: false
2: Twig\Node\TextNode
attributes: data: '' - 🇩🇪Germany umac_de
The sentence is in line 86 of
commerce/modules/log/commerce_log.commerce_log_templates.ymlpayment_completed: category: commerce_payment label: 'Payment captured' template: '<p>Payment captured via <em>{{ gateway }}</em> for {{ amount|commerce_price_format }}{% if method %} using <em>{{ method }}</em>{% endif %}.{% if remote_id %}<br /> Transaction ID: {{ remote_id }}.{% endif %}</p>'
???
- 🇮🇱Israel jsacksick
Hi, how do I reproduce this? The method is added conditionally to the string. Never experienced this. Do you have a payment without method? Is that what is causing this?
- 🇩🇪Germany umac_de
We have three payment methods, there is none without payment and all with the same error.
As I said
/admin/commerce/orders/3387/edit
is working as expected and also no problem at
/admin/commerce/orders/3387/invoices
/admin/commerce/orders/3387/credit-memos
/admin/commerce/orders/3387/shipments
/admin/commerce/orders/3387/paymentsLooking at
/devel/commerce_order/3387
I cannot see any data problem:Drupal\commerce_order\Entity\Order {#2079 ▼
#entityTypeId: "commerce_order"
#enforceIsNew: null
#typedData:
Drupal\Core\Entity\Plugin\DataType
\
EntityAdapter {#2080 ▼
#definition:
Drupal\Core\Entity\TypedData
\
EntityDataDefinition {#2082 ▶}
#name: null
#parent: null
#_serviceIds: []
#_entityStorages: []
#stringTranslation: null
#typedDataManager: null
#entity:
Drupal\commerce_order\Entity
\
Order {#2079}
}
#cacheContexts: []
#cacheTags: []
#cacheMaxAge: -1
#_serviceIds: []
#_entityStorages: []
#values: array:31 [▼
"order_id" => array:1 [▼
"x-default" => "3387"
]
"type" => array:1 [▼
"x-default" => "default"
]
"uuid" => array:1 [▼
"x-default" => "95c00a08-c0a4-4ba6-8c00-bf5e8161f75b"
]
"order_number" => array:1 [▼
"x-default" => "2025022765"
]
"store_id" => array:1 [▼
"x-default" => "1"
]
"uid" => array:1 [▼
"x-default" => "0"
]
"mail" => array:1 [▼
"x-default" => "franz.dirscherl@freenet.de"
]
"ip_address" => array:1 [▼
"x-default" => "79.217.98.234"
]
"billing_profile" => array:1 [▼
"x-default" => array:2 [▼
"target_id" => "6158"
"target_revision_id" => "6158"
]
]
"total_price" => array:1 [▼
"x-default" => array:2 [▼
"number" => "21.900000"
"currency_code" => "EUR"
]
]
"total_paid" => array:1 [▼
"x-default" => array:2 [▼
"number" => "21.900000"
"currency_code" => "EUR"
]
]
"state" => array:1 [▼
"x-default" => "completed"
]
"data" => array:1 [▼
"x-default" => array:4 [▼
"paid_event_dispatched" => true
"paypal_checkout_flow" => "mark"
"paypal_order_id" => "7T449778NJ830180U"
"commerce_paypal_checkout" => array:4 [▼
"remote_id" => "7T449778NJ830180U"
"flow" => "mark"
"intent" => "capture"
"funding_source" => "paypal"
]
]
]
"locked" => array:1 [▼
"x-default" => "0"
]
"created" => array:1 [▼
"x-default" => "1739293114"
]
"changed" => array:1 [▼
"x-default" => "1739294926"
]
"placed" => array:1 [▼
"x-default" => "1739294926"
]
"completed" => array:1 [▼
"x-default" => "1739294926"
]
"cart" => array:1 [▼
"x-default" => "0"
]
"checkout_flow" => array:1 [▼
"x-default" => "vorkasse"
]
"checkout_step" => array:1 [▼
"x-default" => "complete"
]
"payment_gateway" => array:1 [▼
"x-default" => "paypal"
]
"payment_method" => array:1 [▼
"x-default" => "1518"
]
"version" => array:1 [▼
"x-default" => "12"
]
"balance" => array:1 [▼
"x-default" => array:2 [▼
"number" => "0.000000"
"currency_code" => "EUR"
]
]
"customer_comments" => array:1 [▼
"x-default" => null
]
"order_items" => array:1 [▼
"x-default" => array:1 [▼
0 => array:1 [▼
"target_id" => "4649"
]
]
]
"adjustments" => array:1 [▼
"x-default" => array:2 [▼
0 => array:1 [▼
"value" =>
Drupal\commerce_order
\
Adjustment {#2076 ▼
#type: "shipping"
#label: "Versandkosten"
#amount:
Drupal\commerce_price
\
Price {#2077 ▼
#number: "6.95"
#currencyCode: "EUR"
}
#percentage: null
#sourceId: "2277"
#included: false
#locked: false
}
]
1 => array:1 [▼
"value" =>
Drupal\commerce_order
\
Adjustment {#2074 ▼
#type: "tax"
#label: "MwSt."
#amount:
Drupal\commerce_price
\
Price {#2075 ▼
#number: "1.11"
#currencyCode: "EUR"
}
#percentage: "0.19"
#sourceId: "mwst|de|standard"
#included: true
#locked: false
}
]
]
]
"field_telefonnummer" => array:1 [▶]
"field_zustimmung_zur_weitergabe_" => array:1 [▶]
"shipments" => array:1 [▶]
]
#fields: array:2 [▶]
#fieldDefinitions: array:36 [▶]
#languages: array:4 [▼
"de" =>
Drupal\Core\Language
\
Language {#2771 ▼
#name: "German"
#id: "de"
#direction: "ltr"
#weight: 0
#locked: false
}
"en" =>
Drupal\Core\Language
\
Language {#2772 ▼
#name: "English"
#id: "en"
#direction: "ltr"
#weight: 1
#locked: false
}
"und" =>
Drupal\Core\Language
\
Language {#2773 ▼
#name: "Nicht angegeben"
#id: "und"
#direction: "ltr"
#weight: 2
#locked: true
}
"zxx" =>
Drupal\Core\Language
\
Language {#2767 ▼
#name: "Nicht zutreffend"
#id: "zxx"
#direction: "ltr"
#weight: 3
#locked: true
}
]
#langcodeKey: ""
#defaultLangcodeKey: "default_langcode"
#activeLangcode: "x-default"
#enforceDefaultTranslation: null
#defaultLangcode: "und"
#translations: array:1 [▼
"x-default" => array:2 [▼
"status" => 1
"entity" =>
Drupal\commerce_order\Entity
\
Order {#2079}
]
]
#translationInitialize: false
#newRevision: false
#isDefaultRevision: true
#entityKeys: array:4 [▼
"bundle" => "default"
"id" => "3387"
"label" => "2025022765"
"uuid" => "95c00a08-c0a4-4ba6-8c00-bf5e8161f75b"
]
#translatableEntityKeys: []
#validated: false
#validationRequired: false
#loadedRevisionId: null
#revisionTranslationAffectedKey: "revision_translation_affected"
#enforceRevisionTranslationAffected: []
#isSyncing: false
#stringTranslation: null
}