© Bala Paranj 2017

Bala Paranj, Test Driven Development in Ruby, 10.1007/978-1-4842-2638-4_8

8. Dealing with Third-Party APIs

Bala Paranj

(1)Atlanta, Georgia, USA

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.

Subscription Plan

You can sign up for a Stripe account ...

Get Test Driven Development in Ruby: A Practical Introduction to TDD Using Problem and Solution Domain Analysis now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.