【发布时间】:2018-09-18 05:36:35
【问题描述】:
我目前有一个环回项目设置,我正在尝试从条带接收 webhook。
我当前的远程方法如下所示:-
Stripeconnect.stripeWebhook = function(msg, cb) {
cb(null, msg);
};
Stripeconnect.remoteMethod(
'stripeWebhook', {
description: 'This will insert the description',
http: {
path: '/stripeWebhook',
verb: 'get'
},
accepts:
{arg: 'msg', type: 'any'},
returns: {
arg: 'status',
type: 'any'
}
}
)
但我从 Stripe 收到的回复是:-
undefined [Function: callback]
我无法在网上找到任何有关 Loopback 和 Stripe webhook 的文档。
有没有人可以帮忙,或者给我指出正确的方向?
我已将 Stripe 设置为指向 API 的此端点。
提前致谢。如果您需要更多信息,请告诉我。
【问题讨论】:
标签: javascript api stripe-payments loopbackjs strongloop