Using Checkout Links powered by Shop Pay functionality, adding an example of how someone might create a Shop Pay button in their Android app using the mobile buy SDK.
How
Constructed a Checkout Link powered by Shop Pay (also called cart permalink) using the variants and quantities.
Used ChromeCustomTabs to open a webview to the Shop Pay Uri that was constructed.
Bumped the API level to 24 (Android 7 from 4-5 years ago) to use new Java Stream/Lambda goodness. It can probably also be done without.
What
Using
Checkout Links powered by Shop Pay
functionality, adding an example of how someone might create a Shop Pay button in their Android app using the mobile buy SDK.How
ChromeCustomTabs
to open a webview to the Shop Pay Uri that was constructed.Video
https://user-images.githubusercontent.com/499162/127496020-62851c02-8fd0-4ea4-8756-a68b9630c542.mp4