This example is a minimal implementation of a payment popup for a subscription.
Try it (pay)
Other examples:
Documentation on GitHub