Good service for checking usps addresses? - c#

Does anyone in the us know of a good service (api) that I can use on a web site to verify the usps address a customer would input? One of the other developers has the code in place but it checks a dvd that we receive in the mail every quarter. We would like to just check this over the web instead so it does not go out of date. We would also like it to format the address as well. If anyone has any good suggestions please let me know. This could obviously be a paid solution. Thanks!

The USPS has web services for this. Check out their Address Information API.
Make sure mailing addresses are correct. With each tool, up to five
lookups can be processed per request. Additional permission is
required to use these Ecommerce APIs.

This question is very specific to a company. You can use the USPS tracking webpage and you have to parse the content on that page or use an API that the USPS provides if there are any. This is specific to a company.

http://www.melissadata.com/address-verification/index.htm
Seems to be a very accurate service although I've never used their API, just the website.

Related

Working with PayPal HERE and PayPal API

I am trying to use the PayPal Here Sideloader (C# web application). I am getting unexpected results where the Application doesn't always return to my web application in Safari (iPad). Also, it opens a new tab every time. So I decided to use IPN to handle processing after the purchase.
But while using PayPal HERE, I noticed that check and cash transactions are not calling my IPN Url. I tried to search transactions using the REST API and I don't even see them. Credit card and Apple pay transactions work fine. So my question is two fold.
After speaking to someone at PayPal who might or might not know what they are talking about said something to the effect of, 'those transactions aren't supported'. I don't necessarily believe that because if I have the Invoice Id (INV2-XXXX-XXXX-XXXX-XXXX) I can use the REST API to get what I need. Was the person correct, or has anyone else done this before?
What if I have my custom Order Id (see image), how can I get the Invoice Id?
(I've looked at the Invoicing API (REST) and TransactionSearch (NVP) and neither of these return information about the transaction.
After feeling like I have searched the ENTIRE internet, I saw that the documentation for the iOS and Andriod SDK mentioned the URL for the PayPal Here API.
That url (for production) is https://www.paypal.com/webapps/hereapi/merchant/v1
I just happen to add '/invoices/' to it and got an authentication error. Once I was able to authenticate, I see that this returns a list of all 'invoices' processed in PayPal Here. You'll need to connect using OAuth2, but the list is what I needed to filter based on order ID.

Adding customer fields with the SalesForce Partner API

I am using the SalesForce Partner API, not the Enterprise API. I want to be able to programatically (C#) add a custom field to any object in SalesForce (as an External ID) so I can merge data from external systems into the SalesForce object. I know there is a way to do this with the MetaData API, but I've also seen a number of references that suggest it's possible through the Partner API, which would be far better because we don't need to spin up yet another API connection to achieve this.
There seems to be no information about this anywhere. I can't find anything on the SalesForce.com help website or anywhere else on the internet and although mentioned in other posts, it doesn't appear that anybody has posted information about how to do it, or not that I can find anyway.
Can anybody point me in the right direction? Some sample code or a link to an article somewhere describing how to do it?
Thanks very much.
Since you need to create a custom field - which is metadata - only Metadata API can help you.
I am not sure what you mean by "to spin up yet another API connection" - but you can use Metadata API in the same service IMHO. Just get the Metadata WSDL and consume it. All your other calls with the partner api remain the same.
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_calls_intro.htm
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_quickstart_java_sample.htm

Programmatically purchase from a website in C# or javascript

Hey guys, I'm trying to create a website that can help a user purchase items from other websites. What would be the best way to go about doing this?
I know most of the sites I'm using are sending their information using FORM:POST, but I'm having trouble finding the exact POST packet in fiddler (I'm assuming it's encrypted?), and know that a lot of the sites are using login credentials, so that complicates things a bit.
Is there any way I could use webkit or something to handle all the http stuff, and just pass javascript to fill in the forms? Or is there an even simpler way to create proper POST packets and use a WebRequest?
Thank you!
1) get permission
2) use their published API
If the sites do not have an API and allow you to use their server process, copy their forms to your site and use post. You can post from your server with credentials using for example CURL
Usually shopping cart and credit-card transaction use SSL and you have to login in the site. So I think it's not so simple to bridge with a javascript or a simple webrequest.
There's not a statndard-simple-way way to do this!
You're heading for a world of hurt.
First, you should check if what you're trying to do is legal. Does the web site allow "proxy orders"? Or are they forbidden by their EULA?
Second, you'll have to handle the user's confidential data (username, password, credit card number), and especially credit card numbers are calling for troubles.
Third, how are you planning to implement payment methods like PayPal? You're going to collect the user's PayPal credentials in order to make payments on their behalf? (See point number two if answer is yes.)
Fourth, since you have to fake HTTP requests, as soon as the web site changes a single field, your tool will break, how are you planning to handle this?
Or you're trying to automate only the first steps of the orders and not the payment?

Credit card payment method

I'm creating a online webshop using ASP .net and C#. The website is supposed to receive payment by master card, visa, paypal, and e-transfer. Any reference how can I do that, esp for master card and visa. Is it done via web service? Do i hv to use a payment gateway? Is it possible to connect directly to MC and visa? I totally have no clue on this. Thanks!
Yes you have to use a payment gateway. Banks provide such services. Also Paypal.
I suggest that you use a 3rd party API to handle payments :)
Paypal would be a good choice :)
Take a look at the Paypal SDK here
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks
And you might be interested in the Direct Payment API Paypal
https://www.paypal.com/cgi-bin/webscr?cmd=_dcc_hub-outside
As others have said you need to use payment gateway such as WorldPay or PayPal.
I personally chose Paypal due to the wealth of information out there regarding how to implement the payment system into web sites using PHP, JSP, ASP.NET etc...
Plus Paypal offers a good range of packages to suit your needs - you'll also be able to take advantage of their 'IPN' option (Instant Payment Notification).
The Paypal IPN service will make a call to a special asp.net file that you specify on your server everytime a payment is made from your web site... within this call the IPN will send over a bunch of data such as the order number, payee name etc.... you can these use this data to update your database tables such as 'Payment Status', its a great feature!

Login to online accounts

First time poster. Back to programming after being away for a few years, trying to clean off the rust. I'm creating a dashboard that will run initially on my laptop (Macbook Pro, 10.4.x O/S). Amongst other things I want it to retrieve latest information from my online accounts. I'm starting with html, but will probably migrate to something else (TBD, possibly ruby or c#). What would sample code look like for logging into account, going through specific account workflow, retrieve data/docs/other, and pull it back to be stored locally.
It is a little open-ended, apologies and thanks in advance.
Are you looking for something like Google Gears?
It depends on the kind of accounts you want to log onto.
For instance there is a Google has an specific API for that Google Accounts API, other services provide similar API's some other do not.
So it depends pretty much what are your "online accounts" all about and if they do provide a public API or not.
EDIT
As per your comment and for the products you've mentioned, I'll suggest your to start looking at browsers plugin development and to start understanding the HTTP protocol and all the related technologies around it ( HTTPS, encryption, authentication etc. )
The public API let you easily login into an account, but you don't really need one to do it ( although it make life much more simpler ) If you do not have a public API, you can still login into any account by "simply" doing what the browser does. Sending an HTTP(s) request with the appropriate security mechanism and following the protocol.
If you know how does the browser send the request and you have the user trusting your their passwords, the only remaining thing you have to do is ... :) code it.
As of now the question is too broad to be answered. Pick one service at a time and ask specific questions about it.
I would suggest you to start with the previously mentioned "Google Accounts" API and learn from there.
One open source product that already manages google account authentication is "Ubiquity" you can take a peak at their source code and start understanding how do they fetch the user contact list.

Categories

Resources