1

I'm integrating Dwolla into my website/app. I want to pay users from my bank account programatically for writing content on my site.

If I understand correctly, if users give me their phone number or email address, I can use the send() method and they will be able to complete the process with Dwolla.

My question is: do I need to validate the phone number users give me? Or will Dwolla do that? What format does it need to be in when I send it to Dwolla?

Also, will they be getting a text message on their phone with a link to register/log in to Dwolla? Just making sure. It'd be nice to see a walkthrough of the user experience somehow both from an email and a phone number.

Thanks!

4

1 回答 1

1

好问题!

电话号码

电话号码应以 10 位数字的字符串形式提供。

8187771234

当您提供无效的电话号码(由于格式无效、不存在或无法访问)时,将发生以下情况:

Request: 

{
  ...
  "destinationId": "0000000000",
  "destinationType": "Phone"
}

Response:

{
    "Success": false,
    "Message": "Unexpected exception",
    "Response": null
}

如您所见,请求将失败并Success标记为false,并且不会发送任何资金。这里可能突出的是当前的失败消息非常无用——这是我们要修复的待办事项清单。修复后,我们会将新的错误消息添加到文档页面上的错误代码表中。

由于我不知道错误代码的精细程度(我们可能会返回"Invalid phone number."),因此如果您希望捕获特定错误(例如无效区号或 14 位数字),您可能需要自行处理验证.

用户体验

收款人将通过短信或电子邮件收到注册 Dwolla 帐户的邀请,以便领取他们的资金。以下是两者的示例:

短信

“您收到了 Gordon Zheng 的钱!在 dwolla.com/phone 上索赔。您的代码:99999”

电子邮件在此处输入图像描述

一旦用户完成创建和验证他们的帐户,资金将立即可用。用户创建帐户时使用与他们收到付款时完全相同的电话号码或电子邮件,这一点很重要。

于 2013-12-16T02:26:07.013 回答