GiniMerchantDelegate
public protocol GiniMerchantDelegate : AnyObject
Delegate to inform about the current status of the Gini Merchant 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
paymentRequestID
Id 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: GiniMerchantError) -> Bool
Parameters
error
error which will be handled.