2

I am working a asp .net core 6.0 project. I am doing a Opayo payment API. https://developer-eu.elavon.com/docs/opayo/spec/api-reference-0#operation/createTransaction

In this API, There are some conditional required fields.

postalCode - Not required when country is IE.

state - Required when country is US.

browserJavaEnabled - Required if browserJavascriptEnabled is true.

browserColorDepth - Required if browserJavascriptEnabled is true.

credentialType object - is required when Save is true and so on..

Is there any package to add conditional Required field in asp .net core? ( for Required and NOT Required )

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.