AngularJS:保存Paymill生成的令牌

loading...


1

我've encountered the following problem: I want to integrate the paymill button into AngularJS, so I'已经在他们的页面上使用了脚本来生成按钮,但问题是如何在不刷新页面的情况下从中获取令牌,因为它会触发404错误 . 我已经尝试在我的控制器中创建 $scope.getToken() 并放置 ng-submit="getToken(fields)" 但它不起作用 .

<form action="request.php" method="post">
                    <script
                            src="https://button.paymill.com/v1/"
                            id="button"
                            data-label="Pay with CreditCard"
                            data-title="Buy our product"
                            data-description="It's a great product"
                            data-submit-button="Pay 2.50 EUR"
                            data-amount="250"
                            data-currency="EUR"
                            data-public-key="491744964728486dfd5b891acfe57dbd"
                            data-email="customer@test.com"
                            data-email-field="true"
                            data-lang="de-DE"
                            data-width="180"
                            data-height="45"
                            data-inline="true"
                    >
                    </script>
                    </form>

loading...

0回答

No Data

评论

暂时没有评论!