Demonstration of prompt.cash integration into a simple android app.
This demo consists of 3 simple view fragments:
-
WelcomeFragment: Ask the user for an amount to pay using an input element.
-
PaymentFragment: Opens the Prompt.Cash gateway in a WebView and to let the user pay via QR code or BCH address. It automatically detects payments by repeatedly evaluating the
window.promptCfg.payment.status
variable every second. -
CompletedFragment: The page that is shown to the user after the payment has been completed.
There is an APK to run this demo on your android phone available in the Release section.