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 a Shuttle XPC SX58J3 which came with a WD 1TB HDD. I bought it in about 2010. I’m trying to […]
Magento2 Order email missing custom variable values for first time & when I send email from admin it shows values Basically this […]
We decided to base ourselves in Australia because it’s a booming market full of innovation, and there is huge potential to bring […]
Income Tax is a direct tax, that is, levied on any individual’s or entity’s income during a financial year. It is directly […]