【发布时间】:2017-02-05 15:54:12
【问题描述】:
我正在考虑使用 SecurionPay 进行在线支付。但是,我发现设置金额和货币的非常简单的任务存在问题。它似乎一直在默认。
我正在尝试通过 JavaScript 和 ASP.NET 项目来实现系统。
https://securionpay.com/docs/checkout#custom-integration
在上面的链接中,它准确地显示了如何调用结帐系统(下面的代码完全复制和粘贴):
<script src = "https://securionpay.com/checkout.js"> </script>
<script src="https:/ / ajax.googleapis.com / ajax / libs / jquery / 3.1.0 / jquery.min.js "></script>
<script type="
text / javascript ">
$(function () {
SecurionpayCheckout.key = 'pk_test_ZVhCjD2Gz7OF222L00bxIdlD';
SecurionpayCheckout.success = function (result) {
// handle successful payment (e.g. send payment data to your server)
};
SecurionpayCheckout.error = function (errorMessage) {
// handle integration errors (e.g. send error notification to your server)
};
$('#payment-button').click(function () {
SecurionpayCheckout.open({
checkoutRequest: 'NTQ1NDAwYTczZTljMjUwYzNhZjA0NTdkOTFjNThiOTY5YzIxY2ViMjBhMDRmOTYwNjg1MDI3OWQ2OTZlN2VjMnx7ImNoYXJnZSI6eyJhbW91bnQiOjQ5OSwiY3VycmVuY3kiOiJFVVIifX0=',
name: 'SecurionPay',
description: 'Checkout example'
});
});
});
</script>
<button id="payment-button">Payment button</button>
但是,我无法更改费用或货币?欢迎提供任何帮助或任何将 SecurionPay 系统集成到 Web 表单项目的示例。
【问题讨论】:
标签: javascript c# asp.net payment-gateway payment