magento2 – Place an order with the Magento 2 payment method

My request is totally stupid.
My question is that, I want to place an order using the payment method if the customer has entered the wrong credit card information or if the customer does not have sufficient limit for his purchase.

Once the order has been placed, the administrator and the customer will manage this particular order outside the system (Magento).

Please give me suggestions or whatever.

Your help would be appreciated. !!!
thank you,

macos – Remove the delay in updating the order of recent windows of the same application?

Love it Cmd + backtick allows the user to switch between recent open windows of the same app, I am bothered by the fact that there is a delay in updating the order of recent windows after I released both keys.

For example, I opened window A, B, C, for Chrome, in that order. Now the order of recent windows for the Chrome app is

C, B, A

Now when i press Cmd + backtick, active window switch to B.
If I release the two keys, after an unknown delay, the order will be updated to:

B, C, A

However, if I press the keys again immediately, too quickly, before the time expires, the command has not changed, it would show up A, which is not what I expected. I want to bring up C. I know I can probably do it by Cmd + Shift + backtick. But the order is governed by this delay, which I have no control over and of which I do not know when the order is updated reliably.

What I hope is that the order is updated immediately after releasing the two keys. Remove the delay. So that the quick invocation of this functionality reliably passes between the two most recent windows of the same application. And of course, if I don't release Cmd key, the order does not change, which allows me to go back further in history.

Is there a way to set this delay to 0 ms to reach what I want?

magento2 – Magento 2.3.0: How can I add a custom payment API in the CREATE ORDER REST API?

I have a scenario in which, after adding items to the cart and getting the estimated shipping costs and payment information, I have to use a custom payment API which deducts the total amount right after creation of the order and order ID, and adds custom payment API responses to a custom table.

API takes a while to respond until payment is confirmed, then API responses are saved in a custom table (currently on the web)

Please tell me how to reproduce this.

magento 1.9 – place a customer order after correctly updating the order status

i need to update order status

for this i use sales_order_place_after on my observer

  $order = Mage::getModel('sales/order')->loadByIncrementId($orderIncrementId);
$status = 'backorder_status';
$isCustomerNotified = true;
$order->setState($state, $status, $isCustomerNotified);

but i'm entering an infinite loop

how to update the order status correctly?

Sort order of saved items – User Experience Stack Exchange

I am working on a job app which allows users to save jobs. Each job on the site has two states, active and completed. When a user saves a job, it is added to their saved area. In this area, the user can sort this list of saved jobs in three ways: most recent, oldest or ending soon.

The problem I have is how to present the work order when the ending soon is selected. As mentioned earlier, the work on the site can be active or completed. If a user selects ending soon, where should I place completed jobs?

By the way, I provide users with a way to remove all completed jobs from their list, but they can choose not to.

One way I have tried to fix this is that when the screen loads, the jobs ending soon are in focus and the jobs finished are above them, but out screen (see image below).

enter description of image here

Any recommendation or suggestion would be greatly appreciated.

powerapp – How to create a purchase order with multiple articles in SharePoint

A company giving a single task. If the company receives many offers by email. They would like to read quote emails in the inbox and store all quotes in a document library. They also want to save email fields such as: from, from name, date of email and subject of email. Some members of the accounts team will read the quotes one by one and update the other properties of the document library. These fields include: seller name, address, contact number, quote number, item code, quantity and cost. Once all of these details are updated, the system will display the report of all quotes by item code so that the account user can compare the cost of the supplier and prepare the purchase order for it. particular supplier. The application must allow the selection of multiple item codes from the same supplier to generate a single purchase order for multiple items.

paginate on a large number of postgresql lines in a sorted order

The goal is to recover several million rows ordered by their time stamp. Since there are so many rows, I have to get them in pieces. I read about pagination of the results, but all of the solutions I saw required re-sorting the data for each recovery.

In addition, the data is almost sorted in the database and on disk.

Is there a standard way to handle this?

The solutions I see look something like:

SELECT * FROM mytable WHERE timestamp > old_timestamp ORDER BY timestamp LIMIT 100000;

After getting the results, we then change old_timestamp and repeat. This basically seems to sort the whole table for each page. Is there a good way to handle this with Postgres? Or should I use a more specific time series database?

EDIT: I created an index on the timestamp but it is still slow.

ANSWER: It turned out that the slowness was actually due to another WHERE clause. What I published was just a subquery. After reorganizing the declarations, it's very fast.

mining pools – Why does the previous hash of stratum data have this specific byte order?

I do some tests to understand the stratum protocol. If I connect to a stratum pool (slush in this case) and check the data I receive after mining.authorize, I get the following previous hash:

stratum -> "178e01e62b03317addd01f9bc6b8243b76f90bd6000677d70000000000000000"

The last block at the time was height 613448 with the previous hash:

from the blockchain -> "0000000000000000000677d776f90bd6c6b8243bddd01f9b2b03317a178e01e6"

It certainly seems that the discussion in this post mentions that the previous hash could be thought of as an 8-word, 32-bit array that is exchanged in bytes for each element in the array, and the elements in the array themselves are also inverted.

What is the reason for this delicate byte order?

As some sha256 libraries work with uin32_t tables I wonder if this could have anything to do with it, maybe related to old methods of mining, and how it became sort of a standard. As the attached post mentions, there is very little information about it.

Any comments are greatly appreciated.

unity – The children of a transformation are in reverse order

I make a simple turn-based card game for 4 players.
At some point, a player can "open" their hand on the table. While the player is doing this, I want the cards to be aligned so that the left side of each is visible.

In my hand, the cards look like this.
enter description of image here

When I carry them on the table, they look like this
enter description of image here

Not only is the order reversed, which would not bother me, but also the cards are not visible now.

This is what the green area looks like in the inspector
enter description of image here

I don't want the cards to change shape to fill the area, nor do I want them to come out of the green area.

When I deselect Control Child Size, the cards are aligned as I want, but now they are too spread out and outside the green area.

Is there a way to achieve the behavior I want?

Isometric sort order problem Z like Y in Unity

I'm fighting with the sort order of the Z-as-Y isometric tilmap in Unity. I am trying to paint two layers of tiles in my tilemap. When I add tiles that I would expect to display "below" "behind" my top level, they partially hide the tiles that are above. (The visual deviation can be seen in the photo on the right in the image I have included)

My two levels are currently painted at Z = 0 and Z = 2. I've already checked out a few tips for beginners:

  • Sorting mode is set to Individual
  • Sort order defined at the top right
  • Transparency sorting axis defined on X = 0, Y = 1, Z = 0
  • I looked for possible optical illusions using normal isometry (not Z-as-Y) to display my tiles and make sure I have a contiguous grid.

Is there something missing here? My understanding was that using Z-as-Y, I would be able to take advantage of a single tilemap to paint tiles at multiple heights, but this display problem with my sort order leads me to believe that Z-as-Y is not enough to get the job done.

Problematic tiles