查看完整版本 : stripe 網上付款

SunnyDay2017 2018-11-20 09:16 AM

stripe 網上付款

上網睇完都唔明,小弟用aspx 程式,希望有高人指點。web server 是家中電腦。

ycy101 2018-11-20 05:21 PM

*** 作者被禁止或刪除 內容自動屏蔽 ***

SunnyDay2017 2018-11-20 05:36 PM

[quote]原帖由 [i]ycy101[/i] 於 2018-11-20 05:21 PM 發表 [url=https://www.discuss.com.hk/redirect.php?goto=findpost&pid=490825315&ptid=27861404][img]https://www.discuss.com.hk/images/common/back.gif[/img][/url]
基本上, Stripe payment 最簡單既步驟。只有兩個.

1) 創建一次性Token用作付款
2) Backend 用 剛創解的token, call stripe payment api

集中睇官方兩個教學. 就做到個功能
[url]https://stripe.com/docs/quickstart[/url]
[url]https://stripe.com/docs/checkout[/url] ... [/quote]

thanks 其實我都是睇緊這個,今晚再試試la

SunnyDay2017 2018-11-20 09:52 PM

[quote]原帖由 [i]ycy101[/i] 於 2018-11-20 05:21 PM 發表 [url=https://computer.discuss.com.hk/redirect.php?goto=findpost&pid=490825315&ptid=27861404][img]https://computer.discuss.com.hk/images/common/back.gif[/img][/url]
基本上, Stripe payment 最簡單既步驟。只有兩個.

1) 創建一次性Token用作付款
2) Backend 用 剛創解的token, call stripe payment api

集中睇官方兩個教學. 就做到個功能
[url=https://stripe.com/docs/quickstart]https://stripe.com/docs/quickstart[/url]
[url=https://stripe.com/docs/checkout]https://stripe.com/docs/checkout[/url] ... [/quote]

In testing environment, I have created the token. The code is as follows:

var token = model.Token; // Using ASP.NET MVC


var options = new ChargeCreateOptions {
    Amount = 100,
    Currency = "HKD"
    Description = "Example charge",
    SourceTokenOrExistingSourceId = token,
};
var service = new ChargeService();
Charge charge = service.Create(options);

But I don't understand
1) What is  "Using ASP.NET MVC" ? I need to install library ?
2) How to use the token / charge ?

Thanks for your great help.
頁: [1]
查看完整版本: stripe 網上付款