Hey!
Today we are using three different payment apps for a project, one of which being BriqPay.
I need to get a value out of them the moment an order has been made, I asked where they stored the value in the database and this was the answer I got:
payment.CustomerInfo.AdditionalInfo.Add("someInfo", someInfo.info);
How should I go about finding this value?
I’ve been trying to use Litium.Connect.Payments.Payment
but I’m unsure of if it’s actually placed in there. I’m not able to get anything out of it when test this in our test environment.
This is how I’m trying to get it:
private Task<string> GetInfo()
{
if (_payment.CustomerInfo?.AdditionalInfo?.TryGetValue("someInfo", out object result) == true)
{
return Task.FromResult(result?.ToString());
}
return Task.FromResult(string.Empty);
}
I could be doing this all from the wrong place.
Any tips on where I should try to access the value would be greatly appreciated.