+1 vote

Hallo!

We are processing recurring transactions in our application using Wallee SDK libraries in Java.

Is it possible to get the end state (failed/fulfilled) of a recurring transaction immediately so that we can be sure that the transaction is failed or successfully processed?
Because it's important for the following step in our application.

Here how we get the end state at the moment. If everything worked - we get state 'FULFILL'.

  1. We create a Transaction Object using a tokenId and then create a transaction with this object
    apiClient.getTransactionService().create(spaceId, transactionPayload);

  2. Then we process the transaction without user interaction
    apiClient.getTransactionService().processWithoutUserInteraction(spaceId, transaction.getId());

  3. And then complite
    apiClient.getTransactionCompletionService().completeOnline(spaceId, transaction.getId());

But when we tested some failures - we got state 'PROCESSING', in which transactions could 'hang' over 5 minutes and be failed or fulfilled. We would like to get state failed or fulfilled immediately.

asked by Lena LIMOKO (190 points)
edited by Lena LIMOKO

1 Answer

0 votes

Dear Lena

Can you specify which payment method you have tried? The transaction should be canceled if the payment fails with the specific method.

The payment method can be specified here:
https://app-wallee.com/doc/api/web-service#_transaction_create

Furthermore they can also fetch all possible method IDs for a transaction with this service:
https://app-wallee.com/doc/api/web-service#transaction-service--fetch-payment-methods

I hope we could help you with this information

answered by José Chi-Hieu MA (220 points)