This example is a minimal implementation of a payment popup for a subscription.

Other examples:

Documentation on GitHub