婚禮禮金用Line Pay II (26)
第12 屆iT邦幫忙鐵人賽系列文章 (Day26) 以下是 Line 官方文件的流程,今天會依據這個圖的流程來實作 Line Pay 付款 https://pay.line.me/jp/developers/apis/onlineApis?locale=zh_TW Checkout 流程 官方API文件可以從這裡看到 Request Body 的 C# Class public class LinePayRequest { public int amount { get; set; } public string currency { get; set; } public string orderId { get; set; } public List<Package> packages { get; set; } public Options options { get; set; } public Redirecturls redirectUrls { get; set; } } public class Package { public string id { get; set; } public int amount { get; set; } public string name { get; set; } public List<Product> products { get; set; } } public class Product { public string id { get; set; } public string name { get; set; } public string imageUrl { get; set; } public int quantity { get; set; } public int price { get; set; } } public class Options { public Payment payment { get; set; } } public class Payment { public bool capture { get; set; } } public class Redirecturls { public string confirmUrl { get; set; } public string cancelUrl { get; set; } } 整個 Post 的 Body 可以這樣組成,channelId和channelSecret可以在前一篇申請sandbox時候取得...