OloPayAPI

class OloPayAPI : IOloPayAPI

Represents the Olo Pay API and functionality related to it


Important:

Prior to calling methods in this class be sure to initialize the SDK by calling OloPayApiInitializer.setup

See also

Use this class to initialize the Olo Pay SDK

Constructors

OloPayAPI
Link copied to clipboard
fun OloPayAPI()

Creates a new OloPayAPI instance

Functions

createPaymentMethod
Link copied to clipboard
open suspend override fun createPaymentMethod(context: Context, params: IPaymentMethodParams?): IPaymentMethod

Creates a IPaymentMethod instance with the provided parameters

open override fun createPaymentMethod(context: Context, params: IPaymentMethodParams?, callback: ApiResultCallback<IPaymentMethod?>)

Creates a PaymentMethod instance with the provided parameters and returns it via callback.