I’m using the developer rig and am receiving a 401 when attempting to test useBits with my product sku. Any idea why this is? I am running the panel as broadcaster, logged in linked, and logged in unlinked. All return 401 when calling useBits.
window.Twitch.ext.bits.getProducts().then(function(products) {
$.each(products, function(){
window.Twitch.ext.bits.useBits(this.sku);
})
});
I should add that I am an affiliate.
Doesn’t matter. The rig doesn’t know
This thread covers testing
We know how important having a high quality monetization experience is for your Twitch Extensions. To help you ship monetized Extensions with a higher degree of confidence, we’re making it easier to test Bits in Extensions on your own channel. Developers can now activate Bits-enabled Extension versions that are in a testing state on their own channel without needing Partner or Affiliate status and Bits used in the Extension won’t be deducted from their wallet. Please note that if you are trying …
But if you are in the rig currently I believe you can only use the loopback functions for testing with. Not the live calls.
Also that code is a little nasty, it’ll attempt to poke the transaction dialog for every product you have…