Skip to main content

If a user redeems an offer code (iOS) without the app installed, when does the INITIAL_PURCHASE webhook fire?

 

I’m having an issue where the INITIAL_PURCHASE webhook is firing without the user id being set. I set the user id when the user signs in/up so I’m trying to understand when the webhook is firing. This is only a problem for trials (offer code redemptions).

It would be nice if the webhook would re-fired when the user id was updated. 

Hey @1vmgm,

I’m checking on some things with the team and will get back to you soon!


Hi @1vmgm,

You're likely getting an initial purchase webhook when the customer makes a purchase outside of the app. That can include changing subscriptions in settings, purchasing directly from the App Store, or redeeming a coupon code in the App Store.

If you want to prevent that, I recommend not calling configure on the SDK until the customer logs in. That way, right when they log in the SDK processes the offer code purchase on the device.


That makes sense, thanks!


Reply