I have to use a perl Script to interface to verifReceipt for in App Purchase on iOS.
I use too phoneGap 1.5.0
1/ When I try to use external url it does not work.
2/ I try to use a perl script interface between phonegap html page and itunes.
I do not understand how to send data. I try this :
$val contains JSON object with receiptvalue and password, receiving from phonegap.
my %transformfields = (
"receipt-data" => $val,
);
my $ua = LWP::UserAgent->new;
my $req = POST($urlsend,
Content_Type => 'application/json ; charset=UTF-8',
Content => \%transformfields,
#Content => $val,
);
my $res = $ua->request($req);
I have always this error : 21002 java.lang.NullPointerException
I do not understand how is this possible to send data with perl script.
I have problems with json encode and understanding how I receive data from phonegap plugins.
For help :
Phongap plugins returns transactionReceipt in Base64.
Do not encode password in Base64 too.