have users click a button that opens your payment processor in a new tab. Users pay there.
once clicked, that button becomes a refresh button that every time its pressed makes an API call to your payment processor to see if that user has paid
if that API call determines the user has paid you could store “payment = successful” or whatever as a variable using Global Config so the app remembers that they’ve paid.