createPayment

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

Creates a Collection payment (V2). Poll getPaymentStatus with the same uuid as the reference ID to check the outcome.

Return

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

Parameters

apiVersion

The API version to target; use v2_0 for this endpoint.

payment

The payment payload (amount/currency, references, notes, and options).

uuid

A UUID V4 used as the X-Reference-Id; reuse this same ID when calling getPaymentStatus.

productSubscriptionKey

The subscription key for the Collection product.