Checkout
Constructors
Properties
Gets all available payment methods, callable after CheckoutState.REQUEST_PAYMENT_METHOD.
The current checkout process response from the backend
The current fulfillment state as a live data
List of invalid products that were contained in a checkout request, available after entering state CheckoutState.INVALID_PRODUCTS
Returns true of the checkout is currently available, or false if checkout is disabled for this project
The price to pay in cents (or equivalent integer based currency type), or 0 if no price is available
Gets the content of the qrcode that needs to be displayed, or null if no qrcode needs to be displayed
List of coupons that were redeemed during this checkout
Gets the currently selected payment method, or null if currently none is selected
The current state of the checkout as a live data
The final price of the checkout, calculated by the backend.
Functions
Aborts outstanding http calls and notifies the backend that the checkout process was cancelled, but does not notify listeners and ignores the backend response
Approve offline processed payment methods. E.g. on clicking the "finish" button or leaving the qr code view.
Authorize a for one-time use payment requests, e.g. sending tokenized payment data of google pay.
Starts the checkout process.
Clear all codes that are appended to offline qr codes
Needs to be called when the checkout is state CheckoutState.REQUEST_PAYMENT_METHOD.
Remove code to append to offline qr codes