requestToPay

fun requestToPay(requestToPay: RequestToPay, apiVersion: String, productSubscriptionKey: String, uuid: String): ERROR CLASS: Symbol not found for Flow<io/rekast/sdk/repository/data/NetworkResult<kotlin/Unit>>

Initiates a request-to-pay via the Collection service, prompting the payer to approve a debit.

Return

A Flow emitting a NetworkResult with an empty Unit body on success (HTTP 202).

Parameters

requestToPay

The request-to-pay payload containing amount, currency, and party details.

apiVersion

The API version to target (e.g., v1_0 or v2_0).

productSubscriptionKey

The Ocp-Apim-Subscription-Key for the Collection product.

uuid

A UUID V4 used as the X-Reference-Id to uniquely identify this request.