Phone Number, Validation, and Dwolla - dwolla

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!

Great question!
Phone numbers
Phone numbers should be provided as a string of 10 digits.
8187771234
When you supply a phone number that is invalid (due to an invalid format, it not existing, or being unreachable) this will happen:
Request:
{
...
"destinationId": "0000000000",
"destinationType": "Phone"
}
Response:
{
"Success": false,
"Message": "Unexpected exception",
"Response": null
}
As you can see, the request will fail with Success flagged to false and no funds will be sent. What probably stands out here is that the current failure message is quite unhelpful -- this is on our to do list of things to be fixed. When it's fixed, we'll add the new error messages to the Error Codes table on the documentation page.
Since I don't know how granular the error codes will be (we may just return "Invalid phone number."), you may want to handle the validation on your end if you are looking to catch specific errors such as an invalid area code or a number with 14 digits.
User Experience
The recipient will receive, via text message or email, an invitation to register a Dwolla account in order to claim their funds. Here's are examples of both:
SMS:
"You've received money from Gordon Zheng! Claim at dwolla.com/phone. Your code: 99999"
Email:
As soon as the user is finished creating and verifying their account, the funds will immediately be available. It's important that the user creates the account with the exact same phone number or email they received the payment with.

Related

AWS amplify (cognito) - change phone number during signup and verification

I have the "happy path" of signing up a user implemented using Flutter & AWS Amplify. I have made the user to verify their account using their phone numbers so that the verification code is sent to the phone and the signup process is completed.
I realised that, during testing, one could easily make a mistake. So I want the user to be able to go back and change the phone number so that the verification code is sent to the correct one. However, using Amplify, you cannot change the details if the user is not signed in, and the user cannot be signed in unless their account is "confirmed". Of course, their account cannot be "confirmed" if they don't receive the verification code and with the wrong phone number due to their mistake, they will never receive the verification code...
Has anyone faced the same problem and could help me how to solve this please?
I read that you could use Lambda functions to "auto-confirm" the account without any verification which means they can sign in, which would allow me to change their phone number if they have entered a wrong phone number. But I am not sure if this is the easiest way to do it

Is there an API endpoint to see if a phone number is "in service" with our account

I'm new to the Twilio API. I'd like to verify whether a set of phone numbers is "in service" with our account. These are phone numbers like PN0c8XXXX...... and is there a way to send numbers in bulk to be sure that they are associated with our account and in working order? I see a call like this (would Sid be our PN0c8... number?):
GET https://verify.twilio.com/v2/Services/{Sid}
but not clear if this is what we want or if it supports batch mode. Any ideas?
I'm not entirely sure what you mean by verifying a set of phone numbers in "in service" with your account.
However, you can check the details of a phone number in your account using the Incoming Phone Numbers API. If you have a phone number SID, the ID that starts with PN, you can fetch an individual phone number resource by making a request to:
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{PhoneNumberSid}.json
There isn't an API request that allows you to send multiple SIDs, but you can list all your incoming phone numbers and then check against that list in your own code.
As an aside, the URL you asked about in the question is the Twilio Verify API. Verify allows you to verify user's phone numbers over SMS or voice, and can also perform verification via TOTP, push notification or emails. It's meant for verification or two factor authentication.

OAuth sign in displays unclear message when no account associated

We are having many users signing in (oauth) reporting issues where they email is not valid. Problem is that they do not have an existing account, but message displayed is very confusing.
It should do the following:
Instead of "The email cannot be recognized by Uber", it should have a clearer message that there is no account associated with their email.
Automatically redirect to sign up
Thanks for the improvement tip - we may consider it as a future request. However, this question is not relevant to SO - please use in the future Uber google groups (https://groups.google.com/forum/#!forum/uber-developers) or send post's on Twitter at #UberDevelopers or #Uber_Support.

Paypal recuring get no response from test account number

I am using these credit card test number for test. but got null response form some of these number
test paypal credit number.
for example visa : 4012888888881881 i got null response form this number. not even i got any error. is all the number are valid or all are changed .
I found it is randomly . so if i will got no response with no error it will create recurring profile or not.
I checked your account, and I do show that requests are reaching PayPal and PayPal is sending back an API response for every request. Most were successful, some returned an API error but none the less everyone did generate a successful response back to your system. Make sure that the code that you are using is correct, and that it is set up to read the response that is being sent back. You can find some sample code that may help you here.

Facebook request dialog with custom message notification

I have a very simple use case. My app lets users send invitations to his friends, say for a birthday party. Friends then accept the invitation(and app).
I am using RequestDialog to send notifications to multiple users. Notification was sent successfully but the message is confusing to the user as it says
"User A Invited you to try APPNAME. Try Now".
Is there a way to customize this message? It should something like
"User A Invited you to his birthday party using APPNAME. Accept it now"
I believe I cannot use app generated requests as invitees hasn't authorized the app yet.
Any other ideas or workarounds to send notification, message with a link so users can click on it and accept the app and thus accept the birthday invitation?
You should use message parameter of Requests Dialog
message - The Request string the receiving user will see. It appears as a question posed by the sending user. The maximum length is 255 characters. The message value is not displayed in Notifications and can only be viewed on the Apps and Games Dashboard. Invites (requests where the recipient has not installed the app) do not display this value.
I memory serves, Facebook used to let you customize (many years ago), but, probably due to abuse, they no longer allow you to customize what the invitee sees. It's all standard. However, when the user comes to your app to authenticate, you can customize the Enhanced Auth dialog to your content.
I don't think there's a way to customize invite messages, and interestingly, to Usman Ashraf's point, as far as I can tell BranchOut can't do this anymore either (or at least I can't replicate it with their app). If anybody else can replicate it, let me know.
What you might want to do would be to allow
new_style_message: true,
Under your
FB.ui({
method: 'apprequests',
new_style_message: true,
message: "is bringing you to the UPicnic !",
display: "iframe"
},somefunction);
What this does is when the notification is sent to the user(s) , it will show up as the message instead. Not much customization but that's the least I can find.