...
In order for the capture jobs to function correctly, it will be necessary to define one / more execution sites for them via the context of the steps.
Transaction management
Details of transactions
Cancellations
...
With the cartridge comes an Axepta transaction management interface. It can be found in Merchant Tools> Axepta Module> Manage Orders . When you click on the order ID, you will find the details of this order / related Axepta transaction.
Details of transactions
On this page is the general information of the order (different SFCC statuses). Information on the various Axepta calls made for the order is also available. On the left part Order payment operations , we find the list of calls, with the type of call made, as well as the status. We therefore have the operations PAYMENT, CAPTURE, REFUND, CANCEL ... On the right, we find the details of the return of service calls (so all the details of the transaction made). From this page, it is also possible to cancel or refund the payment.
Cancellations
To make a cancellation, the order must meet the following criteria :
- order.paymentStatus equal to NOT PAID
- order.status.value is not CANCELED
- order.custom.axpIsCaptured is not TRUE
If the order meets these criteria, a “REFUND PAYMENT” button is available at the top of the page. When this button is clicked, a first call verifies that the order has no capture (via the axepta.inquire service , then a call is made to the axepta.reverse service , which will close the payment and cancel the order. A “CANCEL” transaction line will therefore be added to the list.
Refunds
To make one or more refunds, the order must meet these criteria:
- order.custom.axpIsRefundCompleted equal to false
- order.custom.axpIsCaptured equal to true
If it meets these criteria, a field and a button are added to the top of the page. By default, the value entered is the total of the order. You can enter a partial refund (therefore a lower amount) if necessary. On validation, a call to the axepta.capture service is made, and a transaction line is added. It will be either “PARTIAL REFUND” or “REFUND” depending on the amount.
Capture
Testing
Unit tests
Integration tests
...