[英]Issue with Payment method selection when I add Braintree Drop-in UI in Spree Store
[英]When does braintree drop in ui create payment method nonce?
我正在嘗試將Braintree Drop In UI集成到我正在處理的流星應用程序中。 我已經獲得服務器來為客戶端創建令牌以創建放置容器。 但是我無法創建付款方式隨機數。 我正在為創建的現時使用回調,但是在我提交時它不會觸發。
這是容器的代碼。
braintree.setup(response, 'dropin', {
container: 'dropin-container',
onPaymentMethodReceived: function(data) {
Meteor.call('createCustomer', data.nonce);
}
});
這是提交表單的流星事件。
Template.reservePage.events({
'submit #paymentForm': function(event) {
event.preventDefault();
FlowRouter.go('/dashboard');
console.log("submitted");
}
});
是否應該有一種方法來觸發觸發樹來創建隨機數?
(代表OP張貼) 。
問題在於,下拉列表以另一種形式包裝在原來的表單中。 因此,當我提交時,它並沒有注冊提交的表單。 確保它只在一種形式內!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.