我正嘗試使用解析創建條帶客戶,但似乎無法從響應中獲取customer.id值。使用解析創建條帶客戶
var newCustomer;
Stripe.Customers.create(
card: request.params.cardToken,
email: request.params.email
//These values are a success but below is where I have an issue.
).then(function(customer){
newCustomer = customer.id;
//newCustomer never gets set to the id, it's always undefined.
}, function(error){
});
您使用的解析雲代碼鍵? – james075