02-17-2012 05:37 AM - last edited on 02-17-2012 05:38 AM
Hello Friends,
i am doing in app purchasing. purchasing id work fine. but getting problem when i am use getTransactionId(). i am getting 0.
my code is bellow.
public boolean startPurchase() throws IllegalArgumentException,IllegalApplicationException,PaymentServerException, UserCancelException,PaymentException,AppWorldUpdat eRequired { PurchaseArgumentsBuilder arguments = new PurchaseArgumentsBuilder() .withDigitalGoodSku( digitalGoodSku ) .withDigitalGoodName( digitalGoodName ) .withMetadata( digitalGoodName ) .withPurchasingAppName( "PushLegal" ); System.out.println("***************startPurchase** **********************"); Purchase purchase= engine.purchase(arguments.build()); Dialog.alert("Transiction id:: "+purchase.getTransactionId()); transactionId=purchase.getTransactionId(); System.out.println("***************startPurchase retrn true************************"); return true; }
i am getting value 0 when i am using purchase.getTransactionID(); what should i do? please ans me..
Thanks and regards,
Ajay Patil.
Solved! Go to Solution.
02-22-2012 10:20 AM
Hi Ajay,
Are you testing in sandbox mode? If so the Transaction ID will always be 0 as no transaction is actually occurring.
Regards,
02-23-2012 12:25 AM
Hai thanks for reply me. yes i am testing my application on sandbox mode. if i submit my application to app world than it work fine?
Thanks and regards,
Ajay Patil.
02-23-2012 08:51 AM
If you actually post your application for sale, download from outside the sandbox and actually purchase a digital good, then you should receive a valid Transaction ID.
02-24-2012 02:02 AM
Hi gbeukeboom,
We are right now useing PaymentApi.jar version 1.5 , now with latest appworld>3.0 we test it on OS6 and OS7 devices it works fine.
But for device 8520 OS version 5.0 same application we try to run on purchase .
When PaymentEngine.purchase() called , exception thrown
IllegalArgumentException: classname does not exist in the current application package
Please suggest as we are in trouble die to this.
Thanks,
Himanshu
02-24-2012 02:07 AM
Hello,
You are wrong. My application on appworld but i didnt get transactionID. i still get transactionID zero. i am not using now sandbox but still i get zero transection id. please help me for that....
Thanks and regards,
Ajay Patil.
02-24-2012 02:25 AM
Hi Ajay,
Can give some hint for the my problem i have release in 2 days and i am stuck.
Thanks in advance.
Himanshu
02-24-2012 02:34 AM
02-24-2012 02:36 AM
Hello,
You are wrong. My application on appworld but i didnt get transactionID. i still get transactionID zero. i am not using now sandbox but still i get zero transection id. please help me for that.... please help me....
Thanks and regards,
Ajay Patil.
02-24-2012 02:55 AM
Thanks Ajay,
Ye the link is for registry.
can i have your contact mail so that i can contact you.
Himanshu Patel
Baroda, Gujarat