2013-04-11 57 views
1

使用非现场测试帐户(Dwolla Reflector),我能够获得status=Completed指示的成功交易。在测试模式下,我还得到了所有预期的结果,包括空的transactionid,有效签名,结帐ID等。但是,我的帐户中根本没有付款活动。Dwolla反射器非现场测试帐户和付款活动

反射器的文档没有指定测试模式的使用情况。我的假设是测试帐户将处于测试模式,但也可以根据文档假设不应使用测试模式。

任何人都可以澄清正确使用Dwolla反射器实际查看付款活动的条件吗?如果可能的话,我正在寻找所有必要的条件,例如,如果必须设置和验证使用反射器并查看Dwolla dashboard中的付款活动的有效资金来源。 (或者可能指向我的文档解决这个问题?)

回答

-1
After working with other payment networks it is hard not to make assumptions about Dwolla. 
    The TestMode=LIVE or TestMode=TEST. One assumption being that a test account would allow you to 
    complete the entire test cycle. However this is not the case with Dwolla. Here is what I found 
    that addresses the exact requirements to use the Dwalla reflector account. 

    1. Developer Account Setup 
    2. Account must be 100% active and have valid funds 
    3. TestMode=LIVE 
    4. Amounts less than 10.00 (if you want to avoid fees) 

    The Dwolla reflector account has nothing to do with TestMode and trying to set TestMode=TEST output unexpected 
    results. (compared to other payment networks i've worked with). 

    The cause, in my case was the funds had not yet cleared (account not 100%) and I thought the reflector account was a test account 
    because the Dwolla documentation at https://developers.dwolla.com/dev/pages/testing says it is a test account 
    but makes no mention of the configuration setting of TestMode=Live. A test account you would think would require 
    test mode/environment. 
+0

因此,从开始到结束,逐步完成一个完整的代码示例(您可以轻松适应python或您正在使用的任何内容),并且包含指向所有错误条件和含义的文档链接不足以获得“正确”答案?艰难的人群 – Russ 2013-04-18 14:00:58

+0

您的回复帮助我思考了一个可能的答案,这样很好,但这不是我要求的。我要求说明在使用Dwolla反射帐户时可以正确允许交易显示在Dwolla仪表板中的条件。我发布的条件没有在任何Dwolla文档中列出,所以我将它们发布给其他人,这些人可能错误地认为反射器帐户是测试帐户,而实际上它是Dwolla生产(LIVE)黑客并且您不能使用TestMode = TEST它不会没有工作。 – SAY 2013-04-18 18:47:16

1

我刚刚针对Dwolla API和反射器服务编码。假设你有自己的个人dwolla帐户,你可以generate a token to represent you here。由于我不确定你使用的是什么语言,因此我会假定php。很可能你现在有一个代码片段是这样的:

$Dwolla = new DwollaRestClient(); 
$Dwolla->setToken("<your personal generated token from above link>"); 
$trans_id = $Dwolla->send("<Your Personal 4 digit pin>", "812-713-9234", 0.01, "Dwolla", "My sample transaction detail notes"); 

if(!$trans_id) { 
    echo "Error: {$Dwolla->getError()} \n"; 
} else { 
    echo "Sent transaction ID: {$trans_id} \n"; 
} 

请注意使用您需要更换与适当的描述值字形包围了2个值此代码示例。注意:您发送给“812-713-9234”的帐户是dwolla的反射器服务。

使用此代码示例,您将从自己的帐户发送一分钱到反射器服务。大约10分钟后,便士会返回到您的帐户。您每次成功时获得一个事务ID。如果不成功,您将收到错误代码。

如果有帮助,我第一次得到一个关于无效SSN的错误代码。事实证明,我没有登录我的帐户一段时间,我需要确认我的SSN在dwolla.com,但最初我认为这是一些错误,因为反射器服务没有适当设置(因为这是一个假的服务它没有与之相关的有效SSN)。

我的理解是反射器服务是纯粹测试您的事情的结局 - 而不是验证反射器帐户内的东西看起来像收款人视角的交易行项目详细信息。如果您查看dwolla API中的send()函数,它会指定您可以传递的所有变量(这会告诉您事务将存储的数据级别和详细信息)。

至于你可以期望特定的错误代码,它们与这里的含义下的错误代码部分记录(扩大如有必要):https://developers.dwolla.com/dev/docs/transactions/send

+0

谢谢。我正在使用Python,但你的PHP例子是好的。你所说的话有点证实了我的想法。 Dwolla.set_mode(TEST)不会根据文档返回事务ID,所以必须确保反射器必须与Dwolla.set_mode(LIVE)一起使用。我会尽力确认并回复。 – SAY 2013-04-16 03:07:41

+0

很抱歉忘了添加链接... [链接]链接到transactoinid为空(https://developers.dwolla.com/dev/pages/button#redirect) – SAY 2013-04-16 03:24:13