Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error..Something went wrong..." after making purchase #97

Open
shajby1 opened this issue Mar 8, 2019 · 0 comments
Open

"Error..Something went wrong..." after making purchase #97

shajby1 opened this issue Mar 8, 2019 · 0 comments

Comments

@shajby1
Copy link

shajby1 commented Mar 8, 2019

Thank for Ane!

Once I try to make a purchase I m getting "Error..something went wrong"

Any suggestions?

Also how I can get a confirmation about the purchase?

Thanks!

My code:

**import com.freshplanet.ane.AirInAppPurchase.InAppPurchase;
var ane:InAppPurchase;
var debug;

function initInApp():void{
if (!InAppPurchase.isSupported) {
tf.text = "InAppPurchase ANE is NOT supported on this platform!"
return;
}else{
tf.text = "InAppPurchase is supported!"
}

InAppPurchase.logEnabled = true;
debug = true;

ane = InAppPurchase.instance;
ane.init("MY KEY", debug);

}

initInApp();

function makePurchase(e:MouseEvent):void{
var productId:String = "product_nr_1";
ane.makePurchase(productId);
}

nakup.addEventListener(MouseEvent.MOUSE_DOWN,makePurchase)**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant