我正在尝试整合2checkout.com API
. 当我跳过header
功能时,它工作正常。目前它显示与输出相同的 php 代码
if ($charge['response']['responseCode'] == 'APPROVED') {
//echo "Thanks for your Order!";
header("Location: /servlet/Payment?option=1&msg=0");
exit(0);
}else{
$replyError = $charge['response']['responseCode'];
header("Location: /servlet/Payment?option=2&msg=".$replyError);
exit(0);
//echo '<pre>';print_r($charge['response']['responseCode']);echo'</pre>';
}
} catch (Twocheckout_Error $e) {echo $e->getMessage();}