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/payments
Looking 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
}
The sentence is in line 86 of
commerce/modules/log/commerce_log.commerce_log_templates.yml
payment_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>'
???
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: ''
I have to do this:
An other great thank you because of your readiness for action:
We solved the problem within 24 hours!
Thank you!
In my (old) checkout flow version the payment was included in the review step, it worked without payment step and payment process.
Because of your advice I added the payment step and included the payment process pane and now it works!
Thank you for your patience!
The problem: it is a german shop:
https://sedumsprossen.com/gateway.jpg
If you need I can provide a translation.
This is not a new shop but an upgrade and the checkout flow setup has not changed.
And yes: it is not the PayPal checkout flow but my own because we need extra fields for approve to terms and delivery date for example.
This at #5 🐛 not found in include_once() Postponed: needs info did the job for me.
#5 does the job for me too.
@ jsacksick
No, I am not creating promotions programatically, but, you are right, the amount is missing on the config site.
Don't know how that happened.
Thank you!
This code at line 28ff does the job for me:
if($this->getAmount() != NULL){
$amount = $this->getAmount();
if ($amount->getCurrencyCode() != $shipment->getAmount()->getCurrencyCode()) {
return;
}
}else{
$amount = $shipment->getAmount();
};
@ #9 + #10
Cannot confirm the disappearing of the error.
Still had the problem with 10.2.7 and 2.0.0
My solution is in twig_render_this/src/TwigExtension/RenderThis.php >> 49
elseif ($content !== NULL && ($content instanceof FieldItemInterface ||
$content instanceof FieldItemListInterface ||
method_exists($content, 'view'))
) {
Same here...
This can be done easyly by yourself:
1. insert in the template
Continue shopping
2. insert in your .js-file
function continueShopping(){
(function ($) {
$('.ui-icon-closethick').click();
})(jQuery);
}
@ #9
it works because of
"minimum-stability": "dev" in composer
else you get
- drupal/bee_hotel dev-2.21.x requires drupal/core_event_dispatcher ^4 -> found drupal/core_event_dispatcher[dev-4.x, 4.0.0-alpha1, ..., 4.x-dev (alias of dev-4.x)] but it does not match your minimum-stability.
Same here after update of project to 10.1.7
Updated the `http.response.debug_cacheability_headers` to `FALSE`
+ patch #87 fixed it
For Plesk on Linux you have to set open_basedir in PHP settings to
{WEBSPACEROOT}{/}{:}{TMP}{/}{:}{/}opt{/}plesk{/}php{/}8.1{/}bin{/}
The php main version number must be the same as for hosting.
Same Problem here with node.simplenews_issue field
For me was the problem, that I had not set the options for jquery_ui_accordion display
@ #9
Same here...
The problem is probably caused by drupal_http_request in
location/geocoding/google.inc
running in a timeout.
Using cURL HTTP Request instead solved the problem for me:
https://www.drupal.org/project/chr →