Display available payment methods for the customer to select. It can be filtered based on the country.
TransactionLibrary.GetPaymentMethods(country = null)
Find the “PaymentController”. The method Index() renders the view “/views/Payment.cshtml” with the PaymentViewModel. Map available payment methods filtered by country into the model.
amount = -1,
requestPayment = true,
overwriteExisting = true)
In the POST method in your PaymentController you need to update current payment by creating a new one that overrides the existing one. Use the TransactionLibrary to do so.