I’m developing a payment gateway module and would like to persist some of the payment provider’s return data to a custom table named xxx_yyy_transaction_log. The field order_id is a foreign key to the table sales_order in this table. I used the placeRequest method on ClientInterface class to persist the data. The issue is that when the placeRequest method is called, the sales_order entity has not yet been persisted, resulting in an integrity constraint violation. I’d like to know if there is a way to incorporate my persistence into the gateway database transaction or if there is another class where I could store my data to database.
You may also like
I have 8 network runs from wall jacks to a patch panel in the basement. I want to extend a couple of […]
My admin panel is no working after I have install a custom modul. Now the admin needs to load a long time, […]
I started using termux 1-2 weeks ago and I’m in love with it.. funnily first days in, everything worked fine and then […]
I am not getting my custom payment method in response to rest/US/V1/carts/mine/shipping-information API if base currency is GBP, if I change base […]