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

Terminal API #30

Closed
emirmo opened this issue Sep 9, 2022 · 5 comments
Closed

Terminal API #30

emirmo opened this issue Sep 9, 2022 · 5 comments

Comments

@emirmo
Copy link

emirmo commented Sep 9, 2022

Hi,

Could someone provide a simple Terminal API request and response example?

The Java library itself seems to provide some unit tests using the TerminalAPIRequest and TerminalAPIResponse classes, but it's a little difficult to deduce how to write simple test API calls, similar to payment checkouts.

@jlengrand
Copy link
Contributor

Hey there!

You are correct, so far our samples are very much focused on checkout related capabilities.
I understand you'd like some examples with the Terminal API.

What would you want to see exactly?
Do you have precise examples you'd like to see ?

@emirmo
Copy link
Author

emirmo commented Sep 23, 2022

Hi, thanks for the response.

I'd be happy with seeing a basic example of an asynchronous call to start a terminal cloud session, and then receiving a webhook response after a terminal card payment has been initialized or completed.

E.g. our backend might remotely (via Adyen) tell the terminal to start a session for paying a specific amount via credit card. The session would then start on the terminal device, and the device would send back notifications (via Adyen) to our backend's webhook when the session starts or ends (or if there is an error/rejection).

While the regular checkout can be performed via test cards or test PayPal accounts, Adyen doesn't seem to support simulated/mock terminal behavior. So in this case, the workflow always needs to be tested directly on the terminal devices. Having a simple example would be helpful for debugging purposes.

If you believe this case doesn't quite fit the purpose of these examples, this issue can be closed, but I think a small piece of code demonstrating a terminal session could be quite helpful.

@sgaguadero
Copy link

Any update from this topic?. I'm in the same scenario to test terminals with the API.

@jlengrand
Copy link
Contributor

Hey there. Apologies, we've been running behind with other activities but this is still on our Radar. Sorry I can't give you a better estimate for now

@Kwok-he-Chu
Copy link
Contributor

@sgaguadero @emirmo We've added the integration-example for the cloud terminal api/sync endpoint in #191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants