You need to configure and enable a payment gateway before you can accept payments for orders.
You can use the Manual Gateway to handle payments from non-supported payment providers, such as PayPal.
Depending on the chosen gateway, you may or may not have access to
capture funds immediately or
authorize for later payment.
The simplest method is
purchase. The gateway attempts to charge the customer immediately, and the result of the attempt is returned.
authorize a payment so funds can later be captured when an item is dispatched or restocked.
After you have an authorized transaction, you want to
capture the authorized funds.
You can use either the Refund through Commerce Cloud or use the Mark as Refunded capability, or a combination of both capabilities.
Refund through Commerce Cloud
You can start a full or partial refund to a supported payment provider directly from Commerce Manager or the API. When you start the refund process, the refund request is sent to the payment gateway. You no longer have to log on to your payment gateway’s console to process the refund.
When you process a refund, use the
refund endpoint to pass the refund amount. If you don’t pass an amount, the refund is processed as
Mark as refunded. For more information, see the Mark as Refunded section.
Each time a partial refund is triggered, the
transaction.updated event is generated and updated with
order.updated event is also triggered. The
order.refunded event generates when the full amount is refunded.
Mark as Refunded
You can use your payment gateway’s console to process a refund. Process the refund first in the payment gateway and then use the Mark as Refunded capability in Commerce Cloud to complete the process.
When an order is Marked as refunded, the payment status
order.payment.status is set to
refunded. In this case, the
order.refunded events are generated.