Handle Clear And Settle Request with Send Outcome Enabled.story
+sendOutcomeEnabled+:
Scenario: Handling clear and settle request with technical response with Send Outcome Enabled
When the Payment Service sends a 'Clear And Settle Request' Then the CSM receives a 'Customer Credit Transfer' When CSM sends a 'Send Outcome' with values: | HEADER.IPG_SEND_OUTCOME | <Result> | | HEADER.IPG_SEND_FAILURE_REASON | <FailureReason> | Then Payment Service receives a 'Technical Response' with values: | status | <Result> | | reason | <FailureReason> | When the CSM sends a 'Payment Status Report' Then the Payment Service receives a 'Clear And Settle Response'
| Result | FailureReason |
|---|---|
SUCCESS |
NOT_SET |
FAILURE |
technical-response-failure |
Example: {Result=SUCCESS, FailureReason=NOT_SET, sendOutcomeEnabled=}
When the ⦅Payment Service⦆ sends a Clear And Settle Request
Then the ⦅CSM⦆ receives a Customer Credit Transfer
When ⦅CSM⦆ sends a Send Outcome with values:
| HEADER.IPG_SEND_OUTCOME | ⦅SUCCESS⦆ |
| HEADER.IPG_SEND_FAILURE_REASON | ⦅NOT_SET⦆ |
Then ⦅Payment Service⦆ receives a Technical Response with values:
| status | ⦅SUCCESS⦆ |
| reason | ⦅NOT_SET⦆ |
When the ⦅CSM⦆ sends a Payment Status Report
Then the ⦅Payment Service⦆ receives a Clear And Settle Response
Example: {Result=FAILURE, FailureReason=technical-response-failure, sendOutcomeEnabled=}
When the ⦅Payment Service⦆ sends a Clear And Settle Request
Then the ⦅CSM⦆ receives a Customer Credit Transfer
When ⦅CSM⦆ sends a Send Outcome with values:
| HEADER.IPG_SEND_OUTCOME | ⦅FAILURE⦆ |
| HEADER.IPG_SEND_FAILURE_REASON | ⦅technical-response-failure⦆ |
Then ⦅Payment Service⦆ receives a Technical Response with values:
| status | ⦅FAILURE⦆ |
| reason | ⦅technical-response-failure⦆ |
When the ⦅CSM⦆ sends a Payment Status Report
Then the ⦅Payment Service⦆ receives a Clear And Settle Response