Error Method Payment Invalid? Custormer id =? Magento 2

pls help! I'm using the sample that magento provides, the link follows:

https://github.com/magento/magento2-samples/tree/master/sample-module-payment-gateway

I am looking to create an offline payment example bank transfer

When I installed the module, I successfully made a purchase and arrived at my magento admin. OK....

When will I give Send Payment Split I get the error: Split Payment Error - Transaction Post: Invalid Payment Method

When will I invoiced I get the error: No such entity with customerId =

Within the order I receive the transiction

29 000000947 46ba9f2a6976570b0353203ec4474217 Pix Authorization Yes Apr 20 from 2021 12:32:00

In searches I found to create a payment.xml file I also believed and I had no solution

my xml

<payment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Payment:etc/payment.xsd"> <methods> <method name="pix"> <allow_multiple_address>1</allow_multiple_address> </method> </methods>

What should I do to have a closed order?

I think I should do something in that file ... https://github.com/magento/magento2-samples/blob/master/sample-module-payment-gateway/Gateway/Response/TxnIdHandler.php

I am looking to create an offline payment example bank transfer

which path should i follow? to have a method and a customer that works?

Read Entire Article