getPaymentStatus

@GET(value = "/collection/{apiVersion}/payment/{referenceId}")
abstract suspend fun getPaymentStatus(@Path(value = "referenceId") referenceId: String, @Path(value = "apiVersion") apiVersion: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String): Response<PaymentStatus>

Retrieves the current status of a previously created Collection payment.

Return

A Response whose body is the parsed PaymentStatus.

Parameters

referenceId

The UUID V4 reference ID used when calling createPayment.

apiVersion

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

productSubscriptionKey

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