Modify payment methods

To modify a payment method, you must perform the following:

  1. Get an instance of the orders manager.
    Get an instance of the OrdersManager object.
  2. Get the specified payment method.
    Get an instance of the variation. For more information, read For developers: Query payment methods.
  3. Modify the instance of the payment method.
    Update the values of the properties of the payment method.
  4. Save the changes.
    Save the changes to the manager.

NOTE: If you change the value of the PaymentMethodType property, be sure to update the related properties as well.

Here is a code example:

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?