public static BCInternationlBill handleInternationalPayResult(string respString, BCInternationlBill bill)
{
JsonData responseData = JsonMapper.ToObject(respString);
if (responseData["result_code"].ToString() == "0")
{
if (bill.channel == "PAYPAL_PAYPAL")
{
bill.url = responseData["url"].ToString();
}
if (bill.channel == "PAYPAL_CREDITCARD")
{
bill.creditCardId = responseData["credit_card_id"].ToString();
}
}
else
{
var ex = new BCException(responseData["err_detail"].ToString());
throw ex;
}
return bill;
}