Symptom
During order processing, the OpfTakePaymentAction step fails when attempting to capture payment for the order. The business-process log shows the following error:
|
INFO [TaskExecutor-master-3898-ProcessTask [8796978381750]] Process: opf-order-process-XXXXXXXX-XXXXXXXXXXXXXXXXX in step OpfTakePaymentAction INFO [TaskExecutor-master-3898-ProcessTask [8796978381750]] DefaultOpfAmountCalculationServiceImpl: Calculating total with tax for order: XXXXXXXX INFO [TaskExecutor-master-3898-ProcessTask [8796978381750]] DefaultOpfAmountCalculationServiceImpl: Total with tax is: XX.XX INFO [TaskExecutor-master-3898-ProcessTask [8796978381750]] Start to do capture for order XXXXXXXX WARN [TaskExecutor-master-3898-ProcessTask [8796978381750]] ccAdapter retry policy got HttpClientErrorException, retryCount: 1, statusCode: 400 BAD_REQUEST, needRetry: false WARN [TaskExecutor-master-3898-ProcessTask [8796978381750]] ccAdapter retry policy got HttpClientErrorException, retryCount: 1, statusCode: 400 BAD_REQUEST, needRetry: false ERROR [TaskExecutor-master-3898-ProcessTask [8796978381750]] Error executing INFO [TaskExecutor-master-3898-ProcessTask [8796978381750]] [SIEM] session closed ERROR [TaskExecutor-master-3898-ProcessTask [8796978381750]] Error executing ActionNode with ID [opfTakePayment]: Take capture for order XXXXXXXX failed with message de.hybris.platform.opfservices.client.CCAdapterClientException: Requested to /capture failed, error message or http status: 400 - 400 Bad Request on POST request for "https://XXXXXXXXXX-XXXXXXXXXX-XX.opf.commerce.eu.context.cloud.sap/commerce-cloud-adapter/capture" Response body: { "status": 400, "type": "business_error", "message": "settlement request amount: XX.XX, no allocation or incomplete allocation, pls check the authorization records or payment integration configuration (over capture, recurrent authorize).", "details": [] } |
The capture request to the OPF Commerce Cloud Adapter returns HTTP 400 Bad Request, and the action node opfTakePayment terminates with a CCAdapterClientException. As a result, the order process fails at the payment capture step and the order is not fulfilled.
In CLS you could see that there are duplicated capture records.
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
OPF, duplicated capture , KBA , CEC-SCC-ADD-OPF , Open Payment Framework , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview