Quantcast
Channel: Customized Commerce 13 and earlier versions
Viewing all articles
Browse latest Browse all 9642

Remove payments from orderform

$
0
0

How do you remove payments from an orderform?

I have tried to use .RemoveAt() and .Clear() but the payments only seem to dissapear for a while and then shows up again.

I have also tried the following which just gives me a SqlException

foreach(Payment payment in orderForm)
{
payment.Delete();
}
orderForm.AcceptChanges();


Do anyone know or have any sugestions? 


Viewing all articles
Browse latest Browse all 9642

Trending Articles