RevenueCat gets the originalApplicationVersion from the original_application_version field in the receipt. In the sandbox environment, Apple always sets the value of this field to “1.0”. Therefore, the only way you can test your logic around this key is to:
1. Mock different values and make sure your app behaves correctly.
2. The key comes from
CFBundleVersion in the info.plist on iOS and
CFBundleShortVersionString on macOS, so make sure you compare against the correct key and value in your app.
To read more about this receipt field and others, consult Apple's Receipt Validation Programming Guide.