The ForageSDK is a Swift library for securely processing EBT payments. The SDK provides UI components known as Forage Elements and associated methods that perform payment operations.
Learn more about the SDK's features in the Intro to Forage iOS, check out the iOS Quickstart for a step-by-step integration guide, or keep reading for instructions on how to run the sample app in this repository.
The Forage iOS SDK sample application can be found here.
To get the application running:
- Clone this repo and open the
SampleForageSDK.xcodeproj
project in theSample/
directory. - Ensure that you have a valid Merchant ID for the Forage API, which can be found on the dashboard (sandbox | prod).
- Create an authentication token with
pinpad_only
scope. - Create a session token.
- Run the Sample app and provide your Merchant ID and session token on the first screen.
- Forage SDKs include built-in EBT card number validation in both sandbox and production. Use the Test EBT cards for developing against successful transactions and invalid EBT test card numbers for triggering exceptions.
- Xcode 14.1 or above
- iOS 13 or above
- Swift 5.5