Does Shephertz offer a way to handle iTunes Purchase Receipt Verification like Stackmob does in this example?

0 votes
http://metakite.com/blog/2012/11/verifying-in-app-purchase-receipts-with-stackmob/

https://github.com/DazeEnd/StackMobIAPReceiptVerification

Since I already use AppWarp for online multiplayer, and also use App42 for user registration / In-App=Purchase registration, which of Shephertz's services would best suit me for handling sserver-based purchase receipt verification for my Unity-developed game.
asked Jul 18, 2014 in App42 Cloud API-BaaS by huffman (17 points)
reopened Jul 23, 2014 by huffman
Never mind. I found the answers.
You have to use Custom Code in this case and get it verified through REST call. I hope this is aligned with your solution.
I noticed that you have an example that uses PHP custom code. Is it possible for me to use C# service-side custom code instead of PHP?
You can write custom code using Java. Here is the link to get started http://api.shephertz.com/tutorial/Server-Side-Custom-Code/?index=customcode-wrd
1. I have Java 1.8 installed on my iMac.
2. I installed Eclipse and Eclipse has automatically found the installed Java.
3. I downloaded the custom code example from:
     https://github.com/shephertz/App42_CustomCode_Sample/archive/master.zip

4. I import the project into Eclipse.

5. Besides getting a bunch of little red x icons next to many of the line numbers of MyCustomCode.java, I get two errors:

Error 1:
The project cannot be built until build path errors are resolved App42CustomCodeSample        Unknown    Java Problem

Error 2:
Unbound classpath container: 'JRE System Library [jdk1.8.0_05]' in project 'App42CustomCodeSample'    App42CustomCodeSample        Build path    Build Path Problem

I am new to Java and Eclipse so I have no idea what is going on. I googled this and found various posts of how to make sure Eclipse is pointing to Java on my Mac (these didn't help), I also found out about the . class path file and changed that to use jdk1.8.0 instead of jdk1.6.0 which is not on my Mac (this didn't help either):

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.8.0_05"/>

I'm lost.
Please disregard the above as I solved all my problems and was able to deploy. The necessary steps were to:

1. In Eclipse Project Properties delete the Java SE 6 or 7 (1.6.0) version of the JRE System Library and add the Mac default (on Mountain Lion) Java SE 8 (1.8.0) version of the JRE System Library.

That got rid of the errors in Eclipse.

2. Then I had trouble with 'ant deploy' giving me 'includeantruntime' and 'srcdir' undefined errors. This is because the default ant version (v1.8.2) used by Eclipse has problems with Java SE 8. I updated to ant 1.9.4 and pointed Eclipse to it by following this:

"Upgrading Ant on Mac OSX" http://wiki.eclipse.org/Ant/User_Guide

1 Answer

0 votes
Thanks for your deatil input, We will run this sample in stated environment and update the docs accordingly.
answered Jul 28, 2014 by ajay123 (899 points)
reshown Sep 22, 2014 by sushil
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...