This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var oenHandlr = new OENCashHandler(MerchantId, Token); | |
var res = oenHandlr.PayByUserToken(44, "token_order_" + DateTime.Now.ToString("mmddHHmmss"), usertoken, "userid_donma", "donma", "筆記測試"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PayByUserTokenData | |
{ | |
public string id { get; set; } | |
public string authCode { get; set; } | |
} | |
public class PayByUserTokenResponse | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CreditCardExchangeTokenData | |
{ | |
public string token { get; set; } | |
} | |
public class CreditCardExchangeTokenResponse | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PayByCreditCardData | |
{ | |
public string id { get; set; } | |
public string transactionId { get; set; } | |
public string authCode { get; set; } | |
} | |
public class PayByCreditCardResponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<!-- 控制 select option Jsavscript 控制 --> | |
@{ | |
var selectCity2 = "高雄"; | |
var cities2 = new string[] { "台北", "新北", "台中", "高雄", "嘉義", "花蓮", "雲林" }; | |
} | |
<select class="form-control" id="selCity2"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<!-- 控制 select option HTML 控制 --> | |
@{ | |
var selectCity = "台中"; | |
var cities = new string[] { "台北", "新北", "台中", "高雄", "嘉義", "花蓮", "雲林" }; | |
} | |
<select class="form-control"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<!-- 控制 預設勾選 checkbox --> | |
<input type="checkbox" checked="@(true)" />測試勾選打勾 | |
</p> | |
<!-- after render --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<!-- 控制 CSS display:none--> | |
<div style="@(false?"":"display:none")">控制消失 DIV</div> | |
</p> | |
<!-- after render --> |
NewerOlder