|Constructor and Description|
Initializes a new
|Modifier and Type||Method and Description|
Attempt to complete a spark transaction from the participant that initiated the transaction.
public TransactionServiceProvider(GameClient gameClient)
GameClientthat owns this service provider
public CompletableFuture<Boolean> capture(String transactionID)
Attempt to complete a spark transaction from the participant that initiated the transaction. The Interactive service makes a best-effort to validate the charge before it’s created, blocking obviously invalid ones outright, but when possible the client SHOULD await a successful reply before effecting any associated action.
The result of the
CompletableFuture may include checked exceptions that were thrown in the event
that there was a problem with the reply from the Interactive service. Specifically, two types of checked
exceptions may be thrown:
InteractiveRequestNoReplyExceptionmay be thrown if no reply is received from the Interactive service.
InteractiveReplyWithErrorExceptionmay be thrown if the reply received from the Interactive service contains an
Considerations should be made for these possibilities when interpreting the results of the returned
Copyright © 2018. All rights reserved.