Dealing with Third-Party APIs
This chapter will cover integration testing and using fixtures to speed up tests that go over the network to interact with third-party servers. Stripe is an online payment platform that processes credit card transactions. We will be using the stripe gem that is published by Stripe to develop a monthly subscription feature. We can subscribe a customer to an existing subscription plan, update a subscription, and cancel an existing subscription to a plan. The update feature will enable customers to upgrade or downgrade their subscription.