Question

Not receiving 'TRANSFER' webhook in Sandbox environment

  • 28 March 2022
  • 4 replies
  • 65 views

Badge +5

We are currently testing restore purchase behavior on the Test Flight version of our app. When evoking the restore purchase behavior the app was able to locate the current subscription and unlock pro level features, but we never received a TRANSFER webhook. 

Are TRANSFER events available in Sandbox/Test Flight environments. 


4 replies

Userlevel 5
Badge +9

The TRANSFER events should work the same way in sandbox and production. Do you see the subscription transferred event in when viewing the customer history in the dashboard? 

 

If not, ensure that the App User ID restoring the transaction is a identified customer (not RCAnonymous) and the same sandbox receipt is already owned by another identified customer.

 

To test this in sandbox the steps are typically:

  1. Run app
  2. Log In as Customer A
  3. Purchase subscription
  4. Log out
  5. Log in as Customer B
  6. Restore subscriptions
  7. Subscription transferred from Customer A to Customer B
Badge +5

I see, in the case that both App User IDs are anonymous what is the expected behavior?

Userlevel 5
Badge +9

If both App User IDs are anonymous, then the expected behavior would be to alias (merge) them together. This is to handle cases where developers don’t have a login, or optional login, and the customer is using your app on multiple devices.

If you want to override this behavior, and not alias anonymous IDs together, what you could do is generate your own random UUID on app start and use that to configure the SDK. Make sure you aren’t setting a new UUID on every app launch, only if it’s not set :) 

Badge +5

Great, thank you!

Reply