GiniHealthDelegate
public protocol GiniHealthDelegate : AnyObject
Delegate to inform about the current status of the Gini Health SDK. Makes use of callback for handling payment request creation.
-
Called when the payment request was successfully created
Declaration
Swift
func didCreatePaymentRequest(paymentRequestID: String)Parameters
paymentRequestIDId of created payment request.
-
Error handling. If delegate is set and error is going to be handled internally the method should return true. If error hadling is planned to be custom return false for specific error case.
Declaration
Swift
func shouldHandleErrorInternally(error: GiniHealthError) -> BoolParameters
errorerror which will be handled.
View on GitHub
GiniHealthDelegate Protocol Reference