If you are looking to build a "buy with a fake card" feature, it's usually for one of two things: a store you're building or protecting your real data when shopping online. 1. Building a Testing Feature (For Developers)
From the Shopify app , tap , and then tap. Settings. In the Store settings section, tap Payments. In the Shopify Payments section, Shopify Help Center Sandbox Payments - Square Developer
If you're a developer adding this to an app, you need a . This lets you simulate purchases without moving real money. Testing Shopify Payments