使用ngcart angularjs和php在线支付

时间:2017-03-23 13:27:57

标签: php angularjs

我正在使用ngcart

http://ngcart.snapjay.com/docs

建立我的购物车。但我不知道如何支付费用。点击结账时,如何通过php代码获取数据库中的项目和人员的信息。这是我的表格人员输入信息。

    <form action="" method="POST">
        <div class="form-group">                
                    <label for="">Name</label>
                    <input class="form-control" type="text" name="name" ng-model="name" required>
                    </div>
                        <div class="form-group">                
                    <label for="">Email</label>
                    <input class="form-control" type="email" name="email" ng-model="email" required>
                    </div>  
                    <div class="form-group">                
                    <label for="">Telephone</label>
                    <input class="form-control" type="tel" name="tel" ng-model="tel" required>
                    </div>
               <button type="submit">Checkout</button>
    </form>

1 个答案:

答案 0 :(得分:1)

您拥有ngCart定义的函数来获取产品详细信息。我更新了小提琴here。要发布值,我们可以使用ngCart函数ngCart.getItems()来获取购物车详细信息。请参阅文档了解功能。

相关问题