We have CyberSource for Lightning Order Management installed in salesforce org. The capture payment is working as expected however we need to implement the auth reversal for the authorized payments.
Currently the standard adapter PTS_PaymentAdapter dont have any implementation for the same. Any help on how to implement the auth reversal would be appreciated.
Thanks
08-18-2025 03:14 PM
@cybersource - can you please arrange someone?
ConnectApi.AuthorizationReversalRequest authorizationReversalRequest = new ConnectApi.AuthorizationReversalRequest();
authorizationReversalRequest.amount = amount;
authorizationReversalRequest.comments = 'Captured from custom action';
ConnectApi.AuthorizationReversalResponse authorizationReversalResponse = ConnectApi.Payments.reverseAuthorization(authorizationReversalRequest, authorizationId);
String authReversalId = authorizationReversalResponse.paymentAuthAdjustment.id;
also when i run the code for auth reversal it throws below error:
ConnectApiException:[errorCode=ALREADY_IN_PROCESS]: {"enhancedErrorType":null,"message":"The gateway adapter returned a failure status, Please check the response for more details","output":{"error":{"errorCode":"501","message":"Unsupported Operation"},"paymentGatewayLogs":[{"createdDate":"2025-08-19T16:08:13.000Z","id":"0XtAu0000019DDZKA2","interactionStatus":"NoOp"}]}}
08-19-2025 09:13 AM
To implement Auth Reversal (Authorization Reversal) with CyberSource in Salesforce Lightning Order Management (LOM), you'll need to extend the standard Payment Adapter.
Implementation Steps
11-26-2025 12:15 AM