Contents

startRefundQueryForUri#

Check for a refund based on a taler://refund URI.

Locates the payment for the order identified by the URI and starts a refund query on it; the refund processing then continues as part of the payment transaction. The WALLET_PURCHASE_NOT_FOUND error is returned when the wallet has no purchase for the order, for example because it was paid with a different wallet.

Request:

The args must be a PrepareRefundRequest object.

Response:

On success, the result is a StartRefundQueryForUriResponse object.

Side effects:

Creates or updates a refund query and contacts the merchant over the network.

Expected errors:

The caller can handle the following errors inline: WALLET_TALER_URI_MALFORMED, WALLET_PURCHASE_NOT_FOUND.

interface PrepareRefundRequest {
  // The taler://refund URI to check for refunds.
  talerRefundUri: string;
}
interface StartRefundQueryForUriResponse {
  // Transaction id of the *payment* where the refund query
  // was started.
  transactionId: TransactionIdStr;
}