Skip to content

Instantly share code, notes, and snippets.

View donma's full-sized avatar
:octocat:
I wanna play a game.

Donma Hsu donma

:octocat:
I wanna play a game.
View GitHub Profile
var oenHandlr = new OENCashHandler(MerchantId, Token);
var res = oenHandlr.PayByUserToken(44, "token_order_" + DateTime.Now.ToString("mmddHHmmss"), usertoken, "userid_donma", "donma", "筆記測試");
public class PayByUserTokenData
{
public string id { get; set; }
public string authCode { get; set; }
}
public class PayByUserTokenResponse
{
public class CreditCardExchangeTokenData
{
public string token { get; set; }
}
public class CreditCardExchangeTokenResponse
{
var oenHandlr = new OENCashHandler(MerchantId, Token);
var res = oenHandlr.PayByCreditCard("t" + DateTime.Now.ToString("mmddHHmmss"), 99
, "4242424242424242", "1026", "123", "Donma Hsu",
"P001", "測試商品1", 1, "個");
Result = JsonConvert.SerializeObject(res);
public class PayByCreditCardData
{
public string id { get; set; }
public string transactionId { get; set; }
public string authCode { get; set; }
}
public class PayByCreditCardResponse
<p>
<!-- 控制 select option Jsavscript 控制 -->
@{
var selectCity2 = "高雄";
var cities2 = new string[] { "台北", "新北", "台中", "高雄", "嘉義", "花蓮", "雲林" };
}
<select class="form-control" id="selCity2">
<p>
<!-- 控制 select option HTML 控制 -->
@{
var selectCity = "台中";
var cities = new string[] { "台北", "新北", "台中", "高雄", "嘉義", "花蓮", "雲林" };
}
<select class="form-control">
<p>
<!-- 控制 預設勾選 checkbox -->
<input type="checkbox" checked="@(true)" />測試勾選打勾
</p>
<!-- after render -->
<p>
<!-- 控制 CSS display:none-->
<div style="@(false?"":"display:none")">控制消失 DIV</div>
</p>
<!-- after render -->
<p>
<button disabled="@(true)">禁用按鈕</button>
</p>
<p>
<button disabled="@(false)">非禁用按鈕</button>
</p>