Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection error VS negativeCompletionReceived #40

Open
obelixA opened this issue Dec 4, 2023 · 0 comments
Open

connection error VS negativeCompletionReceived #40

obelixA opened this issue Dec 4, 2023 · 0 comments
Labels
question Further information is requested

Comments

@obelixA
Copy link

obelixA commented Dec 4, 2023

NuGet Package Version

2.17.0

Payment service provider

?

Payment terminal

Worldline

Communication Logs

No response

More information

on terminal, which do not need authentication my payment works fine (thanks to our conference call some weeks ago!!).
But now I was trying to start a payment on a device, which needs authentication first.
According to the documentation I added 3 lines of code (see below "INSERTED")
w/o this line of code I get the message "negativerCompletionReceived".
with these lines I get "connection error"

any ideas what goes wrong?

thanks in advance

using var zvtClient = new ZvtClient( _comm, clientConfig: clientConfig );
latestZvtClient = zvtClient;
zvtClient.StatusInformationReceived += ( statusInformation ) => OnLogit?.Invoke( statusInformation.ErrorMessage );
zvtClient.IntermediateStatusInformationReceived += ( msg ) => OnLogit?.Invoke( msg );
zvtClient.LineReceived += ( printLineInfo ) => OnLogit?.Invoke( printLineInfo.Text );
zvtClient.ReceiptReceived += ( receiptInfo ) => OnLogit?.Invoke( receiptInfo.Content );

// INSERTED
var completionInfo = new CompletionInfo();
zvtClient.CompletionStartReceived += ( statusInformation ) => completionInfo.State = CompletionInfoState.Successful; 
zvtClient.CompletionDecisionRequested += () => completionInfo;
// LAST LINE INSERTED



var res = await zvtClient.PaymentAsync( sum );
@obelixA obelixA added the question Further information is requested label Dec 4, 2023
@obelixA obelixA changed the title connection error VS negativerCompletionReceived connection error VS negativeCompletionReceived Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant