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
requestResult
VGSCheckoutRequestResult
object, 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
id
String
object, removed saved card financial instrument id.result
VGSCheckoutRequestResult
object, remove card request result. -
Tells the delegate that checkout flow did finish with payment method.
Declaration
Swift
func checkoutDidFinish(with paymentMethod: VGSCheckoutPaymentMethod)
Parameters
paymentMethod
VGSCheckoutPaymentMethod
object, holds payment method info.