0
我必須使用perl腳本才能與iOS上的App Purchase中的verifReceipt接口。 我也使用phoneGap 1.5.0使用perl腳本的Verif收據
1 /當我嘗試使用外部url不起作用。 2 /我嘗試在phonegap html頁面和itunes之間使用perl腳本接口。 我不明白如何發送數據。我試試這個:
$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);
我一直這個錯誤:21002顯示java.lang.NullPointerException 我不明白這是怎麼可能用perl腳本發送數據。
我很困惑你的問題。你使用PhoneGap來打你的服務器並運行Perl腳本嗎?我相信你的第一個問題涉及到在PhoneGap中打外部URL。如果它不適合您,請查看白名單上的文檔:http://docs.phonegap.com/en/2.1.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide –
白名單不適用於phonegap 1.5。 0,我添加iTunes網址,但沒有。我必須使用這個版本。 – Ben
我必須在phonegap頁面和itunes之間使用cgi腳本。 – Ben