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
question I need to build an incremental local backup/archive of all messages transiting (incoming/outgoing) a webmail account. requirements Most requirements derive from […]
Given an array arr[ ] consisting of N integers, the task is to find maximum difference between two subsets obtained by partitioning […]
I created a Room in Resources under ‘Rooms and Equipment‘ to be used by any of our Office 365 users in Outlook. […]
submitted by /u/kelunik [link] [comments]