iOS SDK - Orders Module

Last updated: Aug 15th, 5:49am

Use the endpoints of this module to retrieve and display previously completed remote order transactions for the purpose of allowing users to duplicate a frequent order without having to re-enter all items.

Initialize Order Facade

Prior to invoking any order module endpoints:

  1. Create a new request object for the relevant coordinator.
  2. Implement the delegate for the coordinator to handle responses.
    1PDOrderCoordinator *orderCoordinator = [[PDOrderCoordinator alloc] init];
    2 self.orderCoordinator = OrderCoordinator; [orderCoordinator release];

    retrieveOrderSummary

    Gets an abbreviated amount of data for all previously placed orders.

    Element Value
    Method -(void) retrieveOrderSummary;
    Success Returns void (^FetchOrderSummaryCompletionBlock(PDRetrieveOrderSummaryResponse *response);

    response - A set of partially populated order objects for all previously placed orders, plus status information related to the outcome of the call. Each summary returned includes the following data: orderId, storeId, orderAmount, and orderDate.
    Failure Returns void (^FetchOrderSummaryFailureBlock)(PDPaydiantError *orderError);

    Configure user error messages for this call with the key kUserErrorOrderSummaryDomain.

    Error Description
    500 An internal server error occurred.

    retrieveOrderDetail

    Gets the full content details for a specific order that was previously placed in the wallet.

    Element Value
    Method -(void) retrieveOrderDetail:(NSString *)orderId;

    orderId - WLW's unique identifier for the previous order.
    Success Returns void (^FetchOrderDetailCompletionBlock(PDRetrieveOrderDetailResponse *response);

    response - The entire body of data related to the requested order, plus status information related to the outcome of the call.
    Failure Returns void (^FetchOrderDetailFailureBlock)(PDPaydiantError *orderError);

    Configure user error messages for this call with the key kUserErrorOrderDetailDomain.

    Error Description
    500 An internal server error occurred.