createPayment

suspend fun createPayment(payment: Payment, apiVersion: String, productSubscriptionKey: String, uuid: String): Response<Unit>

Creates a Collection payment (V2).

Return

A Response with an empty body; HTTP 202 indicates the payment was accepted.

Parameters

payment

The payment payload.

apiVersion

The version of the API to use.

productSubscriptionKey

The subscription key for the Collection product.

uuid

A UUID V4 used as the X-Reference-Id; poll getPaymentStatus with the same ID.