Work with order payments (C#)
You can use the Entity Views and Actions API to integrate payment-related data or operations with other business systems.
This topic describes how to:
Add a payment to an order (C#)
Add a payment to an order (C#)
You can add a payment to an order when the order status is on hold.
To add a payment to an order, for example a gift card payment, using C#:
-
Selecting the gift card option, for example, for gift card payment:
-
Provide the payment amount and the gift card information, for example:
Void an order payment (C#)
Void an order payment (C#)
You can void the payment of an order when the order status is on hold.
To void the payment of an order using C# :
-
Get the entity view for the action, for example:
-
Execute the action:
Refund an order payment (C#)
Refund an order payment (C#)
You can refund an order payment when the status of the order is completed.
To refund an order payment using C#:
-
Get the entity view for the action, for example:
-
Execute the action: