cashapp/cash-app-pay-ios-sdk ? reverse-engineered prompt
Reverse engineered prompt
Build me an iOS Swift SDK that lets an app accept Cash App Pay during checkout.
I want a library that an app can add with either Swift Package Manager or CocoaPods, plus a small demo app showing the full flow. The SDK should let a checkout screen create a payment request, listen for state changes, show a Cash App Pay button when it is ready, and handle the redirect back into the app after the customer approves or declines the payment in Cash App. Please include a simple UI module for the button and any basic payment method views, and make sure it works with a custom URL scheme or universal links.
Keep the public API simple and easy to follow, with clear examples in the README. Add enough tests and sample code so someone can understand how to plug it into their checkout flow, and if you need current setup details, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit