Handle Receive Payment Response with Send Outcome Enabled.story
+sendOutcomeEnabled+:
Scenario: Handling of payment response with Send Outcome Enabled
When the CSM sends a 'Customer Credit Transfer' Then the Payment Service receives a 'Receive Payment Request' When Payment Service sends a 'Receive Payment Response' Then CSM receives a 'Payment Status Report' 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> |
| Result | FailureReason |
|---|---|
SUCCESS |
NOT_SET |
FAILURE |
technical-response-failure |
Example: {Result=SUCCESS, FailureReason=NOT_SET, sendOutcomeEnabled=}
When the ⦅CSM⦆ sends a Customer Credit Transfer
Then the ⦅Payment Service⦆ receives a Receive Payment Request
When ⦅Payment Service⦆ sends a Receive Payment Response
Then ⦅CSM⦆ receives a Payment Status Report
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⦆ |
Example: {Result=FAILURE, FailureReason=technical-response-failure, sendOutcomeEnabled=}
When the ⦅CSM⦆ sends a Customer Credit Transfer
Then the ⦅Payment Service⦆ receives a Receive Payment Request
When ⦅Payment Service⦆ sends a Receive Payment Response
Then ⦅CSM⦆ receives a Payment Status Report
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⦆ |