ios – Learn how to Implement B2B Orders with Location-based Fee Phrases utilizing Shopify’s Cell Purchase SDK


I’m at present growing a B2B native cell app (iOS and Android) that interfaces with a Shopify retailer. This utility serves corporations which have a number of areas, with every location having its personal distinctive fee phrases similar to card funds or time period checkout.

To this point, I’ve been in a position to leverage Shopify’s Cell Purchase SDK to authenticate a buyer, show merchandise, and handle the checkout course of. This is an instance of the present implementation in Swift:

let shopper = Graph.Shopper(shopDomain: "my-shop-name.myshopify.com", apiKey: "your-api-key")
let customerInput = Storefront.CustomerAccessTokenCreateInput(e mail: "person@instance.com", password: "password")

let mutation = Storefront.buildMutation { $0
    .customerAccessTokenCreate(enter: customerInput) { $0
        .customerAccessToken { $0
            .accessToken()
            .expiresAt()
        }
        .userErrors { $0
            .subject()
            .message()
        }
    }
}

Nonetheless, the subsequent step is proving to be a problem. I would like to include extra B2B options, permitting a logged-in person to:

  1. Choose their related firm location,
  2. Fetch the fee methodology related to the chosen location, and
  3. Use the fetched fee methodology for checkout.

Sadly, I’ve not been capable of finding built-in help for this within the Cell Purchase SDK. Is there a direct technique to deal with these B2B options utilizing the SDK, or will I would like to plan a workaround or customized implementation?

Within the case that I would like a workaround, what can be one of the best apply for this? Are there different platforms or APIs higher suited to implementing such B2B functionalities in a cell app?

I’ve tried discovering an answer within the documentation and on boards

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles