Skip to main content
Solved

Get info about a payment when using web paywall button

  • May 6, 2025
  • 1 reply
  • 21 views

Forum|alt.badge.img+8

Hi,


We are trying the new web paywall button in one of our app. It is working great so far but we didn’t find the way to get the info inside the app when a payment is done on the web using the web paywall button.

We need trigger some code in our app every time there is a payment in the app based on the subscription taken. Today we an in-app payment, we can simply rely on the response of `Purchases.shared.purchase()`.

Is there a way to do the same thing with web payment?

 

Thanks!

Best answer by jeffrey_bunn

Hi ​@amsdamsgram! The usual paywall callbacks won’t fire, but we invalidate the customerInfo cache when linking out with a web paywall button. So if you’re subscribed to the customerInfo listener, it will fire when the user returns to your app. You can then use this object to run your custom code.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 294 replies
  • Answer
  • May 8, 2025

Hi ​@amsdamsgram! The usual paywall callbacks won’t fire, but we invalidate the customerInfo cache when linking out with a web paywall button. So if you’re subscribed to the customerInfo listener, it will fire when the user returns to your app. You can then use this object to run your custom code.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings