[英]mrt:accounts-stripe - meteor stripe login
我正在使用mrt / accounts-stripe程序包連接用戶的Stripe
帳戶,以創建到其帳戶的轉帳(付款)。
到目前為止,基本上我所做的就是讓用戶登錄或在我的平台上創建帳戶(即使它不是Stripe
帳戶),並允許他們通過Stripe
登錄以連接帳戶,並讓他們從我的服務中收款。
問題是,一旦調用了程序包的Meteor.loginWithStripe
函數,它將執行注銷和使用Stripe
電子郵件登錄,我不希望出現這種情況,因為它必須保留用戶的信息並連接帳戶而不是創建帳戶一個新的。
我也在用這些包
accounts-ui
accounts-oauth
Meteor.loginWithStripe({
stripe_landing: 'login',
scope : "read_write"
}, function (err) {
if (err){
console.log('stripe error : ' + err);
} else {
console.log('NO ERROR ON LOGIN');
}
});
ServiceConfiguration.configurations.upsert({ service: 'stripe' },{
$set: {
service: 'stripe',
appId: stripeAppId ,
secret: stripeSecret,
scope: 'read_write',
stripe_landing : "login"
}
});
如何保留登錄用戶並連接Stripe帳戶,而不是注銷並使用Stripe帳戶用戶信息登錄?
解決方案只是將帳戶合並包添加到流星項目中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.