BTNPurchasePathInterface Protocol Reference

Conforms to NSObject
Declared in BTNPurchasePathInterfaceProtocol.h

Overview

Button Purchase Path takes regular Merchant URLs to products, categories or just the homepage and replaces them with a fully attributed Button Purchase Path, optimized for both conversion and user experience. https://developer.usebutton.com/guides/publishers/ios/create-a-button-purchase-path

  extension required method

Sets a Purchase Path extension.

@property (nullable, nonatomic, strong) id<BTNPurchasePathExtension> extension

Discussion

Sets a Purchase Path extension.

@discussion Purchase Path Extensions is a feature designed to allow Publishers to create completely custom experiences on top of Button In-App Checkout. Purchase Path Extensions build on the rich event framework including User Activity Events & Checkout Events and communicate with users consistently through Browser Cards – a simple UX for displaying modular information throughout the shopping experience.

Declared In

BTNPurchasePathInterfaceProtocol.h

  browserEnabled required method

Indicates if all urls would be opened in the webview. Returns YES if enabled.

@property (nonatomic, assign, readonly, getter=isBrowserEnabled) BOOL browserEnabled

Discussion

Indicates if all urls would be opened in the webview. Returns YES if enabled.

Declared In

BTNPurchasePathInterfaceProtocol.h

– fetchWithRequest:purchasePathHandler: required method

Fetches a Purchase Path with a Purchase Path request.

- (void)fetchWithRequest:(BTNPurchasePathRequest *)request purchasePathHandler:(nonnull void ( ^ ) ( BTNPurchasePath *__nullable purchasePath , NSError *__nullable error ))purchasePathHandler

Parameters

request

A Purchase Path request.

purchasePathHandler

A block to be called upon completion of the Purchase Path fetch. The block passes a purchasePath on success or an error if one occurred.

Discussion

Fetches a Purchase Path with a Purchase Path request.

Declared In

BTNPurchasePathInterfaceProtocol.h