deletePaymentRequest

public final Unit deletePaymentRequest(String paymentRequestId)

Deletes a payment request by its unique paymentRequestId.

If the deletion is successful, the function completes normally. If an error occurs, it throws a GiniHealthException containing detailed error information including status code, error response, and the original exception. If the request is cancelled, it throws a standard Exception.

Parameters

paymentRequestId

The unique identifier of the payment request to be deleted.

Throws

if the deletion fails with an API error

if the request is cancelled