Take My Money: Accepting Payments on the Web
- Length: 290 pages
- Edition: 1
- Language: English
- Publisher: Pragmatic Bookshelf
- Publication Date: 2017-02-25
- ISBN-10: 1680501992
- ISBN-13: 9781680501995
- Sales Rank: #2338866 (See Top 100 Books)
Getting paid using Stripe or PayPal is only the beginning of creating a fully-functional e-commerce application. You also need to handle failure cases, inventory management, administration, security, reporting, and be compliant with legal issues. Manage one-time transactions and recurring subscriptions, handle inventory management, issue discounts and refunds, mitigate administration and compliance issues, and test your code to ensure your customers have a smooth, hassle-free experience.
An e-commerce payment application is literally rewarding to build–you can see the return on investment as genuine money is added to your account. But it can be stressful to manage, with security and compliance concerns and administration issues. And your entire business may depend on these features working smoothly.
Let Noel Rappin guide you through the setup and complications of dealing with online financial transactions.
Go beyond just the interaction with the gateway service and build an application that will be robust and useful over time. Set up a Stripe and PayPal payment gateway and accept credit card payments. Use the Stripe API to improve security by validating credit card data without sending it through your own server. Design your application for maximum flexibility against the inevitable complexities of business logic, including handling discounts. Manage the multiple failure points of dealing with payment gateways and test for failure cases. Use background jobs to simplify third-party interactions. Handle administrative tasks such as issuing refunds and discounts while maintaining data integrity and security. Create subscription plans and manage recurring payments, and stay on top of legal issues regarding taxes, reporting, and compliance. Pay affiliates or contributors from your application.
By the end, you will know how to create a fully-functional web payment-taking machine.
What You Need:
The code in this book works with Ruby 2.3.1 and Rails 5, though nearly all of the code will run with earlier versions of Ruby and Rails.
Table of Contents
Chapter 1. Not Taking Payments on the Web (Yet)
Chapter 2. Take the Money
Chapter 3. Client-Side Payment Authentication
Chapter 4. PayPal
Chapter 5. Failure Is Totally an Option
Chapter 6. Subscriptions
Chapter 7. The Administration Experience
Chapter 8. Administration Roles
Chapter 9. Administration and Data Security
Chapter 10. Reporting
Chapter 11. Adding Fees and Calculating Taxes
Chapter 12. Third-Party Sales with Stripe Connect
Chapter 13. Going to Production