Does anyone have experience of Twine and Wix Payments?

Hey all,

My Twine (Sugarcube) game is hosted on a Wix website, and at the end of the fist level there is an option to ‘Unlock next level.’
This takes the user to the Unlock next level item on our Wix website (so far so good…) but I am struggling to figure out what code I need add to my twine passage that tells me the user has made a purchase, and takes them to level 2 in the game.

Thanks in advance.

That’s going to be pretty difficult. While you can load the Twine file with an argument on the URL that indicates that something has been unlocked, or make a callback from the game to your website to confirm — there’s nothing at all in a Twine game that can’t just be edited by the user while playing.

So, if you come up with a mechanism to set a variable in your game to indicate that Chapter 2 is unlocked, the player can just set that variable themselves.