|
@@ -33,9 +33,14 @@ namespace MySystem
|
|
AlipayMerchantIndirectAuthorderCreateRequest request = new AlipayMerchantIndirectAuthorderCreateRequest();
|
|
AlipayMerchantIndirectAuthorderCreateRequest request = new AlipayMerchantIndirectAuthorderCreateRequest();
|
|
string out_biz_no = DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
|
|
string out_biz_no = DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
|
|
string identity_type = info.SubjectType;
|
|
string identity_type = info.SubjectType;
|
|
|
|
+ string merchant_type = "STORE";
|
|
if (identity_type == "SUBJECT_TYPE_ENTERPRISE") identity_type = "ENTERPRISE";
|
|
if (identity_type == "SUBJECT_TYPE_ENTERPRISE") identity_type = "ENTERPRISE";
|
|
if (identity_type == "SUBJECT_TYPE_INDIVIDUAL") identity_type = "IND_BIZ";
|
|
if (identity_type == "SUBJECT_TYPE_INDIVIDUAL") identity_type = "IND_BIZ";
|
|
- if (identity_type == "SUBJECT_TYPE_SMALL") identity_type = "MSE";
|
|
|
|
|
|
+ if (identity_type == "SUBJECT_TYPE_SMALL")
|
|
|
|
+ {
|
|
|
|
+ identity_type = "MSE";
|
|
|
|
+ merchant_type = "STALL";
|
|
|
|
+ }
|
|
string PeriodEnd = info.PeriodEnd.Value.ToString("yyyy-MM-dd");
|
|
string PeriodEnd = info.PeriodEnd.Value.ToString("yyyy-MM-dd");
|
|
if (PeriodEnd.Substring(0, 4) == "9999")
|
|
if (PeriodEnd.Substring(0, 4) == "9999")
|
|
{
|
|
{
|
|
@@ -99,7 +104,7 @@ namespace MySystem
|
|
province = CityNames[CityNames.Length - 1];
|
|
province = CityNames[CityNames.Length - 1];
|
|
}
|
|
}
|
|
BizContent += " \"support_credentials\":{" +
|
|
BizContent += " \"support_credentials\":{" +
|
|
- " \"merchant_type\":\"STORE\"," +
|
|
|
|
|
|
+ " \"merchant_type\":\"" + merchant_type + "\"," +
|
|
" \"store_name\":\"" + info.BizStoreName + "\"," +
|
|
" \"store_name\":\"" + info.BizStoreName + "\"," +
|
|
" \"province_code\":\"" + province_code + "\"," +
|
|
" \"province_code\":\"" + province_code + "\"," +
|
|
" \"province\":\"" + province + "\"," +
|
|
" \"province\":\"" + province + "\"," +
|