Protocols

The following protocols are available globally.

  • Deprecated

    Migrate to declarative APIs in PiaSDK namespace

    The PiaSDK protocol provides a mechanism for your application to take action on events that occur in both payment and saving card processes. You can make use of these calls by assigning an object to the PiaSDK’ delegate property directly.

    See more

    Declaration

    Objective-C

    @protocol PiaSDKDelegate <UINavigationControllerDelegate>

    Swift

    protocol PiaSDKDelegate : UINavigationControllerDelegate

PaymentProcess (Abstract)

  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol PaymentRegistering <NSObject>
    @required
    @property(nonatomic) id registrationCallback;
    @end

    Swift

    protocol PaymentRegistering : NSObjectProtocol

CardRegistrationResponse

  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol PaymentRegistrationResult <NSObject>
    @required
    @property(nonatomic, nullable) TransactionID transactionID;
    @property(nonatomic, nullable) RedirectURL redirectURL;
    
    /// Return object containing response following successful registration with merchant backend.
    + (instancetype)successWithTransactionID:(TransactionID)transactionID
                                 redirectURL:(RedirectURL)redirectURL;
    
    /// Return object containing `error` following unsuccessful registration with merchant backend.
    + (instancetype)failure:(NSError *)error;
    @end

    Swift

    protocol PaymentRegistrationResult : NSObjectProtocol
  • A set of colors used in the SDK’s views.

    See more

    Declaration

    Objective-C

    @protocol PiaSDKTheme

    Swift

    protocol PiaSDKTheme