This is the solution:
Get the application via testflight, as a real tester account and install the app locally on the phone
In iphone settings, log out from the real app store id, and log in with the sandbox account (not a tester account).
Open the already-installed app, and pay. It will use the sandbox account.
Topic:
App & System Services
SubTopic:
StoreKit
Tags: