Navigate to “Payment.aspx.cs”. The method “Page_Load” reads available payment methods from Ucommerce and populates the site. The payment methods should be filtered based on selected shipping country.
When the form is submitted to “SavePaymentAndGoToPreviewBtn_OnClick” eventhandler, you need to update current payment by creating a new one that overrides the existing one. Use the TransactionLibrary to do so.