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
The function that is failing in the API is "MapResponse()". The transaction has been approved and a successful response has been issued. But the XML response document does not contain a paymentmethoddetails section. But following code snippet from the MapResponse() fails is there is not a "paymentmethoddetails" section in the XML response. root.Get() does not return null for paymentMethodDetails, therefore we get an exception because paymentMethodDetails.Element is null
var paymentMethodDetails = root.Get("paymentmethoddetails");
if (paymentMethodDetails != null) {
AlternativePaymentResponse alternativePaymentResponse = new AlternativePaymentResponse
{
BankAccount = paymentMethodDetails?.GetValue<string>("bankaccount"),
AccountHolderName = paymentMethodDetails?.GetValue<string>("accountholdername"),
Country = paymentMethodDetails?.GetValue<string>("country"),
RedirectUrl = paymentMethodDetails?.GetValue<string>("redirecturl"),
PaymentPurpose = paymentMethodDetails?.GetValue<string>("paymentpurpose"),
PaymentMethod = paymentMethodDetails?.GetValue<string>("paymentmethod"),
};
The text was updated successfully, but these errors were encountered:
The function that is failing in the API is "MapResponse()". The transaction has been approved and a successful response has been issued. But the XML response document does not contain a paymentmethoddetails section. But following code snippet from the MapResponse() fails is there is not a "paymentmethoddetails" section in the XML response. root.Get() does not return null for paymentMethodDetails, therefore we get an exception because paymentMethodDetails.Element is null
The text was updated successfully, but these errors were encountered: