The Kite Android Print SDK includes a robust checkout and payment experience that's proven to convert well with users. It can take care of the entire checkout process for you, no need to spend time building any user interfaces.
This is the quickest approach to integration and perfect if you don't want to spend any time building a custom checkout experience.
If you don't want to use or customize the provided experience you can build your own custom checkout UI.
If you haven't already, see the README for an initial overview and instructions for adding the SDK to your project.
- Create a print order representing the product(s) you wish to have printed and posted
- Start managed check-out, passing in the
Order
object you created in the Prerequisite Step 1 - Handle the result
-
Start managed check-out, passing in the
Order
object you created in the Prerequisite Step 1// SomeActivity.java private static final int REQUEST_CODE_CHECKOUT = 1; public void submitPrintOrder( Order order ) { KiteSDK.getInstance( context ).startCheckout( activity, order, REQUEST_CODE_CHECKOUT ); }
-
Handle the result
// Elsewhere in SomeActivity.java public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQUEST_CODE_CHECKOUT) { if (resultCode == Activity.RESULT_OK) { Toast.makeText(this, "Successfully checked out!", Toast.LENGTH_LONG).show(); } else if (resultCode == Activity.RESULT_CANCELED) { Toast.makeText(this, "User cancelled checkout :(", Toast.LENGTH_LONG).show(); } } }
- That's all there is to it from an integration perspective! Submitted print orders will appear in the developer dashboard. You'll also need to register your payment details with us in the dashboard so that we can pay you when your users place orders.
- Alternatively you can build your own custom checkout UI for complete control of the checkout and payment process.