Commerce 2: What causes Authorize.Net to report "Test Mode" and not complete orders?

Most of the time our client has been having orders placed through their site working exactly as designed, using Commerce 2 on Drupal 8.  Authorize.Net is their exclusive payment gateway and has been so for a few years now (their old ecommerce site used WordPress while using the same Authorize.net account).

But we've had two attempted orders this month alone - one of them a few hours ago - that can only be described as some sort of "burp".

why create function for dependency injection?

in class, we use create function to injection service for constructon function.

So, may I ask why use create function as a middle layer, not directly use __construct?

for example this also works

  public function __construct(ContainerInterface $container) {
    return new static(
      $this-> modulehandler = $container->get('module_handler'),
      $this->config = $container->get('config.factory')
    );
  }

could some one help to make it clear ? thanks.

Inserting images in articles with Drupal 8.4 and 8.5

What do you recommend for photographs and asset management in Drupal 8.4 that will be compatible with Drupal 8.5/8.6 enhancements?

CPanel Install of Drupal 8

So i recently got a web host that uses CPanel and i use both the manual way and the auto-installer from CPanel, once it installs on a complete fresh install i get this error "The website encountered an unexpected error. Please try again later." i then look in the CPanel logs and get these messages and was wondering if this has anything to do with not being able to see my fresh install of Drupal 8.

Twig access parent fields in a paragraph template

I know I can get reference entity fields, in a Twig template, using something like:

{{ node.ref_field_name.entity.field_name.value }}

but, is there a way to access the fields of the a referencing parent entity? 

Pre-process node, via an entity reference field

I've got a complex arrangement of nodes and references. In a node, I would like to render the rendered content of a referenced node. This is fine, in principle. However, within the node type for the referenced note, I have a theme preprocess function that generates additional field values (information about a book via Google Books).

My preprocess function is:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x