2. Goals Vision: A single library of Amazon web services for CF developers. Serves the purpose of simplifying communication with Amazon. Predictable development patterns. Avoid common issues. Faster ramp-up. Currently focused on Amazon Payments.
3. Amazon Payments? Checkout By Amazon (CBA) A complete checkout and payment solution for ecommerce retailers. Enables millions of customers to use their trusted Amazon.com accounts on your website. Amazon Marketplace Web Services (MWS) An API for managing back-office services such as orders, inventory, fulfillment, & reporting.Supports Fulfillment by Amazon (FBA). CFAmazon supports BOTH What can I do with it? You can automate the entire sales lifecycle with web-based applications. For example, customers can buy from your site using their Amazon.com account with prices, shipping methods, discounts, taxes, etc. calculated as you see fit. If you’re using a 3rd party fulfillment center (such as Amazon), you can automate inventory levels, be alerted when shipments happen, etc. The MWS API is very powerful and flexible.
4. CBA Signed Carts (Basic Transactions) Callback API Instant Order Payment Notification (IPN/IOPN)
6. Avoiding Common Headaches Read the Docs!!!! The API documentation is a little scattered, but reading the developer overview will help. Pay attention to the small details. The Amazon API’s are very powerful and very secure, but at the cost of simplicity. CFAmazon abstracts much of the implementation complexity, but transaction processing logic is still something you need to be aware of regardless of your selected provider. Key “Gotchas” Resolved by CFAmazon: Encoding: You can’t always use CF URL encoding/decoding (non-standard) Signatures: Generating signatures is the #1 issue I troubleshoot. Standardization: Amazon Payments is a subsidiary of Amazon. They operate several other wholly owned subsidiaries as well. Just because an API works with one Amazon service doesn’t mean it will necessarily work with another. Find the Tools Amazon provides several developer tools, such as the error console found in Seller Central. Use them! Start Small: Baby Steps Build your app one step at a time and follow OOP principles. Reusability can significantly decrease coding efforts & understanding the logic behind Amazon web services.
7. Connecting The Dots There are 2 configuration points: Amazon Your Server You must configure your Amazon Seller account and your server. Considerations: Defaults, Authentication, SSL
8. Getting Started On Amazon Read the Amazon Docs!! Setup Amazon Seller Account Configure Amazon Development Sandbox Obtain Amazon Access Keys Configure Amazon Pipeline Settings On Your Server Configure Your Development Environment Write Your Code & Test Go Live!
19. SSL Alert! Your server needs a valid level SSL certificate from a recognized authority in order to use CFAmazon CBA in production. Self-signed certificates are not recognized. Recommended: Use a leading authority like VeriSign Development: Use a free service like StartSSL.com or Comodo. WHY? Amazon must protect their customers & expects the same of anyone using their platform. You can develop w/o SSL, but it’s easier to get it out of the way early. Gotcha! Amazon MWS only supports SSL 2 & TLS (i.e. SSL 3.1)
20. CFAmazon Setup 1. Put com directory in web root. 2. Create response pages (post-order) 3. Create callback.cfm(if using IOPN) com directory contains the CFAmazon library. All of the other files are application-specific.
27. MWS Challenges CF8 had SSL connectivity issues Some CF hosts use page caching or cache servers based on URL.
28. That’s It! Get It https://github.com/ecorgroup/cfamazon http://cfamazon.riaforge.org Contact http://www.coreybutler.com http://www.linked.com/in/ecorsystems @goldglovecb, @ecorgroup Meetup Facebook
Notes de l'éditeur
Trying to avoid common challenges facing the Amazon developer community.
CFAmazon supports both. Amazon Payments is a service for web developers. Saves time. Show a demo of the page. Use Forgro.
There are more problems getting the account setup than there are using the API.
Reiterate the importance of understanding how your account works.
Mention this is different from AWS. You’ll have to provide a credit card number. You won’t be charged for anything, but the verification process helps validate the account.
Notice the sandbox and Access Keys. This is not the same for MWS.
This is what the screen looks like for MWS credentials. No sandbox mode because MWS REST is new.
It’s better to enable secure carts right from the start. This means importing the SSL certificate from Amazon, but also having one on your server.Explain callback vs return URL, IOPN/IPN
Issues found with CF8. Some shared hosts are already verified. Dev certs are PERSONAL.
Show examples on GitHub
Note that 128-bit encryption works too, but I found issues.
Mention how standardization is focused on as many services as possible, but some have differences.