OPPBraintreeConfig

@objc
public class OPPBraintreeConfig : OPPBrandConfig

Class to encapsulate all necessary brand configurations required for PayPal PayFast and Venmo PayFast transaction.

  • Creates and returns Braintree configuration object for PayPal PayFast brand.

    Declaration

    Swift

    @objc
    public static func paypalPayFastConfig(universalLink: String,
                                           URLScheme: String? = nil,
                                           enableAppSwitch: Bool = true) -> OPPBraintreeConfig

    Parameters

    universalLink

    Universal link URL to use in App switch flow

    URLScheme

    URL scheme of the application for redirection.

    enableAppSwitch

    Set it true to enable App flow. By default its true.

    Return Value

    Returns an object representing OPPBraintreeConfig object for PayPal PayFast.

  • Creates and returns Braintree configuration object for Venmo PayFast brand.

    Declaration

    Swift

    @objc
    public static func venmoPayFastConfig(universalLink: String) -> OPPBraintreeConfig

    Parameters

    universalLink

    Universal link URL to use in App switch flow

    Return Value

    Returns an object representing OPPBraintreeConfig object for Venmo PayFast.