使用Python的服务器 - 客户端推送通知(Server-Client push notification with Python)
我正在构建一个客户端应用程序,它连接到服务器并等待来自服务器的信号做某事(想想聊天应用程序)。 例如:用户1具有客户端1和2,用户2具有客户端3,服务器将消息发送到频道“用户1”,并且仅客户端1和2将具有该消息。
我知道Websocket和Long-polling,但找不到自托管且易于测试的服务器。 最初我想在潜水之前先做一个概念验证。
Nginx推送流似乎符合我的需要,我可以创建一个通道,并通知所有客户端连接到该通道,看起来足够好用,但我找不到任何Python客户端实现
AutoBahn和其他一些Python服务器似乎只创建一个频道和广播。
有人可以给我一个正确的方向。
I'm building an client application, which connect to a server and wait for signal from server to do something (think about chat app). For example: user 1 has client 1 and 2, user 2 has client 3, the server would send the message to the channel "user 1" and only client 1 and 2 will have the message.
I know about Websocket and Long-polling, but can't find a server which is self-hosted and easy to test. Initially I want to make a proof-of-concept first before dive in later.
Nginx push stream seems to fit my need, I can create a channel, and notify all client connect to that channel, seem good enough to use, but I can't find any Python client implement
AutoBahn and some other Python server seem only create one channel and broadcast.
Can someone give me a correct direction.
原文:https://stackoverflow.com/questions/13286855
最满意答案
我看到有一个api。 echeck.net使用ACH网络并贷记/借记银行账户。
是否可以通过CIM API将银行信息存储在authorize.net服务器中,并在网站需要通过脚本从消费者那里收钱时使用它们? 并通过脚本可以从网站银行帐户贷记用户银行帐户?
CIM可以与eChecks一起使用,并且可以满足您的需求。 有关
createCustomerProfileRequest
API调用的详细信息,请参阅CIM手册的第9页。I saw that there is an api for that. echeck.net which uses ACH network and credit/debits a bank account.
Is it possible to store the bank info in authorize.net server through CIM API, and use them whenever website needs to collect money from consumer, through a script? and through script is it possible to credit the users bank account from website bank account?
CIM does work with eChecks and should do what you need. See page 9 of the CIM manual for details of the
createCustomerProfileRequest
API call.
相关问答
更多-
PayPal ACH转账?(PayPal ACH transfer?)[2023-01-22]
如果您使用PayPal作为处理器,则不提供直接ACH。 PayFlow Gateway确实有它的参数,但只有当你使用其他公司作为你的处理器并且他们提供它时。 PayPal等同于ACH是实际的PayPal付款,其中该人选择其银行账户作为资金来源。 至于您询问的凭据,PayFlow不像REST API那样使用密钥。 相反,它使用您用于登录manager.paypal.com帐户的相同凭据。 然后,您可以根据需要在帐户中为API访问创建单独的用户,并在您的通话中使用这些用户。 因此,PayFlow请求中的凭据实际 ... -
验证authorize.net中的信用卡而不指定金额(validate the credit card in authorize.net without specifying the amount)[2023-01-12]
您无法验证信用卡在没有处理交易的情况下是合法的。 您可以验证卡号的格式是否有效,并且卡未过期,但如果卡是真实的或活动的,则不能。 要验证信用卡有效且不收费,您需要根据处理器的要求为$ 0.00或$ 0.01执行AUTH_ONLY。 如果它被批准,并且金额为0.01美元,那么您应该使该交易无效。 You can't validate a credit card is legitimate without processing a transaction. You can validate the format ... -
运行时ACH验证(ACH validation in run time)[2022-04-14]
通过Authorize.Net无法实时验证银行账户。 ACH的工作方式与信用卡不同,这是其中的一个局限性(优势在于接受ACH支付的成本较低)。 格子呢提供帐户验证,通过API返回即时结果。 然而, 格子不是免费的 。 如果您提供服务或产品并接受ACH付款,并且不希望由于核实该等帐户有效或支付费用而等待风险,那么您应推迟允许访问该服务或运送您的商品,直至付款清算。 否则,像格拉德这样的服务就是你正在寻找的。 There is no way to get real time verification of a ... -
我不得不联系PayPal在我的沙盒帐户上添加ACH功能。 I had to contact PayPal to add the ACH feature on my sandbox account.
-
之前的一个名为API For Direct Deposit(ACH,EFT,Whatever)的问题与paymentgateway的API (pdf)有关。 他们拥有的API似乎是基于消息的,因此他们提供的Java示例 (zip)更多的是关于设置安全的https连接来传输消息。 API文档似乎表明它们支持信用。 免责声明:我没有使用过这个API或支付网关,但我想我会试着让球滚动...... A previous question titled API For Direct Deposit (ACH, EFT ...
-
我看到有一个api。 echeck.net使用ACH网络并贷记/借记银行账户。 是否可以通过CIM API将银行信息存储在authorize.net服务器中,并在网站需要通过脚本从消费者那里收钱时使用它们? 并通过脚本可以从网站银行帐户贷记用户银行帐户? CIM可以与eChecks一起使用,并且可以满足您的需求。 有关createCustomerProfileRequest API调用的详细信息,请参阅CIM手册的第9页。 I saw that there is an api for that. echec ...
-
PayPal PHP API,信用卡和借记卡得到的处理方式相同吗?(PayPal PHP API, credit card and debit card get processed the same?)[2022-01-16]
只要处理器支持卡的类型(Visa,MasterCard,Amex等),无论与卡相关的资金来源如何,都将处理交易。 借记卡,信用卡和预付款描述了附在卡上的资金类型,但不会改变商家处理卡的方式。 As long as the type of card (Visa, MasterCard, Amex, etc..) is supported by the processor, the transaction will be processed regardless of the fund source assoc ... -
可以使用Yodlee API检索任何信用卡上的交易吗?(Can the Yodlee API be used to retrieve the transactions on any credit card?)[2024-04-09]
我为Yodlee工作。 很抱歉听到你很难抓住我们。 要回答您的问题,是的,用户必须明确授权任何利用Yodlee API的应用程序,并明确地为该应用程序添加对其财务帐户的访问权限。 最好,格雷斯 I work for Yodlee. Sorry to hear you're having a hard time getting a hold of us. To answer your question, yes the user has to explicitly authorize any applicat ... -
QB桌面的ACH付款。 我们可以使用哪些API? 使用QuickBooks Payments API 。 这是您唯一的选择 - 它是唯一支持ACH的API Intuit。 它会做信用卡以及ACH。 https://developer.intuit.com/docs/api/payments 请注意,这些QB Desktop客户端使用“连接票证”进行身份验证。 他们不再使用连接票,他们将使用OAuth。 那么有没有办法将此API与QB DESKTOP结合使用? 是。 如果是这样,客户(具有Intuit商家帐户 ...
-
信用卡定期付款(Recurring Payment For Credit Cards)[2022-03-19]
Visa和MasterCard不再允许1美元的费用 。 您可以执行$ 0授权,因此如果您的处理器允许您可能能够执行原始计划。 某些支付网关提供商(如Authorize.Net)提供的服务允许您随时创建支付配置文件并对其收取任何金额。 他们的服务称为客户信息管理器 。 您应该看看您的提供商是否提供类似的服务。 $1 charges are no longer allowed by Visa and MasterCard. You can do $0 authorizations so if your proc ...