Skip to content

Commit

Permalink
Update CheckoutController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
libanlsilva committed Sep 4, 2024
1 parent dbe44bc commit 8206da0
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1051,13 +1051,8 @@ private void LoadPaymentFromForm(CheckoutViewModel model)
if (HccApp.CurrentStore.Settings.PaymentCreditCardGateway == PaymentGatewayType.Stripe)
{
payModel.DataCreditCard.StripeCardType = Request.Form["StripeCardType"] ?? string.Empty;
payModel.DataCreditCard.CardNumber = Request.Form["cccardnumber"] ?? string.Empty;

}
else
{
payModel.DataCreditCard.CardNumber = CardValidator.CleanCardNumber(Request.Form["cccardnumber"] ?? string.Empty);
}
payModel.DataCreditCard.CardNumber = Request.Form["cccardnumber"] ?? string.Empty;
payModel.SelectedMethodId = Request.Form["paymethod"] ?? string.Empty;
payModel.DataPurchaseOrderNumber = Request.Form["ponumber"] ?? string.Empty;
payModel.DataCompanyAccountNumber = Request.Form["accountnumber"] ?? string.Empty;
Expand Down

0 comments on commit 8206da0

Please sign in to comment.