我正在开发一个电子商务网站,这是使用贝宝作为其支付网关。所有我想做的是运行一些代码之前,用户前往贝宝支付他们的订单,但我不知道如何做。
用户应单击submit按钮,进行更改(在本例中为订单状态),然后将用户重定向到支付网关。例如:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult GoToPaypal(FormCollection collection)
{
//change order status
//send user to paypal where they pay for their order
}
所以我的问题是,
从这个中,我知道在PayPal中有一个“持有”特性。我想要构建的场景是:
用户可以从下列方案中选择一项:
Plan A --> Pay $5 ~ $500 to PayPal account A
Plan B --> Pay $10 ~ $500 to PayPal account B
Plan C --> Pay $5 ~ $500 to PayPal account A & $10 ~ $500 to PayPal account B
要求:
在未来某一天到来之前,比如2016年1月1日,付款将被搁置。
成功记录每个选项的持有量。
然而,PayPa