我已经为我的客户集成了 WorldPay JSON API。
他们需要futurepayID -这与返回的可重用令牌相同还是futurepayID 不同?
我试过浏览他们的文档,但这有点令人困惑。作为参考,我已将 reusable 设置为 true ,其他一切正常:
<script type='text/javascript'>
window.onload = function() {
Worldpay.useTemplateForm({
'clientKey':"xxx",
'form':'paymentForm',
'saveButton':false,
'paymentSection':'paymentSection',
'display':'inline',
'reusable':true,
'callback': function(obj) {
if (obj && obj.token) {
var _el = document.createElement('input');
_el.value = obj.token;
_el.type = 'hidden';
_el.name = 'token';
document.getElementById('paymentForm').appendChild(_el);
document.getElementById('paymentForm').submit();
}
}
});
}
</script>