VGSCheckoutDelegate
public protocol VGSCheckoutDelegate : AnyObject
A set of methods to notify about changes in checkout state.
-
checkoutDidFinish(with:Default implementation) Tells the delegate that checkout flow did finish with result.
Default Implementation
no:doc
Declaration
Swift
func checkoutDidFinish(with requestResult: VGSCheckoutRequestResult)Parameters
requestResultVGSCheckoutRequestResultobject, holds result of checkout flow. -
checkoutDidCancel()Default implementationTells the delegate that user cancelled checkout flow (closed checkout screen).
Default Implementation
no:dc
Declaration
Swift
func checkoutDidCancel() -
removeCardDidFinish(with:Default implementationresult: ) Tells the delegate that user removed saved card from payment options methods.
Default Implementation
no:doc
Declaration
Swift
func removeCardDidFinish(with id: String, result: VGSCheckoutRequestResult)Parameters
idStringobject, removed saved card financial instrument id.resultVGSCheckoutRequestResultobject, remove card request result. -
Tells the delegate that checkout flow did finish with payment method.
Declaration
Swift
func checkoutDidFinish(with paymentMethod: VGSCheckoutPaymentMethod)Parameters
paymentMethodVGSCheckoutPaymentMethodobject, holds payment method info.
View on GitHub
VGSCheckoutDelegate Protocol Reference