Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulate purchase with Windows.Services.Store Addons

I've written up an in app purchase system, built on Windows.Services.Store

Now I wish to make sure my users get what they pay for. In the older API, I could simulate purchases.

How can I get each purchase to succeed without needing to feed it real money from my credit card/paypal each time?

I can't return to the older API.

like image 634
Jarryd Avatar asked Oct 17 '22 05:10

Jarryd


1 Answers

How can I get each purchase to succeed without needing to feed it real money from my credit card/paypal each time?

In testing phase, the new API does not provide a class that you can use to simulate license info during testing. So, to simulate the purchase process, you need to buy the real product.

If you just need to get the product to ensure the correct feature or service could be unlocked after the add-on gets purchased, you could generate promotional code through Dev Center to get your product without feeding money:

enter image description here

Also, note this in that document:

In some cases the customer may see a Buy button instead of Install, even though the app was successfully redeemed via the promotional code. The customer can click Buy to install the app for no charge.

like image 57
Zhendong Wu - MSFT Avatar answered Oct 21 '22 09:10

Zhendong Wu - MSFT