使用Angular的iframe

问题描述

我正试图使用​​ifrmae来保存卡。 我已经使用以下事件成功创建了卡令牌

Spreedly.on('paymentMethod',function (token,pmData) {
    // Set the token in the hidden form field
    var tokenField = document.getElementById('payment_method_token');
    tokenField.setAttribute('value',token);
    console.log("this.token",token);
    
  });

从严重事件中生成卡令牌后,我想将卡令牌保存在服务器上,但是我无法在Spreedly.on('paymentMethod')事件内调用我的API,同样,我无法在{{1 }}事件。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)