Closed codemang closed 3 years ago
Can you give more information on how the test fails? What's the error? Do you see anything in your log files from puffing-billy?
Based on your setup, I wouldn't expect puffing-billy to handle the requests at all (as you said you're going from React to Stripe).
Stale issue, closing. Feel free to reopen.
I'm working on integrating Stripe in my React frontend/Rails backend project. I'm trying to use PuffingBilly to cache requests between the Stripe React component and the Stripe servers.
The main request I'd like to cache is the POST to
https://api.stripe.com/v1/payment_intents
. That request has a body field with some keys that change on each request, likeguid
,sid
, etc.My first thought was to use the
before_handle_request
option, something like this:That way, each time I run the spec, the request body would look the same. However, I'm finding that anytime I modify the
body
in any way, the test fails. Even this fails.