Delete customer money

To delete customer money, you have to perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the specified customer money.
    Get an instance of the customer money.
  3. Mark the customer money for deletion.
    To mark the customer money to be deleted, call the DeleteCustomerMoney method of the manager and pass the instance of the customer money as an argument.
  4. Save the changes.
    To delete the customer money, save the changes to the manager.

NOTE: To delete multiple customer money instances, execute the code below for each one of them.

Use the following code sample:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?