As of recently I noticed our system for creating reusable card payments through Square is broken. This feature was working fine as of two weeks ago when I last worked with it. My basic square payment flow is as follows:
- Take the card details on the frontend with web payments sdk, tokenize and send to backend
- Use card details to place a payment via the payments api
- Pass this payment id as the source_id for the cards api alongside the original card details.
As of now I get a 400 error code response with reason being INVALID_CARD_DATA, and the field specified being “source_id”
Does anyone know, has square modified something regarding this. I’ve been trying to find a blog post or anything related specifying this change in behavior? It feels odd that something previously working is no longer functioning. Behavior seems to be replicable in both sandbox and prod