-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Feature summary
Until implemented a custom class needs to be declared.
Adyen Library version 32.1.2
Problem statement
Following documentation to implement tap-to-pay using Adyen Payment app.
https://docs.adyen.com/point-of-sale/mobile-android/build/payments-app/?tab=short-response_2
The short payment response object contains result, url, errorCondition and traceParent, following is examples on combinations of respons values.
{
"result": "Success",
"url": "https://checkoutpos-test.adyen.com/checkoutpos/v1/merchants/{MerchantId}/paymentsApps/{InstallationId}>/payments/{TransactionID}"
}
{
"result": "Failure",
"errorCondition": "Cancel"
}
{
"result": "Failure",
"errorCondition": "MessageFormat"
}
We have a .NET callback route where we deserialize this message, as there is no equivalent model in the Library we have to declare it in our code.
Proposed solution
Add the model to the library. Take no consideration to the class name.
public class TapToPayShortPaymentResponse
{
public string Result { get; init; }
public string Url { get; init; }
public string ErrorCondition { get; init; }
public string TraceParent { get; init; }
}
Alternatives considered
No response
Additional context
No response