Then you should set up a webhook on bubble that receives the payment confirmation from your gateway. Once it’s done the webhook can sign the user up and send him a temporary password, an email confirmation or something alike to allow the user to log in. Henceforth you can save the payment status on the user’s table to control his permitions when using the app.