Can you add a new JsonConverter to your caller project?
services.Configure<AbpSystemTextJsonSerializerOptions>(options =>
{
options.JsonSerializerOptions.Converters.Add(new PaymentRequestProductExtraParameterConfigurationJsonConverter());
});
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using Volo.Payment;
public class PaymentRequestProductExtraParameterConfigurationJsonConverter : JsonConverter<IPaymentRequestProductExtraParameterConfiguration>
{
private const string TypeDiscriminator = "$type";
public override IPaymentRequestProductExtraParameterConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
using var jsonDoc = JsonDocument.ParseValue(ref reader);
var root = jsonDoc.RootElement;
if (!root.TryGetProperty(TypeDiscriminator, out var typeProp))
{
throw new JsonException($"Missing discriminator field '{TypeDiscriminator}'.");
}
var typeName = typeProp.GetString();
if (typeName.IsNullOrWhiteSpace())
{
throw new JsonException($"Missing type name in discriminator field '{TypeDiscriminator}'.");
}
var actualType = Type.GetType(typeName);
if (actualType == null)
{
throw new JsonException($"Unable to find type: {typeName}");
}
var json = root.GetRawText();
return (IPaymentRequestProductExtraParameterConfiguration)JsonSerializer.Deserialize(json, actualType, options);
}
public override void Write(Utf8JsonWriter writer, IPaymentRequestProductExtraParameterConfiguration value, JsonSerializerOptions options)
{
var type = value.GetType();
var json = JsonSerializer.SerializeToElement(value, type, options);
writer.WriteStartObject();
writer.WriteString(TypeDiscriminator, type.AssemblyQualifiedName);
foreach (var prop in json.EnumerateObject())
{
prop.WriteTo(writer);
}
writer.WriteEndObject();
}
}
hi
Can you share full error logs and exceptions?
Also what is the code of ZendaPaymentRequestProductExtraParameterConfiguration class.
liming.ma@volosoft.com
Thanks
hi
Can you share the HAR of all HTTP requests and responses?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems#answer-3a1a1c4b-691e-3403-98b9-5f23fa024759
liming.ma@volosoft.com
Thanks.
This usually means your email provider has reject the emails from noreply@abp.io.
hi
Can you share the debug logs from the authserve project?
https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems
Thanks.
hi
I pushed my changes. https://github.com/spospisil/AbpGridSolution/pull/2
1.The [RemoteService(IsEnabled = false)] need to be removed.
2. Application service can't return Task<IQueryable<DataDictionaryDto>> , Blazor will use ajax to get data. It doesn't support IQueryable, Blazor is a pure UI project.
Now API can return the data.
hi
The error is The required antiforgery header value "RequestVerificationToken" is not present.
The POST HTTP request needs the RequestVerificationToken header. The RequestVerificationToken value is coming from Cookies.
https://abp.io/docs/latest/framework/infrastructure/csrf-anti-forgery#the-solution
Thanks.