You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have difficulties writing to a custom table (logging data) from within a payment connector (IPaymentProcessor class).
The problem is that I don't seem to have a "RequestContext" variable (database context) available in the connector. I do have a request object, but it doesn't contain a "RequestContext". To summarize:
Request:
I want to write data to a custom table from within a payment connector
Problem:
The only way I know how to write data to a table is using a "databaseContext", but I don't think the payment connector class has a database context (RequestContext) available for me to use.
Question:
Is there another way of writing data to a table then using a RequestContext or is this the only way?
Possible solutions I see:
Write data to a table from within the payment connector class in a way I don't see yet
Making sure the RequestContext variable is passed along to the payment connector in some way
Making sure the data I want to write is passed from the payment connector class to another place where I do have access to a RequestContext (but how to re
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have difficulties writing to a custom table (logging data) from within a payment connector (IPaymentProcessor class).
The problem is that I don't seem to have a "RequestContext" variable (database context) available in the connector. I do have a request object, but it doesn't contain a "RequestContext". To summarize:
Request:
I want to write data to a custom table from within a payment connector
Problem:
The only way I know how to write data to a table is using a "databaseContext", but I don't think the payment connector class has a database context (RequestContext) available for me to use.
Question:
Is there another way of writing data to a table then using a RequestContext or is this the only way?
Possible solutions I see:
Thx in advance!
Beta Was this translation helpful? Give feedback.
All reactions