BTNCheckoutExtension Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | BTNCheckoutExtensionProtocol.h |
– checkoutDidInitialize:
Called when the checkout initializes and before anything is displayed.
- (void)checkoutDidInitialize:(id<BTNCheckoutInterface>)checkout
Parameters
checkout |
The interface to the checkout object. |
---|
Discussion
Called when the checkout initializes and before anything is displayed.
Declared In
BTNCheckoutExtensionProtocol.h
– checkout:didNavigateToURL:
Called when the checkout flow navigates to a new URL.
- (void)checkout:(id<BTNCheckoutInterface>)checkout didNavigateToURL:(NSURL *)url
Parameters
checkout |
The interface to the checkout object. |
---|---|
url |
The URL representing the current location of the checkout flow. |
Discussion
Called when the checkout flow navigates to a new URL.
Declared In
BTNCheckoutExtensionProtocol.h
– checkout:didNavigateToProduct:commission:
Called when the checkout flow navigates to a product. [BETA]
- (void)checkout:(id<BTNCheckoutInterface>)checkout didNavigateToProduct:(BTNProduct *)product commission:(BTNCommission *)commission
Parameters
checkout |
The interface to the checkout object. |
---|---|
product |
An object representing the product. |
Discussion
Called when the checkout flow navigates to a product. [BETA]
See Also
Declared In
BTNCheckoutExtensionProtocol.h
– checkoutDidPurchase:
Called when a purchase is completed. [BETA]
- (void)checkoutDidPurchase:(id<BTNCheckoutInterface>)checkout
Parameters
checkout |
The interface to the checkout object. |
---|
Discussion
Called when a purchase is completed. [BETA]
This is not guaranteed to be called for every purchase as not all merchants are enabled for this feature.
Declared In
BTNCheckoutExtensionProtocol.h
– checkoutDidClose
Called when the checkout flow is closed. This does not mean a purchase was completed.
- (void)checkoutDidClose
Discussion
Called when the checkout flow is closed. This does not mean a purchase was completed.
This can happen when the user dismisses the checkout flow or the user chooses to install the native app.
Declared In
BTNCheckoutExtensionProtocol.h